Esp32S3 : How to update partition table using OTA ?

ThomasESP32
Posts: 281
Joined: Thu Jul 14, 2022 5:15 am

Esp32S3 : How to update partition table using OTA ?

Postby ThomasESP32 » Fri Nov 07, 2025 12:51 pm

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

leschge
Posts: 44
Joined: Fri May 06, 2022 1:38 pm

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

Postby leschge » Wed Mar 25, 2026 9:13 am

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.

ESP_rrtandler
Posts: 53
Joined: Wed May 31, 2023 6:54 pm

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

Postby ESP_rrtandler » Tue Apr 07, 2026 1:16 pm

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.

Who is online

Users browsing this forum: Baidu [Spider], ChatGPT-User, YisouSpider and 4 guests