Flash memory

pablogurjao
Posts: 7
Joined: Thu Jun 08, 2017 6:34 pm

Flash memory

Postby pablogurjao » Wed Jun 21, 2017 3:15 pm

I am trying work with the flash memory of esp32 using the spi_flash, but I don't understand which address I need to put for start write, I think that the esp32 has 3MB reserved to store data, but I am not sure which address starts this space.

Which part the flash memory I can write data with spi_flash, the data that I want store is about 1MB.

Anyone here has any experience with this subject?

ESP_Sprite
Posts: 9835
Joined: Thu Nov 26, 2015 4:08 am

Re: Flash memory

Postby ESP_Sprite » Thu Jun 22, 2017 2:07 am

We have a partition system for this: essentially, you can define your own partitions in flash, and read/write/mmap them as separate flash regions. It's a nice and elegant solution for the problem you're having.
See http://esp-idf.readthedocs.io/en/latest ... ables.html for more information as well as the esp_partition_* function calls here: http://esp-idf.readthedocs.io/en/latest ... flash.html

pablogurjao
Posts: 7
Joined: Thu Jun 08, 2017 6:34 pm

Re: Flash memory

Postby pablogurjao » Thu Jul 20, 2017 6:52 pm

Thanks, it Works here!

Who is online

Users browsing this forum: No registered users and 89 guests