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

FreeRtos vTaskDelayUntil affect WDT Timeout

Hi 

I am using the NRF52832 ,my code is based on the ble_app_hrs_freertos example sdk 15.0.0 

I have one main task which usually run 64 time every second using the vTaskDelayUntil(&xLastWakeTime, 16)  .

and when trying test the WDT(which is configured to give timeout event after 4000ms) without feeding it a WDT event happens after more than 12 seconds!!!!.

I notice that both the WDT and the freeRtos is using the RTC timer and when i watched the NVIC parameters (the RTC1 and WDT) enable went on/off all the time .

 

Do you have any idea why i get this kind of behavior ??

Thanks a lot

Ibrahim 

Related