Skip to main content

spinor

SPI NOR Flash commands: detect, erase, read and write.

Usage​

Detect SPI NOR Flash​

xfel spinor

Erase​

xfel spinor erase <address> <length>

Read​

xfel spinor read <address> <length> <file>

Write​

xfel spinor write <address> <file>

Arguments​

ArgumentDescription
<address>Flash start address
<length>Number of bytes to read / erase
<file>File to save read data, or file to write

Description​

These commands operate on SPI NOR Flash. Run xfel spinor first to detect the Flash model and capacity before performing any read/write operations.

  • erase: erases the specified region (sets it to 0xFF);
  • read: reads Flash data to a local file;
  • write: writes a local file to Flash (erase and program are handled internally).
note

SPI Flash operations depend on the chip's SPI initialization capability.