Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32 constantly restarts (SW_CPU_RESET) #6

Open
Gehilfe opened this issue Nov 18, 2023 · 8 comments
Open

esp32 constantly restarts (SW_CPU_RESET) #6

Gehilfe opened this issue Nov 18, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@Gehilfe
Copy link

Gehilfe commented Nov 18, 2023

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/[email protected]
adafruit/RTClib
makuna/[email protected]

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.

@Gehilfe
Copy link
Author

Gehilfe commented Nov 18, 2023

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

@tjfsteele
Copy link
Contributor

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

@Gehilfe
Copy link
Author

Gehilfe commented Nov 29, 2023

Thank you! I´ll try it tomorrow :)

@t0mg
Copy link
Owner

t0mg commented Dec 6, 2023

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

@Gehilfe
Copy link
Author

Gehilfe commented Dec 6, 2023

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.

@Gehilfe Gehilfe closed this as completed Dec 6, 2023
@Gehilfe Gehilfe reopened this Dec 6, 2023
@t0mg
Copy link
Owner

t0mg commented Jan 7, 2024

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

@Gehilfe
Copy link
Author

Gehilfe commented Jan 7, 2024

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
Copy link
Owner

t0mg commented Jan 7, 2024 via email

@t0mg t0mg added the bug Something isn't working label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants