cancel
Showing results for 
Search instead for 
Did you mean: 

Does HAL_FLASH_OB_Launch() result in a reset?

siddiq.habib
Associate III

Hi ,

I am using STM32L series of MCU.

From the application code independent watchdog is used and when it is time for entering bootloader say due to firmware upgrade, i use while(1) to reset the system.

1.

Once inside bootloader I am observing that the bootloader is getting reset after a while.

Is this because independent watchdog is expected to be kicked? in bootloader.

 2.

Also once in the bootloader i make calls to modify option bytes

HAL_FLASHEx_OBProgram(&CONFIG);

will this reset the system ? i wonder is it these calls resulting in a reset.

3.

While reading reference manual i came to know that one of the reason for reset could be Option Bytes related register getting modified with the following call

HAL_FLASH_OB_Launch(). Could this be a cause

Please reply.

0 REPLIES 0