Page 1 of 1

ESP32 OTA from arduino to idf

Posted: Mon Aug 09, 2021 7:52 pm
by MatheusGSilva
Hi guys,

Lately i've trying to change from arduino to idf, but i'm stuck with a problem with OTA.

The problem is, if i have one firmware made using arduino and try to update it with OTA using another firmware made via arduino, it's work fine. The same happens if i try the OTA update on a ESP-IDF based application. But i cant seem to upload a firmware made with esp-idf on a application running an Arduino one.

The .bin file download good, but after the restart i got the following error:

[Codebox]rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee[/Codebox]

I already change the partition table to match each other. Is there a way to make this happen?

Best regards

Re: ESP32 OTA from arduino to idf

Posted: Thu Aug 19, 2021 12:14 pm
by dmaxben
Theres an arduino bootloader that is incompatible with IDF code.

For example, if you have an arduino program with that that "bad" arduino bootloader in the ESP32, and then OTA to an IDF-build, it will soft-brick the ESP32.

Are you using the latest arduino bootloader when you flash the ESP32? I forget which of the arduino bootloaders is incompatible with IDF builds...ill try to search through my notes, its been quite a while.

Re: ESP32 OTA from arduino to idf

Posted: Mon Jan 24, 2022 1:12 pm
by Moriki
Does anybody have followup on this?

Might it be possible to do it in two stages?
First Ota and saving the esp-idf bootloader in some partition and than a second Ota use it for the next binary?

Re: ESP32 OTA from arduino to idf

Posted: Mon Apr 04, 2022 6:43 am
by poneponecar
Does anyone have update on this topic?
I also got stuck on this problem now.