I've got a large spi flash chip and it's taking 4 minutes to program it, even with a small firmware image. The trouble appears to be it is slowly erasing the whole chip.
Verbose mode is showing that xflash is using the -D ERASE_ALL_FIRST=1 directive.
I reviewed the options to xflash and don't see how to override this.
Any Ideas?
XFlash: don't erase all
-
- Experienced Member
- Posts: 94
- Joined: Sun Feb 10, 2013 4:47 am
Try changing the clock divider of SPI by using following command line option.
--spi-div n
Sets the divider for the SPI clock to n, producing an SPI clock speed of 100/2nMHz. By default, if no target is specified, the divider value is set to 3 (16.7MHz).
Hope this helps.
--spi-div n
Sets the divider for the SPI clock to n, producing an SPI clock speed of 100/2nMHz. By default, if no target is specified, the divider value is set to 3 (16.7MHz).
Hope this helps.