How do I create a flash memory partition in esp32 without using csv file ?

nilesh_m
Posts: 13
Joined: Thu Oct 28, 2021 4:12 am

How do I create a flash memory partition in esp32 without using csv file ?

Postby nilesh_m » Mon Dec 06, 2021 12:33 pm

Hi,
I am currently looking for an option to create memory partition in my esp32 board.
I am able to create it by using partition.csv file.

//Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xd000, 0x2000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 1M,
ota_0, app, ota_0, 0x110000, 1M,
ota_1, app, ota_1, 0x210000, 1M,
log_1, data, log_1, 0x310000, 0x4000

like this. I have created partition for log_1.
However, I wanted to create partition run time. Is there a way or API's available with which we can create partition run time ?

Thanks !!

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: How do I create a flash memory partition in esp32 without using csv file ?

Postby ESP_Sprite » Tue Dec 07, 2021 6:49 am

No. The partition table is intended to be defined at compile time, not at runtime.

nilesh_m
Posts: 13
Joined: Thu Oct 28, 2021 4:12 am

Re: How do I create a flash memory partition in esp32 without using csv file ?

Postby nilesh_m » Tue Jan 11, 2022 4:18 pm

@ESP_Sprite Thanks for your response.
Yes you are right. After trying runtime partition I came to know, we have certain limitations to it.
So, it is better not to create partition runtime.
I referred below link to try out.
https://github.com/espressif/esp-idf/issues/8018

Thanks!!

Who is online

Users browsing this forum: Baidu [Spider], HighVoltage, mikecarlos and 98 guests