Important changes to forums

We’re making some changes to the Mbed forums. From 10th December 2019 all new discussions will take place on our new forum site. You can continue to reply to existing threads for the next two weeks. After that we will archive this forum so you can return to useful posts in the future.

How to load data to external SPI flash?

10 Nov 2019

Hi, I have a noob question about load data into SPI flash. I'm trying to write an application for nucleo-144 with ethernet that can show http web pages to interact with. My problem is how to store html(and other files) in an external SPI flash. especially when I compile my code and load on the board how can I also load the other files on the SPI flash?I hope I explained myself. Thanks for any suggestions.

11 Nov 2019

Hi,

You can do all file handling in your application and just open SPI bus to flash and use SPI flash commands to erase, write and read bytes. Look flash manual / datasheet for flash commands and for SPI control https://os.mbed.com/docs/mbed-os/v5.14/apis/spi.html#spi-hello-world

You can also use Mbed OS file handling /storaging: https://os.mbed.com/docs/mbed-os/v5.14/apis/littlefilesystem.html I would strongly recommended you to study this.

Regards, Pekka

18 Nov 2019

Thanks for suggestions.

You need to log in to post a reply