2019-02-22 12:57 AM
I am using the STM32L431 MCU and I want to stop the IWDG when it enters the standby mode, so I want to try changing the value of the IWDG_STDBY bit to freeze the IWDG. I tried with any of the the following instuctions but nothing works.
CLEAR_BIT(FLASH->OPTR, FLASH_OPTR_IWDG_STDBY);
FLASH->OPTR &= 0xFFFBFFFF;
(FLASH->OPTR & FLASH_OPTR_IWDG_STDBY) = 0x0;
I'd like to know if before I can change this register, another action must be done.
Thanks!
Solved! Go to Solution.
2019-02-22 01:21 AM
You should unlock it. Read the "Option bytes programming" section in the reference manual (RM0394).
Also, what is this?? 0_0
> (FLASH->OPTR & FLASH_OPTR_IWDG_STDBY) = 0x0;
2019-02-22 01:21 AM
You should unlock it. Read the "Option bytes programming" section in the reference manual (RM0394).
Also, what is this?? 0_0
> (FLASH->OPTR & FLASH_OPTR_IWDG_STDBY) = 0x0;