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?
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.
"If you feel a post has answered your question, please click ""Accept as Solution""."