Open oriaj3 opened 2 years ago
Hi!
I think your error is on this:
void loop()
{
// put your main code here, to run repeatedly:
void(10);
}
The ESP32 internal Arduino implementation feeds the watchdog timer each time a loop function is called, so that exception is because the watchdog timer was triggered for a timeout.
So remove the void(10)
code and try again.
Same error, even without void(10): Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).
Same error here:
Looks like the Watchdog timer is triggering, The error backtrace is logged below
Decoding stack results 0x4037c48f: vListInsert at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/list.c line 182 0x4037b75f: vTaskPlaceOnEventList at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h line 38 0x4037abaa: xQueueSemaphoreTake at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c line 1688 0x4200238f: uartWriteBuf at C:\Users\ahmed\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32\esp32-hal-uart.c line 309 0x42001899: HardwareSerial::write(unsigned char const, unsigned int) at C:\Users\ahmed\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32\HardwareSerial.cpp line 473 0x42001c8b: Print::write(char const) at C:\Users\ahmed\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Print.h line 67 0x42001cb1: Print::println(char const*) at C:\Users\ahmed\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32\Print.cpp line 195 0x42001375: buttonPressed() at G:\My Drive\Jobs\Upwork\14-Astrohaus---USA\Firmware\Other sketches\Interrupts/Interrupts.ino line 21 0x420014ce: EasyButton::read() at C:\Users\ahmed\Documents\Arduino\libraries\EasyButton\src\EasyButton.cpp line 61 0x42001392: buttonISR() at G:\My Drive\Jobs\Upwork\14-Astrohaus---USA\Firmware\Other sketches\Interrupts/Interrupts.ino line 35 0x4201eb15: __onPinInterrupt at C:\Users\ahmed\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32\esp32-hal-gpio.c line 159 0x40375199: gpio_isr_loop at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/driver/gpio.c line 416 0x403751be: gpio_intr_service at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/driver/gpio.c line 433
Hi, I am testing the library to include it in a larger project and replace my rudimentary library to use short press and long press on various buttons. But after compiling and uploading the example code to my ESP32 with VScode, I get this error. I use the single button example with interrupt and my ESP32 is made by doit, esp-wroom-32 devkit v1.