Need help with setting the SPIFFS partition to external flash memory/EEPROM (update partition table)
Posted: Wed Nov 11, 2020 10:18 pm
by kyleneville
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.
Re: Need help with setting the SPIFFS partition to external flash memory/EEPROM (update partition table)
Posted: Mon Nov 16, 2020 3:22 pm
by ESP_igrr
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.