2014-07-07 05:52 AM
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.
2014-07-07 08:08 AM
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.