OTA update question

lukykl1
Posts: 2
Joined: Mon Sep 17, 2018 11:50 am

OTA update question

Postby lukykl1 » Tue Nov 19, 2019 12:51 pm

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

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: OTA update question

Postby chegewara » Thu Nov 21, 2019 7:42 am


lukykl1
Posts: 2
Joined: Mon Sep 17, 2018 11:50 am

Re: OTA update question

Postby lukykl1 » Sun Nov 24, 2019 10:29 am

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.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: OTA update question

Postby chegewara » Mon Nov 25, 2019 4:22 pm

What is the log output when esp32 restarts first time after OTA update?

Who is online

Users browsing this forum: Bing [Bot] and 110 guests