Page 1 of 1

OTA update question

Posted: Tue Nov 19, 2019 12:51 pm
by lukykl1
Hi,
I have a problem with OTA update. I have two ESP32 devices. One is connected to internet via ethernet and another is connected to the first one via serial. When I try to use native https ota (esp_https_ota) on first device (ethernet), it ends succesfully, but then it boots old partition. I check every error.

On the other hand when I download new firmware and send it over UART to second devices, where I manualy (native in documentation) use OTA (esp_ota_begin, esp_ota_write, esp_ota_end, esp_ota_set_boot_partition). It works.

Could anyone point me out, where could be problem? I went through code for esp_https_ota and I think it's very similar code to my manual (native) code, so I can't understand, why it doesn't work. :? Both devices runs same ESP-IDF version.
Thank you

Re: OTA update question

Posted: Thu Nov 21, 2019 7:42 am
by chegewara

Re: OTA update question

Posted: Sun Nov 24, 2019 10:29 am
by lukykl1
Well, I thought about that. But I did not enabled CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE and it is disabled in default settings. Secondly esp_ota_set_boot_partition returns no errors (ESP_OK) so new partition should be valid.

Re: OTA update question

Posted: Mon Nov 25, 2019 4:22 pm
by chegewara
What is the log output when esp32 restarts first time after OTA update?