cancel
Showing results for 
Search instead for 
Did you mean: 

how to set and reset the Option Byte while flash via dual boot option on stm32l476rg along with using mbed os-version 5.x?

Ngaur
Associate

Hello,

I have done with flash via dual boot option on a STM32L476RG board using an external board NUCLEO- L476. when I am trying to change the option bit via program in which i am using HAL_FLASHEx_OBGetConfig and HAL_FLASHEx_OBProgram. eventually i am able to set the BFB2 bit in User_config while using the HAL_FLASH_Unlock(), HAL_FLASH_OB_Unlock() and HAL_FLASH_OB_Lock(), HAL_Lock() respectively but when we tried to disable BFB2 bit. it wouldn't work any more. if there is any way or specifically any api so that we can able to do this.

Can someone guide me on how I might fix this problem?

Thanks & Regard

Nikhil Singh Gaur

0 REPLIES 0