Rebooting/Resetting/Bootloops on ESP8266

I thought there was a fix for this, but poking around the github issues, I didn’t see much of anything.

I’ve been using an ESP32 with no problems and finally got around to flashing the Shelly RGBW2 with wled and the result is bootloops about every four seconds.

Update: Note that I already have everything possible disabled (MQTT, Alexa, etc.).

Hi @tonyno, you could try with another LWIP stack, often a solution to avaiod bootloops is using LWIP1.4 instead of 2.0.

PlatformIO flag:

-D PIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH

Does that apply to Arduino ide as well?

Yes, but in Arduino you set the Lwip version to 1.4 Higher Bandwidth in the Tools menu

1 Like

That’s interesting. I made that change. Not sure if it was like this before, but it’s fine until I connect it to my network…

Any more ideas?

Hi @tonyno,
did you connect the ESP to serial and start serial monitor while starting ?
What is the reset cause ?

Here is a list of reset-causes.

Did you try erasing the flash befor flashing ?

…and if this does not work either, you could change to another Arduino Core, like arduino_core_2_4_2 - this is the default for the ESP01 modules, too.

1 Like

Good idea. :wink: I just did…

Exception (28):
epc1=0x4000bdc8 epc2=0x00000000 epc3=0x40218717 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffd30 end: 3fffffc0 offset: 01a0
3ffffed0:  00000000 00000000 00000000 3fff1384  
3ffffee0:  3fffff40 3fffff4c 00000000 4021869b  
3ffffef0:  00000050 3fffdad0 3fff159c 3fff1190  
3fffff00:  00000003 3fff1367 3fff0a20 3fffff4c  
3fffff10:  3fffff40 00000050 3fff1384 40218706  
3fffff20:  3ffea0be 3fffff40 3ffea0ba 3fff1190  
3fffff30:  3ffea0be 3ffea0ba 3fff1384 40212f66  
3fffff40:  00706374 aa00000a 83c6a7f0 64656c77  
3fffff50:  3fff4500 84217ad0 40100574 3fff1190  
3fffff60:  3fff1195 3fff118f 00000000 402131be  
3fffff70:  00000000 00000000 3fff155c 3fff159c  
3fffff80:  00000000 00000000 00000001 3fff159c  
3fffff90:  3fffdad0 00000000 3fff155c 4021559c  
3fffffa0:  feefeffe feefeffe feefeffe 40224fd8  
3fffffb0:  feefeffe feefeffe 3ffe87f0 40100f91  
<<<stack<<<

 ets Jan  8 2013,rst cause:1, boot mode:(3,1)

load 0x4010f000, len 1392, room 16 
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
Ada

My flasher seems to erase before flashing (ESPHome).

For 2.4.2, is it one of these?

image

Hi @tonyno, hmmm - this does cause: 1 mean:

Power-on-reset, indicates that the ESP8266 went through a power cycle and rebooted as a result of that.
Often seen randomly if your power supply is dodgy.

You could try to change the PSU.
By the way: having a 1000 uF capacitor in parallel to the 5V is good for this, too.

Or: install the EspExceptionDecoder in the Arduino IDE (instrructions can be found here and do the same procedure as you did to get the reset reason (Serial Port Monitor).

However: Exception 28 is LoadProhibitedCause:

A load referenced a page mapped with an attribute that does not permit loads. (Options: Region Protection or MMU).

I did read that this could happen if there are old WiFi settings stored in the flash.

Comming to the Arduino Core: this is the Arduino Version that is selected with the Board Manager (Menu Tools > Board > Board Manager: search for ESP) then the esp8266 by ESP8266 Community will be displayed and there you can select version and choose 2.4.2.

The PSU is a 90W bench supply and I am driving a strip of three 5050’s. I don’t think that’s actually it. :wink:

Ah, that 2.4.2! Thanks.

Update: 2.4.2 fixed it!

I’m seeing reboots on 8266 after about 2 minutes and am running the 0.9.1 ledpin4 bin. If I want to try and compile myself in the Arduino IDE, should I use the wled00 dir in source code at the end of the 0.9.1 releases?

TIA

Hi, how many LEDs do you have connected? I would recommend you try the latest master source (the green download button on the main page, not the zip from 0.9.1 assets)

50, ok, I’ll try the master, I’m using the Arduino IDE and just have to track down all the libraries. I’m not having any luck with ESPAsyncTCP tho through the library manager. Trying to find the URL to add the git repo to the IDE.

I gave up and just installed them from .zip. It compiled so I’ll get to testing.

So after uploading the master branch with all defaults, it worked better(approx 10 minutes) before restarting. I then connected to my ssid as a client as opposed to AP mode and it’s been running a test pattern just fine.

Thanks for all the help.

Hi everyone!

I’m having a very similar issue with a NodeMCU v3 (ESP8266). I’ve tried to Erase Flash -> All flash contents but still no luck :frowning:

I’ve also tried using the Arduino core 2.4.2 and select the Lwip version to 1.4 Higher Bandwidth (Actually I’ve tried with them all…)

I had this working before but after flashing this last time I’m getting a boot loop after introducing my WiFi configuration. I’ve even tried to go back but I have an issue with all WLED versions now.

Do you have any idea of what it can be?

Thanks!