When I merge the OTA part to the project and try to perform the exact same OTA update using the same piece of code, credentials, endpoints, ... I get the error:
I made sure that 0xcd is the correct checksum value for my .bin file, but the calculated value changes at every iteration.esp_image: Checksum failed. Calculated 0xb3 read 0xcd
After some debugging, we retrieved the data written on the flash OTA_1 partition and we found that some bytes (different each time) have the value 0x00 instead of their correct value.
Any one has an idea on how to solve this??
A sample from the erroneous vs the correct .bin files: