cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling Flash readout protection through sram

carles
Associate
Posted on October 06, 2015 at 12:24

Hi all,

Anyone knows why the following code is not disabling the flash memory readout protection? It is being executed on a STM32F103 microcontroller.

FLASH_Unlock();

 

FLASH_ReadOutProtection(DISABLE);

 

FLASH_UserOptionByteConfig(OB_IWDG_SW, OB_STOP_NoRST, OB_STDBY_NoRST);

 

FLASH_Lock();

 

__disable_irq();

 

NVIC_SystemReset();

Thanks

#read-protection
1 REPLY 1
Nesrine M_O
Lead II
Posted on October 23, 2015 at 18:18

Hi pey.carles,

It seems that you miss the function that allow the access to option bytes sector: 

FLASH_OB_Unlock();

 

-Syrine –