esp_ota_get_partition_description() provides info of struct esp_app_desc_t where compile date and time can be retrieved.
I noticed that when a full build is made, the compile date/time is updated as expected. However, when a few sources are changed, and a new incremental build is done, the esp_app_desc_t's compile date/time remains unchanged.
How can compile date/time be reflected for each build regardless of a full or incremental one? Can it be done by touching some specific source files?
How to update compile date/time for each build?
Re: How to update compile date/time for each build?
This does not work for you?
printf("Compiled at:");
printf(__TIME__);
printf(" ");
printf(__DATE__);
printf("\r\n");
printf("Compiled at:");
printf(__TIME__);
printf(" ");
printf(__DATE__);
printf("\r\n");
Re: How to update compile date/time for each build?
Hi redpanda,
You can force the app metadata to be updated by touching components/app_update/esp_app_desc.c.
You can force the app metadata to be updated by touching components/app_update/esp_app_desc.c.
Who is online
Users browsing this forum: Baidu [Spider] and 85 guests