ESP32 maximum use of remaining Flash

Ajinkya_777
Posts: 8
Joined: Tue Sep 15, 2020 4:42 am

ESP32 maximum use of remaining Flash

Postby Ajinkya_777 » Sun Oct 04, 2020 4:11 pm

Hi,

I'm using ESP32 board with 8mb of flash. I choose this configuration because I wanted to store data in remaining portion of the flash chip. So flash partition I kept is nvs 0x5000 otadata 0x2000 app0 2M app1 2M spiffs 4M.
Here I wanted to store data in permanent memory.

I have main 2 questions in this
i) can i use EEPROM over 4096 bytes? like can i use all spiffs as eeprom (hole 4MB)
ii) how to use the flash in most optimize way and faster to read/write.

Thank you
Ajinkya

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

Re: ESP32 maximum use of remaining Flash

Postby ESP_Sprite » Mon Oct 05, 2020 7:22 am

You are talking about Arduino EEPROM? That is stored in the NVS partition if memory serves, not in SPIFS. Wrt how to use the flash optimally, that really depends on the application you're writing; if there were a general answer you'd find it in the docs.

Ajinkya_777
Posts: 8
Joined: Tue Sep 15, 2020 4:42 am

Re: ESP32 maximum use of remaining Flash

Postby Ajinkya_777 » Thu Oct 08, 2020 5:36 pm

ok thank you.

I'm using SPIFFS to store data into flash.
but I was just wanted to know weather we can create EEPROM library or any library so we can perform byte by byte operations in it.

Thank you
Ajinkya

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

Re: ESP32 maximum use of remaining Flash

Postby ESP_Sprite » Fri Oct 09, 2020 7:38 am

....possibly? But why not just use the existing EEPROM/Preferences library that's based on NVS?

Ajinkya_777
Posts: 8
Joined: Tue Sep 15, 2020 4:42 am

Re: ESP32 maximum use of remaining Flash

Postby Ajinkya_777 » Mon Oct 12, 2020 9:12 am

ESP_Sprite wrote:
Fri Oct 09, 2020 7:38 am
....possibly? But why not just use the existing EEPROM/Preferences library that's based on NVS?
okey
I use spiffs for flash storage and eeprom for nvs EEPROM.

Thank you so much.

Who is online

Users browsing this forum: No registered users and 51 guests