How to Include and Align a Proprietary Binary in ESP-IDF Firmware
Posted: Wed Jun 05, 2024 10:37 am
Hello,
I have a proprietary binary that contains executable code which I need to include in the final firmware built with ESP-IDF. Here are my specific requirements:
The binary must be included in the final firmware binary.
The binary needs to be aligned on a page boundary.
I need variables for the start and end addresses of the binary in memory.
I am using ESP-IDF version 5.2.1.
I have tried the method described in the following link to embed binary data:
ESP-IDF: https://docs.espressif.com/projects/esp ... inary-data
However, it turns out that the binary is not aligned as required.
Could someone please provide guidance or an example on how to correctly include and align the binary on a page boundary while having the start and end address variables available in the code?
Thank you!
I have a proprietary binary that contains executable code which I need to include in the final firmware built with ESP-IDF. Here are my specific requirements:
The binary must be included in the final firmware binary.
The binary needs to be aligned on a page boundary.
I need variables for the start and end addresses of the binary in memory.
I am using ESP-IDF version 5.2.1.
I have tried the method described in the following link to embed binary data:
ESP-IDF: https://docs.espressif.com/projects/esp ... inary-data
However, it turns out that the binary is not aligned as required.
Could someone please provide guidance or an example on how to correctly include and align the binary on a page boundary while having the start and end address variables available in the code?
Thank you!