esp_partition_register_external() call

zliudr
Posts: 366
Joined: Thu Oct 03, 2019 5:15 am

esp_partition_register_external() call

Postby zliudr » Wed May 06, 2026 3:31 pm

I saw MicroPython firmware use this call to register a partition that is not in the partition table. Is that what this call is intended to do? I was told by someone that there is no API call in IDF to update the actual partition table in case the app wants to create a file partition with the portion of the flash behind the app partition, which is unclaimed. So is this the practical solution to that issue? Thanks.

lbernstone
Posts: 1131
Joined: Mon Jul 22, 2019 3:20 pm

Re: esp_partition_register_external() call

Postby lbernstone » Wed May 06, 2026 5:32 pm

Yes, that's what you can use it for. Note that it is possible to write a new partition table, but is considered pretty unsafe (you can corrupt the flash if you lose power during the operation).
https://github.com/lbernstone/autopart/ ... topart.ino

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

Re: esp_partition_register_external() call

Postby ESP_rrtandler » Tue May 12, 2026 9:29 am

Hi @zliudr ,

You can get an idea how to modify the partition table from the running app from the example: https://github.com/espressif/esp-idf/tr ... ta-example
Please read the warning related to the need for reliable power conditions when doing this type of irreversible changes.

Who is online

Users browsing this forum: Baidu [Spider], Bytespider, PetalBot and 12 guests