Skip to main content
siddiq.habib
Associate III
February 25, 2019
Question

Does HAL_FLASH_OB_Launch() result in a reset?

  • February 25, 2019
  • 0 replies
  • 751 views

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.

This topic has been closed for replies.