Need help with setting the SPIFFS partition to external flash memory/EEPROM (update partition table)

kyleneville
Posts: 3
Joined: Tue Oct 13, 2020 8:45 pm

Need help with setting the SPIFFS partition to external flash memory/EEPROM (update partition table)

Postby kyleneville » Wed Nov 11, 2020 10:18 pm

I have a custom made ESP32 board which has 256Mb (32MB) of external flash storage. I want to know if it is possible to update the partition tables in such a way that I can set the SPIFFS partition pointing to the external memory instead of the internal flash memory. The reason for this is because I have a large file to store which is huge for the internal flash memory.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Need help with setting the SPIFFS partition to external flash memory/EEPROM (update partition table)

Postby ESP_igrr » Mon Nov 16, 2020 3:22 pm

Hi kyleneville,
It is possible to move SPIFFS partition to the external flash. The layout of external flash chips is not managed by the partition table, instead you can designate some part of the flash chip (or all of it) as a partition using esp_partition_register_external function. See this example: https://github.com/espressif/esp-idf/bl ... ain.c#L142. It is for FAT filesystem, but with SPIFFS it will be very similar.

Who is online

Users browsing this forum: Bing [Bot], jhlee1 and 102 guests