wuxx / icesugar

iCESugar FPGA Board (base on iCE40UP5k)
350 stars 96 forks source link

Get or set data from SPI flash. #31

Closed juanmard closed 2 years ago

juanmard commented 3 years ago

How do I get or set arbitrary binary data to the SPI flash through the iCELink (either drag and drop or icesprog)?

wuxx commented 3 years ago

for example ` / write image to flash / $icesprog -w flash.bin

/ write file to flash, by offset 1M / $icesprog -w -o 0x100000 flash.bin

/ read 1024 Bytes from flash, default by offset 0 / $icesprog -r -l 1024 out.bin

/ read 1024 Bytes from flash, by offset 1M / $icesprog -r -o 0x100000 -l 1024 out.bin

`

juanmard commented 3 years ago

Perfect! Thanks!