Need help with setting the SPIFFS partition to external flash memory/EEPROM (update partition table)
-
- 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)
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)
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.
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], ESP_Sprite and 104 guests