- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MX25L6405D SPI Flash memory used in device running the eCos operating system. I'm trying to read a required area of SPI flash memory, so I need to find the System Memory Addresses of SPI Flash memory, I want to find where the flash is mapped into System memory (system address space) and read the chunks.
For example, show flash
command returns the following info:
Flash Device Information:
CFI Compliant: no
Command Set: Generic SPI Flash
Device/Bus Width: x16
Little Word Endian: no
Fast Bulk Erase: no
Multibyte Write: 256 bytes max
Phys base address: 0xbadf1a5
Uncached Virt addr: 0x1badf1a5
Cached Virt addr: 0x2badf1a5
Number of blocks: 129
Total size: 8388608 bytes, 8 Mbytes
Current mode: Read Array
Device Size: 8388608, Write buffer: 256, Busy bit:
Size Device Device Region
Block kB Address Offset Offset Region Allocation
----- ---- ---------- ----------- --------- -----------------
0 32 0x1badf1a5 0 0 Bootloader (32768 bytes)
1 32 0x1bae71a5 32768 ??? {unassigned}
2 64 0x1baef1a5 65536 0 Permanent NonVol (65536 bytes)
3 64 0x1baff1a5 131072 0 Image1
4 64 0x1bb0f1a5 196608 65536 Image1
5 64 0x1bb1f1a5 262144 131072 Image1
6 64 0x1bb2f1a5 327680 196608 Image1
7 64 0x1bb3f1a5 393216 262144 Image1
.. .. ........
127 64 0x1c2bf1a5 8257536 4063232 Image2 (4128768 bytes)
128 64 0x1c2cf1a5 8323072 0 Dynamic NonVol (65536 bytes)
But 'Device Address' in above table is not a System memory address, but seems, the address of the hardware device used to access the SPI chip by the OS and bootloader.
So when I tried to read memory, any address, for example: readmem -s 4 -n 16384 0x1baef1a5
it always returns errors: ERROR - Address
.
Please advice how to find the System memory addresses, where the SPI flash is mapped into System memory.
Solved! Go to Solution.
- Labels:
-
Serial NOR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
As your query is about a Macronx flash device (MX25L6405D), we request you to contact Macronix or the controller manufacturer for support.
Thanks and Regards,
Sudheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
As your query is about a Macronx flash device (MX25L6405D), we request you to contact Macronix or the controller manufacturer for support.
Thanks and Regards,
Sudheesh