Question
Program option bytes safely in STM32 MCU | STM32G041F6P6
I aim to set the IWDG (Independent Watchdog) to STANDBY mode to ensure that our MCU remains in that state without being awakened by the Watchdog. To achieve this, I utilized the following command with STM32_Programmer_CLI.exe:
After executing the command, the option bytes bank was appropriately configured as verified below:
STM32_Programmer_CLI.exe -c port=SWD freq=8000 -ob iwdg_stdby=0x0
After executing the command, the option bytes bank was appropriately configured as verified below:
STM32_Programmer_CLI.exe -c port=SWD freq=8000 -ob iwdg_stdby=0x0
After executing the command, the option bytes bank was appropriately configured as verified below:
IWDG_STOP : 0x1 (IWDG counter active in stop mode)
IWDG_STDBY : 0x0 (Freeze IWDG counter in standby mode)
WWDG_SW : 0x1 (Software window watchdog)
I then flashed the firmware in which the STANDBY mode is implemented. I noticed that the IWDG was freezed and MCU continued to stay in the STANDBY mode properly. But when we validated this process in another device, we got to see some issues. It is being noted that firmware data is being written to the MCU flash and being verified properly but only has issues with executing when core is run/reset.
What might have happened with this particular device which is behaving as mentioned above?
Is there a potential issue with the method employed to freeze the IWDG in STANDBY mode?
Could you please suggest a reliable approach to freeze IWDG in STANDBY mode?
Your support on this matter is highly appreciated.
IWDG_STOP : 0x1 (IWDG counter active in stop mode)
IWDG_STDBY : 0x0 (Freeze IWDG counter in standby mode)
WWDG_SW : 0x1 (Software window watchdog)
I then flashed the firmware in which the STANDBY mode is implemented. I noticed that the IWDG was freezed and MCU continued to stay in the STANDBY mode properly. But when we validated this process in another device, we got to see some issues. It is being noted that firmware data is being written to the MCU flash and being verified properly but only has issues with executing when core is run/reset.
What might have happened with this particular device which is behaving as mentioned above?
Is there a potential issue with the method employed to freeze the IWDG in STANDBY mode?
Could you please suggest a reliable approach to freeze IWDG in STANDBY mode?
Your support on this matter is highly appreciated.
