SPI Serial Flash Read/Write Example

Unsolved
akolamb1's picture
akolamb1
Junior(1)

STM32F411 Microcontroller has 512KB Flash. I assume Bootloader and Application resides here (DCT files reside here too?)

 

Avnet Board also provides 8MB SPI Serial Flash. When Wifi link is down, i want to store data on the Module and send it to the Cloud when the link is up. I assume i can use the 8MB SPI Serial Flash for this purpose. Can you please point me to an example for read/write to SPI Flash?

rafaelcds's picture
rafaelcds
Junior(0)

I have the exact same question

akolamb1's picture
akolamb1
Junior(1)

am using download_apps parameter in the make target. So the application does go to the External SPI Flash rather than MCU's on-chip Flash. 

Would still like to know if there is an example for using External SPI Flash to store data to External SPI Flash. 

 

PeterF's picture
PeterF
Moderator(16)

Use of WICED's sflash_write() and sflash_read() functions are discussed on the Cypress WICED forum
eg. https://community.cypress.com/thread/6879 

 

I'd strongly recommend looking at ZentriOS SDK which provides full file system functionality with examples and better documentation 
https://docs.zentri.com/zentrios/wz/3.3/sdk/examples/basic/spi-stream 
https://docs.zentri.com/zentrios/wz/3.3/filesystem