OTA checksum fails
Posted: Wed May 31, 2017 11:51 am
Hello guys,
So, recently I'we taken a swing at the OTA update and got myself stuck. What i did was to follow the example here and all seems to work well untill the esp_ota_end, where i get esp_image: checksum failed. Calculated 0xef read 0x0.
Here is a link to the ota_task.c.
Now the image on the http server is the project .bin, the ota_config_t definition is
From what i observed the download always gets the correct size of the bin file, but the checksum fails. I haven't found a way to check the actual data yet.
Before I go in deep debugging I want to ask you guys if anyone can see any apparent reason to why this fails or if any of you ran into anything similar.
Thank you,
Vlad
So, recently I'we taken a swing at the OTA update and got myself stuck. What i did was to follow the example here and all seems to work well untill the esp_ota_end, where i get esp_image: checksum failed. Calculated 0xef read 0x0.
Here is a link to the ota_task.c.
Now the image on the http server is the project .bin, the ota_config_t definition is
Code: Select all
typedef struct {
const char *ota_address; // ip or dns
unsigned short int port;
const char *filename; // path to file on http host. will be send in HTTP Host: header
} ota_config_t;
Before I go in deep debugging I want to ask you guys if anyone can see any apparent reason to why this fails or if any of you ran into anything similar.
Thank you,
Vlad