ESP_ERR_OTA_VALIDATE_FAILED (0x1503)

The OTA functions checked the image and rejected it before it could be booted. The documentation of esp_ota_write and esp_ota_end says when, and each case has its own fix.

ESP_ERROR_CHECK failed: esp_err_t 0x1503 (ESP_ERR_OTA_VALIDATE_FAILED) at 0x400d2a4f
file: "./main/main.c" line 42
func: app_main
expression: …

ESP_ERR_OTA_VALIDATE_FAILED (0x1503). ESP-IDF's description: Error if OTA app image is invalid.

When it is returned

The usual causes

The free ESP32 firmware inspector shows what a .bin is: app or merged image, chip, version and ESP-IDF version, in the browser. Pinscope's OTA updates check the same things before sending an image to a device: OTA over the internet.

Related errors: ESP_ERR_NVS_NO_FREE_PAGES · ESP_ERR_NO_MEM · esp_err_t codes. All ESP32 errors: the list. Codes and descriptions from ESP-IDF's headers; behaviour from the API documentation of the functions named. ESP-IDF's Error Handling guide.

More