cancel
Showing results for 
Search instead for 
Did you mean: 

configuring watchdog for freertos

karthikainala
Associate II
Posted on July 07, 2014 at 14:52

how to configure watchdog timer for the freertos in stm32l152cb MCU, the freertos has 3 tasks running. when to update the WWDG counter, in the st example wwdg counter is updated in a while loop every 50ms . but how to do that in freertos in which multiple tasks are running in while loop.

1 REPLY 1
chen
Associate II
Posted on July 07, 2014 at 17:08

Hi

''the freertos has 3 tasks running. when to update the WWDG counter, in the st example wwdg counter is updated in a while loop every 50ms . but how to do that in freertos in which multiple tasks are running in while loop.''

How indeed ?!?

This is up to you as the system designer.

If you have a central 'control task' which runs on a regular basis - that would be a good candidate for the task to 'kick the watchdog'.

If not, you may need to artificially have one of the tasks lick the watchdog.

You may choose to have one task 'ping' the other tasks. If any task fails the 'ping' - then stop kicking the watchdog.

DO NOT have the SysTick kick the watchdog. This is pointless since the SysTick is triggered by a hardware timer, it just proves the timer is running OK.