Page 1 of 1

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

Posted: Sat Sep 23, 2023 6:02 pm
by HRDUERR
I used the Arduino code for the Large digit driver from Sparkfun on an ESP-WROOM 32:

https://learn.sparkfun.com/tutorials/la ... -guide/all

I ended up with:
19:29:55.584 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
19:29:55.677 -> Core 1 register dump:
19:29:55.677 -> PC : 0x400d0cdf PS : 0x00060530 A0 : 0x800d1539 A1 : 0x3ffb1f80
19:29:55.770 -> A2 : 0x3ffbdbb4 A3 : 0x3ffbdbb5 A4 : 0x3ffbfe90 A5 : 0x3ffbdbb6
19:29:55.864 -> A6 : 0x00000008 A7 : 0x00000001 A8 : 0x800d0cdf A9 : 0x3ffb1f60
19:29:55.956 -> A10 : 0x00000040 A11 : 0x00000000 A12 : 0x0800001c A13 : 0x00000003
19:29:56.049 -> A14 : 0x00000003 A15 : 0x00000000 SAR : 0x0000001a EXCCAUSE: 0x0000001c
19:29:56.141 -> EXCVADDR: 0x800d1539 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
19:29:56.235 ->
19:29:56.235 -> ELF file SHA256: 0000000000000000
19:29:56.281 ->
19:29:56.281 -> Backtrace: 0x400d0cdf:0x3ffb1f80 0x400d1536:0x3ffb1fb0 0x40086155:0x3ffb1fd0
19:29:56.373 ->
19:29:56.373 -> Rebooting...

Did anyone have an idea how to solve that problem? Any idea welcome.

hrduerr

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

Posted: Sun Sep 24, 2023 1:48 am
by ESP_Sprite
Suggest you decode that backtrace first.

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

Posted: Sun Sep 24, 2023 9:20 am
by HRDUERR
O.k., how shall I do that?

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

Posted: Sun Sep 24, 2023 12:11 pm
by ESP_Sprite
See here.

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

Posted: Mon Sep 25, 2023 5:42 pm
by HRDUERR
o.k. Decoding it to:

PC: 0x400d0d41: setup() at D:\Daten\Arduino\ESP32\TestLargeDigitDriver/TestLargeDigitDriver.ino line 44
EXCVADDR: 0x00000000

Decoding stack results
0x400d0d41: setup() at D:\Daten\Arduino\ESP32\TestLargeDigitDriver/TestLargeDigitDriver.ino line 44
0x4008618d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

Line 44 is " pinMode(segmentLatch, OUTPUT);"

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

Posted: Mon Sep 25, 2023 6:08 pm
by HRDUERR
Help for own help is the best ...

I just changed the pins from 6,5,7 to 16,17 and 18. And it worked!
Thank you!

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

Posted: Tue Sep 26, 2023 12:17 am
by ESP_Sprite
Fwiw, that code probably crashed as those GPIOs are used to interface with the flash; if you reconfigure those pins, the ESP32 can't read the program from flash anymore and crashes. The proper solution is indeed to use different IO pins, as you did.