App Version - Log rodata_custom_desc
Posted: Fri Sep 15, 2023 10:24 am
Hey all,
as esp_app_desc_t only allows 32 bytes, we make use of rodata_custom_desc the following way:
In code usually this lines are printed:
Is it somehow possible to print our rodata_custom_desc instead?
The best would be if we can concatenate CONFIG_SW_VERSION and CONFIG_SW_VERSION_BUILD
as esp_app_desc_t only allows 32 bytes, we make use of rodata_custom_desc the following way:
Code: Select all
const __attribute__((section(".rodata_custom_desc"))) app_desc_main_t app_desc_main =
{
.magic_word = ESP_APP_DESC_MAGIC_WORD,
.applSwMainVersion = CONFIG_SW_VERSION,
.applSwMainVersionBuild = CONFIG_SW_VERSION_BUILD,
.applSwMainTime = COMPILER_TIME,
.applSwMainDate = COMPILER_DATE,
};
In code usually this lines are printed:
Code: Select all
I (1009) cpu_start: App version: ABC123
I (1016) cpu_start: Compile time: Sep 15 2023 09:15:23
The best would be if we can concatenate CONFIG_SW_VERSION and CONFIG_SW_VERSION_BUILD