ESP32 OTA from arduino to idf

MatheusGSilva
Posts: 3
Joined: Mon Aug 09, 2021 7:41 pm

ESP32 OTA from arduino to idf

Postby MatheusGSilva » Mon Aug 09, 2021 7:52 pm

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

dmaxben
Posts: 108
Joined: Thu Nov 16, 2017 6:04 pm

Re: ESP32 OTA from arduino to idf

Postby dmaxben » Thu Aug 19, 2021 12:14 pm

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.

Moriki
Posts: 6
Joined: Sun May 02, 2021 6:31 pm

Re: ESP32 OTA from arduino to idf

Postby Moriki » Mon Jan 24, 2022 1:12 pm

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?

poneponecar
Posts: 4
Joined: Sun Apr 03, 2022 11:56 am

Re: ESP32 OTA from arduino to idf

Postby poneponecar » Mon Apr 04, 2022 6:43 am

Does anyone have update on this topic?
I also got stuck on this problem now.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Majestic-12 [Bot] and 122 guests