App Version - Log rodata_custom_desc

leschge
Posts: 37
Joined: Fri May 06, 2022 1:38 pm

App Version - Log rodata_custom_desc

Postby leschge » 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:

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
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

MicroController
Posts: 1708
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: App Version - Log rodata_custom_desc

Postby MicroController » Fri Sep 15, 2023 5:43 pm

I won't pretend that I understand much of what you're actually asking.
But looking at start_cpu0_default() should let you find the answer(s).

Who is online

Users browsing this forum: Bing [Bot] and 115 guests