Closed yogeshwaran774 closed 3 years ago
Your code is throwing the error at line 1174. Most likely, you are doing something in an ISR which is not allowed. ISRs must run quickly and uninterrupted. Set a flag variable or semaphore, and do your processing after the interrupt.
Your code is throwing the error at line 1174. Most likely, you are doing something in an ISR which is not allowed. ISRs must run quickly and uninterrupted. Set a flag variable or semaphore, and do your processing after the interrupt.
I am using gpio interrupt from external rtc module and the interrupt handler was just incrementing one variable and timer 0 was running with 15 sec timeout . I am feeding timer each 5 sec once. Including with this mqtt subscribe callback was also attached.
I monitored while esp32 restarts like there were no subscribe callback call. There is something with rtc_isr which is associated with timer in esp32. Is that correct?
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.
Hardware:
Board: ESP32 Dev Module Core Installation version: 1.0.4 IDE name: Arduino IDE Flash Frequency: 40Mhz PSRAM enabled: no Upload Speed: 115200 Computer OS: Windows 10
Description:
I am using timer 0 and one task which listen queue and read from the queue then post data to the cloud via mqtt. Things are working fine for sometime then i am getting Exception at rtc_isr. I am not able to understand what is happening by checking at the exception decoder. I have attached the Exception below can someone guide me to handle this?
Debug Messages:
Exception Decoder PC: 0x40142f43: rtc_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/driver/rtc_module.c line 1965 EXCVADDR: 0x00000000
Decoding stack results 0x40142f43: rtc_isr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/driver/rtc_module.c line 1965 0x4008a55d: vTaskExitCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/tasks.c line 4274 0x400891a5: xQueueGenericReceive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c line 1546 0x400d2937: post_to_cloud(void*) at C:\Users\91953\Desktop\Hacklab-master\Hacklab-master\Products\P019-Ble_Tag\Firmware\Esp32_Nrf_Uart/Esp32_Nrf_Uart.ino line 1174 0x400893e1: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143