Open mriksman opened 4 years ago
This issue still persists
The reason is that function esp_ota_get_partition_description
is directly copied from ESP-IDF and will work for ESP32 images where esp_app_desc_t
is located always in the first flash segment. On current (v3.4) ESP8266 RTOS SDK esp_app_desc_t
is located in the second one.
Here is my workaround for this without ld script modifications https://github.com/QB4-dev/esp_http_server_utils/blob/035414049d7c7a6fed011177597de2c29afe73b2/esp_http_server_fota.c#L40
https://github.com/espressif/ESP8266_RTOS_SDK/commit/525c34b4b625643b430996b5fdc2066b4e4d861b
Downloaded new
master
, did afullclean
and compiled usingCMake
.Output
Looking at the HEX dump of the bin file, I can see
esp_image_header_t
andesp_image_segment_header_t
, but noesp_app_desc_t
. On an ESP-IDF project I can see the magic bytes at the correct location.What am I missing?