QSPI
A command of the separate bcma command line; see Commands for other chip families.
QSPI debug command.
QSPI Write <data> [ Read <len> ]
FlashRead <offset> <len> [ envVAR=<var_name> ]
FlashWrite <offset> <data>
FlashErase <offset> <len>
FlashLoaD <offset> <file>
FlashDev id=<val> SiZe=<val> SectorSiZe=<val> PageSiZe=<val>
Built-in help
Write
Write <data> to QSPI device and show the received data if 'Read'
is specified. This utility could send commands to QSPI device
one by one which is useful for device driver debugging.
FlashRead
Display <len> bytes of flash content from address <offset>.
If "envvar" is specified, the read data will be saved in the
given environment variable <var_name>.
FlashWrite
Write <data> into flash address <offset>.
FlashErase
Erase <len> bytes of flash content from address <offset>.
Note that <len> will be adjusted to sector size aligned.
FlashLoaD
Read data from <file> and write the data to flash address
<offset>.
FlashDEV
Set custom device profile for flash identification.
id=<val> - Manufacturer ID.
SiZe=<val> - Flash total size in bytes, <val> must greater than 0.
SectorSiZe=<val> - Sector size in bytes, <val> must greater than 0.
PageSiZe=<val> - Page size in bytes, <val> must greater than 0.
Built-in examples
write 0x9f read 3
flashread 0x2000 32
flashwrite 0 0x123456789
flasherase 0 512
flashload 0 data.bin
flashdev id=0x20 size=0x8000000 pagesize=256 sectorsize=0x10000