-->
Page 1 of 2

Writing to irom flash...

PostPosted: Fri Nov 14, 2014 10:35 am
by johns
Does anybody know how to write the flash at the location where the irom is mapped? (ie. the AT commands)

spi_flash_write() at those addresses just locks up and triggers a watchdog reset.

I'm guessing it's something to do with the irom<->flash caching mechanism but I don't know how to suppress/bypass it.

Re: Writing to irom flash...

PostPosted: Fri Nov 14, 2014 10:56 am
by Necromant
spi_flash_* functions expect an address in SPI flash starting at 0. Not the adress where SPI flash is mapped.

Re: Writing to irom flash...

PostPosted: Fri Nov 14, 2014 11:09 am
by johns
Yes, I'm using the flash address not the irom address.

To be 100% clear: If my irom is at (eg) 0x40240000 and I do:

spi_flash_write(0x40000, ...)

This function will fail and trigger a watchdog reset.

nb. I can write to other areas of the flash, no problem. It's only address from 0x40000 and upwards that fail.

Re: Writing to irom flash...

PostPosted: Tue Nov 18, 2014 8:35 pm
by wififofum
Try SPIWrite(...)?