t0mg/wordclock

esp32 constantly restarts (SW_CPU_RESET)

Opened this issue · 8 comments

Hello,
I can't get the code to work on an esp32-Wroomer-32. There is no error message when compiling, the transfer also works without problems. However, I always get the following message via the serial monitor:

ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1100
ho 0 tail 12 room 4
load:0x40078000,len:12280
ho 0 tail 12 room 4
load:0x40080400,len:3076
entry 0x400805ec
[ 17][E][ESPmDNS.cpp:65] begin(): Failed starting MDNS
[ 18][E][ESPmDNS.cpp:148] addService(): Failed adding service http.tcp.

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x400d3d07 PS : 0x00060130 A0 : 0x800d3d02 A1 : 0x3ffb2760
A2 : 0x00000000 A3 : 0x0000000a A4 : 0x00000005 A5 : 0x3ffc2b30
A6 : 0x3ffb2740 A7 : 0x3ffb2750 A8 : 0x00000000 A9 : 0x3ffb2730
A10 : 0x00000000 A11 : 0x3ffb275c A12 : 0x0000000a A13 : 0x3ffc236c
A14 : 0x3ffc23b4 A15 : 0x00000072 SAR : 0x00000019 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x40084b65 LEND : 0x40084b6d LCOUNT : 0x00000027

Backtrace:0x400d3d04:0x3ffb27600x400d3cff:0x3ffb2780 0x400d3e49:0x3ffb27c0 0x400d2980:0x3ffb2800 0x400e1cc7:0x3ffb2820

ELF file SHA256: 0000000000000000

Rebooting...

The problem occurs regardless of whether I use Platform.io or the Arduino IDE. I have also tried different versions of the libraries. I am currently using the following libraries under Platform.io:
prampec/IotWebConf@2.3.1
adafruit/RTClib
makuna/NeoPixelBus@2.5.5

To rule out a possible defect in the microcontroller, I have now used 3 different esp32. The same error pattern occurs with all three.

I would be pleased if you could give me a tip. I have already searched the net desperately for possible solutions, but have found nothing.

Short update: output in Verbose Mode

ELF file SHA256: 72dcdc06eeb0da86

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
[ 1][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=80, ...)
[ 1][V][WebServer.cpp:87] WebServer(): WebServer::Webserver(port=80)
[ 17][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 8000000Logging started.
[ 2025][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
Config size: 261
Wrong config version.
[ 2029][E][ESPmDNS.cpp:65] begin(): Failed starting MDNS
[ 2032][E][ESPmDNS.cpp:148] addService(): Failed adding service http.tcp.

Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x400d3a2d PS : 0x00060c30 A0 : 0x800d4104 A1 : 0x3ffcc6a0
A2 : 0x00000001 A3 : 0x3ffcc6dd A4 : 0x00000000 A5 : 0x3ffc45bc
A6 : 0x3ffcc660 A7 : 0x3ffcc670 A8 : 0x00000000 A9 : 0x000000ff
A10 : 0x00000000 A11 : 0x000000ff A12 : 0x0000000a A13 : 0x00000000
A14 : 0x00000072 A15 : 0x00000012 SAR : 0x00000019 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000006 LBEG : 0x40084975 LEND : 0x4008497d LCOUNT : 0x00000027

Backtrace: 0x400d3a2a:0x3ffcc6a0 0x400d4101:0x3ffcc6c0 0x400d426d:0x3ffcc700 0x400d2f23:0x3ffcc740 0x400e5b36:0x3ffcc770

I think I have fixed this. See the next issue.

Thank you! I´ll try it tomorrow :)

t0mg commented

Can we close this now that PR #8 is in?

Sorry, I haven't had time to test if it works with the changed code. But tomorrow I should finally get around to it. I would then close the issue myself.

t0mg commented

Hello and happy new year. I think it should be resolved now. Can you please confirm ?

I apologize for any inconvenience. I still haven't managed to try the workaround. I'll just close the thread and get back to you if it didn't work. Thanks for the support and happy new year as well 😀

t0mg commented