Adding custom header in ESP32 for Firmware upgrade

vimal_esp
Posts: 7
Joined: Wed Apr 28, 2021 12:22 pm

Adding custom header in ESP32 for Firmware upgrade

Postby vimal_esp » Wed Jul 21, 2021 6:52 pm

Hi

I am using ESP32-MINI-1 board. I am implementing the Firmware upgrade.

I have defined some custom header according our application. I taken reference from ESP-Programming guide link
https://docs.espressif.com/projects/esp ... pplication.

We have added like this way in .cpp file
const __attribute__((section(".rodata_CUSTOM_HEADER"))) custom_header CUSTOM_HEADER
In CMakeLists.txt file I have followed like this
target_link_libraries(${COMPONENT_TARGET} "-u CUSTOM_HEADER")
>> fw_header is our custom header structure.

I am not able to get this header in .rodata section in .map file. Neither I am able to get in debug logs on terminal.
Please help me on this, how to link custom header properly with memory.

Thanks
Vimal

vimal_esp
Posts: 7
Joined: Wed Apr 28, 2021 12:22 pm

Re: Adding custom header in ESP32 for Firmware upgrade

Postby vimal_esp » Sat Jul 24, 2021 8:13 pm

Hi ESP Team,

I have gone through given below link
https://www.esp32.com/viewtopic.php?f=1 ... 1530e24523

I have got my answer but I wanted to use this in .cpp file. I am not able to create the custom header in .cpp file.
Please guide me on this.

Thanks
Vimal

Who is online

Users browsing this forum: Baidu [Spider], Majestic-12 [Bot] and 111 guests