2022-02-07 09:37 AM
2022-02-07 09:41 AM
I am using NUCLEO32F429ZI. I try to use IWDG to find software time out. but I want to add led to indicate IWDG to happen. for example LED3 installed on the board. I notice IWDG doesn't have interrupt. is it possible to add some user defined code when IWDG is time out? it will trigger HardFault_Handler() when IWDG is time out? also if I use FREERTOS, do i need some specific setting for IWDG?
THANK YOU IN ADVANCE.
2022-02-07 06:16 PM
During startup, read the RCC_CSR flags to determine if the reset was caused by IWDG. If so, light up the LED. Clear the flags after you're done reading them.
IWDG doesn't cause a hard fault, it resets the chip.