Page 1 of 1

Esp32S3 : How to update partition table using OTA ?

Posted: Fri Nov 07, 2025 12:51 pm
by ThomasESP32
Good afternoon,


I am working with an Esp32S3 and I manage to do OTA firmware update.
In order to do that, I have defined two partitions ota_0 and ota_1 in the partitions.csv file and I use the :

esp_ota_begin();
esp_ota_write();
methods in order to do OTA Update.

In my partitions.csv file, I have a partition called storage defined this way :
storage, data, fat, , 512K,

I would like to change the way it is defined like that :
storage, data, littlefs, , 512K,
So, in the next version of firmware, I will be able to use this partition as littlefs.

is it possible to update the partition table in OTA before updating the firmware please ?
If the answer is yes, could you please explain me how to do it ?

best regards,
thnak you for your help,

Thomas TRUILHE

Re: Esp32S3 : How to update partition table using OTA ?

Posted: Wed Mar 25, 2026 9:13 am
by leschge
To my knowledge there is no API available for that which means you have to rewrite the flash on that address (default 0x8000) by yourself. https://docs.espressif.com/projects/esp ... ion-tables

However this causes risk of breaking your devices on powerloss or similar. In addition you may have to enable dangerous flash writes in the menuconfig.

Re: Esp32S3 : How to update partition table using OTA ?

Posted: Tue Apr 07, 2026 1:16 pm
by ESP_rrtandler
Hi @ThomasESP32 ,

There is an example showing OTA manipulating partition table in ESP-IDF repo: https://github.com/espressif/esp-idf/tr ... ta-example
Hope it helps you.