I put some prints in library and apparently, the error comes from here:
Code: Select all
else {
// try to find this partition in flash,if not find it ,return error
find_partition = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_DATA_OTA, NULL);
if (find_partition != NULL) {
return esp_rewrite_ota_data(partition->subtype);
} else {
//HERE******************
return ESP_ERR_NOT_FOUND;
}
}
What is wrong in my partition? OTA still doesn't working.
Code: Select all
# Name, Type, SubType, Offset, Size, Flags
factory, app, factory, 0x10000, 1M,
ota_0, app, ota_0, , 1M,
ota_1, app, ota_1, , 1M,
nvs, data, nvs, , 40K,
log, data, nvs, , 72K,
phy_init, data, phy, , 4K,