Skip to main content
carles
Visitor II
Oct 6, 2015 10:24 AM UTC
Question

Disabling Flash readout protection through sram

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
This topic has been closed for replies.

1 reply

Nesrine M_O
Associate
Oct 23, 2015 4:18 PM UTC
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 –