This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Get Tick Count From ISR

Hi,

I have an issue of watchdog in my application.

I think it may occur due to an interrupt (NFC trigger), which calls the function xTaskGetTickCount() instead of xTaskGetTickCountFromISR(), while other task already entered the critical section using xTaskGetTickCount(). Therefore - the interrupt is stuck on the mutex until watchdog occurs.

Is that make sense? If so - using xTaskGetTickCountFromISR() during interrupt context can solve my problem? How?

Thanks!

Related