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
Esp32S3 : How to update partition table using OTA ?
-
ThomasESP32
- Posts: 281
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : How to update partition table using OTA ?
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.
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 ?
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.
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: Applebot and 4 guests