Dear all
Is there a IDF call to create new partition (out of the program code)?
After OTA I want to use a data partition, that the previous FW-Version did not have...
Kind regards
Chris
Create a partition in code
Re: Create a partition in code
I found this with a little searching. Is this helpful?
ESP32: Partition Table Update Through OTA
ESP32: Partition Table Update Through OTA
Re: Create a partition in code
Thank you for the reply.
It's interessting but not what I was looking for. Of course I can modify the Flash using the SPI interface. I was hoping that there's an API in the IDF to create and delete partitions.
Kind regards
Chris
It's interessting but not what I was looking for. Of course I can modify the Flash using the SPI interface. I was hoping that there's an API in the IDF to create and delete partitions.
Kind regards
Chris
-
- Posts: 52
- Joined: Thu Jun 22, 2023 12:50 pm
Re: Create a partition in code
Hello. There in no official higher-level API for this at the moment.
-
- Posts: 9766
- Joined: Thu Nov 26, 2015 4:08 am
Re: Create a partition in code
For what it's worth: the reason is that the partition table is not safe to rewrite on the fly: if the partition table gets corrupted because someone switched off the ESP during the write, it can render the chip unbootable.
Re: Create a partition in code
Dear all
Thank you for the clarification.
I'm not sure where to make that suggestion... or maybe it's stupid anyway.
With OTA there is a similar integrity issue and it has been solved with the ota data partition and two ota partitions. Could that mechanism be used here too?
Regards
Chris
Thank you for the clarification.
I'm not sure where to make that suggestion... or maybe it's stupid anyway.
With OTA there is a similar integrity issue and it has been solved with the ota data partition and two ota partitions. Could that mechanism be used here too?
Regards
Chris
-
- Posts: 9766
- Joined: Thu Nov 26, 2015 4:08 am
Re: Create a partition in code
It could, but it's not currently implemented.
Who is online
Users browsing this forum: Bing [Bot] and 115 guests