PlatformIO Community

Embedded files in esp32

Hi everyone,
I’ve added an embedded binary file to my project.
There’s a way to force storing that file at the start address of embedded flash section?

The SDK gives you the possibility to add a custom application decsription structure at the “start” after the mandatory header.

https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/api-reference/system/app_image_format.html#adding-a-custom-structure-to-an-application

Thank you for reply,
I read this part but there is no specifictaion about the size limit.
The binary file is 100kb is possible add there anyway?

Does it have to be at the very start? Regular binary file embedding works fine and gives you the address of where it’s stored for the firmware to work with (docs). Based on the commends with the matching .flash.rodata's address I don’t think it’s a good idea to pump 100KBytes of data in there

Yes, I’ve added my file with that way (docs).

There’s a way to force storing that file at the start address of embedded flash section?

For the embedded section I intend the “.rodata.embedded” section where automatically files go to with docs modality.
So my question was to understand if there’s a way to set a priority of position in this section, so I can read the firmware.bin file and found everytime at the same address my binary file.

I’m out of knowledge here, if noone else knows how to achieve this in this format you want, please ask at Issues · espressif/esp-idf · GitHub or https://www.esp32.com/.