OTA update succesfull but kills esp when using arduino build

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
GravityRZ
Normal user
Posts: 206
Joined: 23 Dec 2019, 21:24

OTA update succesfull but kills esp when using arduino build

#1 Post by GravityRZ » 11 Apr 2020, 10:45

i finally got arduino back working so i am able to build binaries myself

when i create a binary from a regular Mega release and flash that new arduino build to the esp using OTA (from within the ESP)
it states that the update is succcesfull but when rebooting the unit does not come online.

the only way to get it working is to flash using the serial port.
after that i can use OTA again with newer Arduino builds.


somehow i think the OTA code on the running unit gets affected when updating with a build made by another platform
original binaries are made with platformio
is there a difference in where the ota code is put between platformio and Arduino?

TD-er
Core team member
Posts: 8754
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: OTA update succesfull but kills esp when using arduino build

#2 Post by TD-er » 11 Apr 2020, 11:07

I guess the defined location of the SPIFFS filesystem may be set different.
In the PlatformIO.ini files you can see what layout is used for what builds.
In ArduinoIDE you must make sure you set it yourself.

GravityRZ
Normal user
Posts: 206
Joined: 23 Dec 2019, 21:24

Re: OTA update succesfull but kills esp when using arduino build

#3 Post by GravityRZ » 12 Apr 2020, 11:48

discovered why ota was not working

i did set the flash size to 4MB but the FS was set to 2MB
changed it to 1MB, did an ota with the custom firmware and the unit came back online after the upgrade
esp-ota.JPG
esp-ota.JPG (24.06 KiB) Viewed 4373 times

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 141 guests