-->
Page 1 of 1

Version update -> OTA fails (random)

PostPosted: Sun Jul 03, 2016 8:09 am
by Stu
Hi,

First, I'm still investigating, trying to rule out the many possible reasons for this, but since there seem to be a lot of potential factors to considerate, I'd like to see if someone here perhaps recognizes the symptoms.

So I updated my board and libraries. (All the time I was thinking that clicking on the popup message actually ment that I was updating the board and libraries, not knowing that I actually had to click "updatable", and then "update".)

Now, with the new version the OTA often fails at a random percentage. Often 1%, around 40% or 98%, but often at a random percentage. OTA always worked perfectly but now I find myself flashing over serial most of the time.

What I tried
- Going back to an older and stable version of my software.
- Erasing the flash with pytool
- Updating back to older versions available, but they all seem newer than what I used to have.
- Tried different upload parameters

Since I've not updated for such a long time, I'm not sure what the version was that I used before. Next thing I'm going to do is try to find my original downloads and do a reinstall with those.

Oh and by the way, I'm using Arduino IDE 1.6.7. My ESP's are ESP-07 with 1MB flash

Re: Version update -> OTA fails (random)

PostPosted: Wed Jul 06, 2016 9:39 am
by Stu
Interesting symptom: When OTA updates works normally, every now and then you may experience a hiccup, and the
Code: Select allelse if (error == OTA_END_ERROR) Serial.println("End Failed");
will be triggered.

In my case the device crashes without getting back the error code. Does this mean something to anyone here?
How could I go ahead and debug this?

I'm really desperate here :cry: -- quite some development time went into my project which is now broken --
Many thanks for any help or pointers you may have!

Re: Version update -> OTA fails (random)

PostPosted: Wed Jul 06, 2016 10:26 am
by ftheirs
I know that this answer doesn't really help but I tried the BasicOTA example in Arduino 1.6.8. I attach a pic with the configuration. Be sure of set Flash Size 512K (no SPIFFS). Before that, I couldn't even upgrade the firmware.

Anyway, I'm just try the OTA upgrade a couple of times, so if I find some errors I'll let you know.

PS: I have the same ESP model

Re: Version update -> OTA fails (random)

PostPosted: Thu Jul 07, 2016 8:55 am
by Stu
I have a 1M flash, so I use (and always have) the 1M (64K SPIFFS) option.
On a side note, I wonder why there is no 1M (no SPIFFS) option. I have no need of SPIFFS.