I am trying to clear the IWDG_STDBY bit set in flash so I can enter standby mode without the watchdog timer waking up the MCU.
I am using an STM32f746zg and this is what I have been trying:HAL_FLASH_Unlock();CLEAR_BIT(FLASH->OPTCR, FLASH_OPTCR_IWDG_STDBY);HAL_FLASH_Lock();But it doesn't seem to actually modify the bit. What is the proper procedure to clear this bit in flash?...