1. Trammell Hudson
  2. spiflash

Source

spiflash /

Filename Size Date modified Message
114 B
Ignore generated files
18.1 KB
license
441 B
fix formatting
14.2 KB
teensy3 settings allow buffering an entire page to compare (avoid writes) and flushing tx immediately for much faster downloads
675 B
rename xmodem.c to xmodem.ino, arduino-ize it
1.9 KB
force transmit of the block. read times go down to 30 seconds

spiflash

More info: https://trmm.net/SPI_flash

Commands

  • i: Read chip ID; if all 0xFF or 0x00, then something is wrong.
  • r7f0000↵: read 16 bytes from 0x7f0000 and hex dump them.
  • e7f0000↵: erase a sector at address 7f0000.
  • u190000 1a0000↵: Upload (and erase) 0x1a0000 bytes to 0x190000.
  • to read the entire rom, shell out and run:

    rx < /dev/ttyACM0 > /dev/ttyACM0 rom.bin

Otherwise, please read the source.