2026-01-05 10:46 PM - edited 2026-01-05 11:01 PM
Hi ST team,
I am using STM32U5G9 MCU.
After modifying option bytes, HAL_FLASH_OB_Launch() would be called to apply the changes.
But in the launch function, it states that "Option byte launch generates Option byte reset". I have other tasks need to be done after calling HAL_FLASH_OB_Launch(). I don't want device to be reset after calling HAL_FLASH_OB_Launch() immedately.
Is there a way to trigger reset manually after modifying option bytes?
1. Modify option bytes
2. Call HAL_FLASH_OB_Launch()
3. Reset device manually
Thank you.
2026-01-06 6:00 AM
You can't change the behavior of HAL_FLASH_OB_Launch. If you have other stuff to do, do it before calling HAL_FLASH_OB_Launch.