2013-11-06 03:23 AM
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 advance2013-11-06 03:38 AM
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.
2013-11-06 04:20 AM
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?