Page 1 of 1

esp_partition_register_external() call

Posted: Wed May 06, 2026 3:31 pm
by zliudr
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.

Re: esp_partition_register_external() call

Posted: Wed May 06, 2026 5:32 pm
by lbernstone
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

Re: esp_partition_register_external() call

Posted: Tue May 12, 2026 9:29 am
by ESP_rrtandler
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.