cancel
Showing results for 
Search instead for 
Did you mean: 

Unlocking flash memory

dooz
Associate II
Posted on September 18, 2015 at 12:46

I accidentaly  did something bad to my flash memory on stm32f3. I tried to disable the write protection to the whole flash but in the result now I have the whole flash write protected and cant debug any program ( I checked it using st-link utility). Is there anyway to fix it?

Regards
3 REPLIES 3
Nesrine M_O
Lead II
Posted on September 18, 2015 at 14:21

Hi oziom.dominik,

If you are at Level2, unfortunately nothing can be done: Memory read protection Level 2 is an irreversible operation. When Level 2 is activated,

the level of protection cannot be decreased to Level 0 or Level 1.

If you are in level 1: you can use STM32 ST-LINK Utility: Target > Option Bytes to modify protection 

-Syrine –

dooz
Associate II
Posted on September 18, 2015 at 14:46

Thanks for fast answer. Good for me it wasn't a level 2.  Changing Data 0(H) value to 0x00 in option bytes settings solved the problem.

Regards

Dominik O.

Nesrine M_O
Lead II
Posted on September 18, 2015 at 14:55

It is good to hear that it was solved.

-Syrine –