IWDG vs WWDG on STM32: which one you actually use in production, and how do you feed it?
Discussion in our team this week, I want outside opinions.
Today: IWDG only, ~100 ms timeout, kicked from a low priority FreeRTOS task. Colleague says this is useless, because a stuck high priority task will block the low priority one and we reset, fine, but a runaway loop that still lets the kicking task run will never reset. He wants WWDG with a window, so kicking too early also resets.
Constraints: motor control loop at 1 kHz, must reset within ~100 ms if the control loop dies, field units have no debugger obviously, and we must know afterwards that it was a watchdog reset.
What do you do? IWDG, WWDG, both? Which task kicks it?
Accepted answer
Get the best of #bare_metal weekly
One email each Monday with the most useful posts. No spam; unsubscribe in one click.
Comments
Sign in to join the conversation.
Sign in to commentAccepted answer