How do I create new partition when running App code?
-
- Posts: 13
- Joined: Fri Aug 06, 2021 1:39 am
How do I create new partition when running App code?
I need create new partition when running App code. Because the new version firmware need a "storage" partition used for SPIFFS, the old firmware didn't create this partition. And the products which burned the old firmware could only update the firmware by OTA. So I want to create new partition in App code. Can this idea be implemented?
Re: How do I create new partition when running App code?
I am looking for the same feature. I need it for the core dumps. Unfortunately, to save them to flash, there is no other way but a special "core dump" partition. The devices are in the field, so I cannot use esptool on them (and I cannot use uart for core dump either).
ESP32 / ESP-IDF 5.1.4
Re: How do I create new partition when running App code?
if esp_partition_find() does not find your partition, could you simply populate a esp_partition_t struct with the address of a known empty area, and pass that to any file system functions? I've never tried it myself, but it might work. Probably not for core dumps though because you aren't actually modifying the partition table.
You might first need to format/verify the area yourself, although there are probably esp library functions for that.
You might first need to format/verify the area yourself, although there are probably esp library functions for that.
Who is online
Users browsing this forum: Gaston1980 and 72 guests