STM32F405RG IWDG Behaviour
Hi all.
Thanks in advance for taking the time to answer - much appreciated.
Context:
STM32F405RG running 3 tasks using CMSIS_OS v2.
Using HAL.
IWDG set to 10s.
HAL_IWDG_Refresh() sprinkled throughout the 3 tasks and in idle task.
Symptoms:
IWDG resets MCU like clockwork.
Additional info:
Breakpoint in HAL_IWDG_Refresh gets hit reliably and within 1s without fail.
Watching IWDG_KR in debugger, I can't see a change to 0xAAAA despite confirming it is done and executed in code (breakpoint->stepping).
All ISR's are only used to feed threads with triggers/data using semaphores/queues - no processing or data manipulation done in ISR's.
Questions:
1.) I'm assuming the hardware is too quick to clear the KR register for the debugger to see the 0xAAAA update?
2.) Any help/advice or pointers (no pun intended) to stop regular IWDG resets appreciated.
Thanks
