Core 0 panic'ed Error when pressing buttons attached to GPIO PINS #7489
Replies: 1 comment
-
Posted at 2023-06-17 by Ivan If i change the code to this:
The error goes away Posted at 2023-06-19 by H.Shatz I'm having the exact same problem - using I think this is something to do with how GPIO interrupts the handled by gpio_intr_handler (in jshardware.c) - the code does not disable further interrupts and might be invoked again while processing (buttons generate a lot of interrupts when switching from one state to another, this is why debouncing is needed). Posted at 2023-06-19 by H.Shatz Seems like there is an open issue for this: Posted at 2024-06-13 by lenxu I'm experiencing the same problem that we've encountered in the past. Guru Meditation Error: Core 0 panic'ed (LoadStoreError). Exception was unhandled. Posted at 2024-06-14 by @MaBecker if you have the .elf file you can use use https://maximeborges.github.io/esp-stacktrace-decoder/ upload .elf file and enter the Stack trace CPU wise to get detail about the function Posted at 2024-08-02 by lenxu I finally solved this problem by using an external pull-up resistor at the physical level, and the software should be written like this.
Posted at 2024-08-02 by @gfwilliams You might actually find that using a 'cutting edge' build (or 2v24 when released) fixes this as well, as I pushed a change for ESP32 2 weeks ago: espruino/Espruino@e493749 Posted at 2024-08-13 by lenxu @gfwilliams It's truly wonderful, and I sincerely appreciate your kindness. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-06-16 by Ivan
Hiya,
I have this simple piece of code:
Randomly when one of the buttons is pressed I get this error:
And it just goes into a loop and keeps printing this out. Using this Firmware: espruino_2v18_esp32
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions