Optimizing CAN ISR to Prevent WDT Panics on ESP32-S3 with MCP25625

Hey guys while developing a CAN bus monitoring system using the ESP32-S3, ESP-IDF, and RTOS, I encountered a WDT (Watchdog Timer) panic within my CAN interrupt service routine (ISR) when interfacing with the MCP25625 CAN controller. The error message is as follows:
Interrupt WDT panic: isr: 0x40000000, exc: 0, cpu: 0, task: , sp: 0x3ffbc1c0
E (134) interrupt: PANIC: Interrupt wdt timeout on CPU0 (ISR)
Interrupt WDT panic: isr: 0x40000000, exc: 0, cpu: 0, task: , sp: 0x3ffbc1c0
E (134) interrupt: PANIC: Interrupt wdt timeout on CPU0 (ISR)
I suspect that reading the MCP25625 registers within the ISR is causing the issue. How can I optimize my CAN ISR to avoid WDT panics? Are there specific techniques for handling CAN interrupts efficiently within ESP-IDF RTOS?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server