cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_FLASH_OB_Launch function trigger software reset

wesleywong
Associate II

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.

1 REPLY 1
TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".