Skip to main content
dooz
Associate III
September 18, 2015
Question

Unlocking flash memory

  • September 18, 2015
  • 3 replies
  • 1357 views
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
    This topic has been closed for replies.

    3 replies

    Nesrine M_O
    Associate
    September 18, 2015
    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
    doozAuthor
    Associate III
    September 18, 2015
    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
    Associate
    September 18, 2015
    Posted on September 18, 2015 at 14:55

    It is good to hear that it was solved.

    -Syrine –