XFlash: don't erase all

If you have a simple question and just want an answer.
babazaroni
Experienced Member
Posts: 94
Joined: Sun Feb 10, 2013 4:47 am

XFlash: don't erase all

Post by babazaroni »

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?

Guest

Post by Guest »

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.

User avatar
Ross
Verified
XCore Legend
Posts: 1195
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

spi-div is broken in tools version 13.2, other versions should be okay. You could try setting -boot-partion-size appropriately.

 

 

Technical Director @ XMOS. Opinions expressed are my own