There is an driver example project in the SDK flexspi_hyper_flash_polling_transfer that shows how to access the FlexSPI flash but only when running from RAM. Is it possible to erase/write to a sector of the FlexSPI flash when executing in place (XIP)?
Hi Bruce
this may depend on used flash part and one can consult with its vendor, as
if the processor is running in XIP mode using the SPI interface, one can’t simply modify
(i.e., erase/write) that SPI flash device. That’s because it may require taking the SPI peripheral
out of XIP mode and putting it into SPI mode, which could crash the system.
More considerations can be found for example on
http://www.electronicdesign.com/embedded-revolution/xip-linux-new-spin-embedded-architecture
SPI Flash - SEGGER - Support Wiki
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------