esp_partition_register_external() call
esp_partition_register_external() call
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
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
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
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.
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, ChatGPT-User, Semrush [Bot] and 12 guests