IWDG of STM32F103 work in hardware watchdog mode, question
IWDG of STM32F103 work in hardware watchdog mode, by set MCU's option bytes.
My question is "Once the option byte wrote, software need not start the IWDG by code, even after many times reset ( include software reset , PVD reset, IWDG reset) IWDG is still functional.
here is my code for setting the option byte of IWDG to hardware watchdog mode.
***************************
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();
}
**************************
