Skip to content

Expose unload_partitions to allow for dynamic updates (IDFGH-11498) #12625

Closed
@angelnu

Description

Is your feature request related to a problem?

I wrote an extension of the OTA component for esphome. There I am able to update the partition table OTA.

In order to allow the new partitions to be used without reboot I had to call esp-idf unload_partitions. I have done this by adding my own definition as currently this function is not public.

I need to avoid the reboot since I also need to update the app partition in the same session - this allows changes in partition table sizes and migrations from different firmwares. More info in the PR.

Describe the solution you'd like.

Move

to https://github.com/espressif/esp-idf/blob/c8243465e45489835d645bf217a6929fd0c01b7f/components/esp_partition/include/esp_partition.h

Describe alternatives you've considered.

Rebooting after updating the partition table but this does not work when updating the app partition addresses/sizes

Additional context.

Happy to provide a PR

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions