Timer Interrupt Causing Core 1 was running in the ISR Context

danishahmed219
Posts: 1
Joined: Mon Dec 07, 2020 8:31 pm

Timer Interrupt Causing Core 1 was running in the ISR Context

Postby danishahmed219 » Mon Dec 07, 2020 8:51 pm

Hello Everyone!
I have been working on my iot project and everything almost there. But in the end of stages. I had to develop wifi connectivity monitoring task and i was using freertos for this purpose. This task was running on core 0. Because I knew, I was using an timer interrupt on the core 1. Which was interrupting every 7200 microseconds but when i started to test it on my esp32. I got an error when i restarted my router and wifi.begin() called " Core 1 was running in the ISR Context" while on every function which is related to ISR. I had used IRAM_ATTR on every function while declaring it which is related to ISR. Is there any way how can i run my other task while having a timer interrupt which is interrupting every 7200 microseconds?

Note: Keep in mind I'm using Arduino IDE.

Who is online

Users browsing this forum: No registered users and 9 guests