cancel
Showing results for 
Search instead for 
Did you mean: 

Set FLASH level protection from Level 1 to Level 0

ecatala
Associate II
Posted on November 06, 2013 at 12:23

I am programming the STM32F051x6 micro with the IAR Embedded Workbench IDE and the ST-LINK.

I erased the Flash option bytes and now I can not load my application code into the micro with the ST-LINK because the Flash is in Level1 (read protection).

The manual said that in order to go back to Level0 (no protection)  I have to change the RDP value to 0xAA and that I have to do that executing in user mode.

How can I execute in user mode? Or how can I set the RDP value to 0xAA?

Thanks in advance
2 REPLIES 2
Amel NASRI
ST Employee
Posted on November 06, 2013 at 12:38

You can use the 

http://www.st.com/web/en/catalog/tools/PF258168

to update protection level and option bytes.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

ecatala
Associate II
Posted on November 06, 2013 at 13:20

Thanks. It worked!

What I wanted to do initially was to program the 2 user bytes (located in the option byes Flash) to store some data. Do you know how Can I progrma these 2 bytes mantaining the level protection to 0? Or is it better I use a standard flash sector to program 2 bytes to store data?