ESP-IDF Binary Notes and First Line

joe_fang_iD
Posts: 10
Joined: Thu Aug 01, 2019 11:59 pm

ESP-IDF Binary Notes and First Line

Postby joe_fang_iD » Wed Aug 07, 2024 12:37 am

Looking at the binary for one of the ESP-IDF projects and the first line contains something about the version number:

v0.2.17-1-gXXXXXXX-dirty

where the XXXXXXX is the hash code for the latest commit that the build is based out of, following the latest tag. Is there any documentation on how to customize this binary first line? (maybe I haven't looked for this hard enough)

boarchuz
Posts: 599
Joined: Tue Aug 21, 2018 5:28 am

Re: ESP-IDF Binary Notes and First Line

Postby boarchuz » Wed Aug 07, 2024 12:55 am

What you're seeing is the "idf_ver" field of the esp_app_desc_t.

You can read about the image format here:
https://docs.espressif.com/projects/esp ... ormat.html

There's also a section in there on adding your own custom header after the esp_app_desc_t.

joe_fang_iD
Posts: 10
Joined: Thu Aug 01, 2019 11:59 pm

Re: ESP-IDF Binary Notes and First Line

Postby joe_fang_iD » Wed Aug 07, 2024 7:44 pm

Thank you!

Who is online

Users browsing this forum: No registered users and 274 guests