iwdg hardware mode not working.
I wanna my design can back to working after EMC shocks.
So I plan to use Hardware watchdog , with followed code under ucOS
***************************
usrOption = FLASH_GetUserOptionByte();
if( (usrOption&OB_IWDG_SW) != 0)
{
FLASH_Unlock();
FLASH_EraseOptionBytes();
FLASH_UserOptionByteConfig(OB_IWDG_HW,OB_STOP_NoRST,OB_STDBY_NoRST);
FLASH_Lock();
OSTimeDlyHMSM(0, 0, 1, 0);
OS_ENTER_CRITICAL();
NVIC_SystemReset();
OS_EXIT_CRITICAL();
}
**************************
99% iwdg work fine. But under some bad situation, my system frozen , looks like iwdg not working.
Can someone give me some advise, why sometime IWDG out of service, is there any way to sure IWDG can work fine even under very bad situation.
