Skip to main content
Khoa Tran
Associate III
June 30, 2015
Question

STM32L053 Flash Write Protection

  • June 30, 2015
  • 7 replies
  • 1408 views
Posted on June 30, 2015 at 06:06

I wrote Option Byte and Enalbled Write Protection all flash page.

I can't program MCU. It say flash is protected.

How can I fix this problem ?

Thank You.

Khoa Tran.
    This topic has been closed for replies.

    7 replies

    johnjohn9
    Visitor II
    June 30, 2015
    Posted on June 30, 2015 at 07:12

    Hi,

    You can try using RFlasher from Raisonance to erase config on your micro.

    Regards,

    John

    Khoa Tran
    Khoa TranAuthor
    Associate III
    June 30, 2015
    Posted on June 30, 2015 at 10:17

    Thank you John.

    But I can't find RFlasher..Can you give me the download link ?

    Khoa.

    Amel NASRI
    ST Technical Moderator
    June 30, 2015
    Posted on June 30, 2015 at 10:45

    Hello tran.khoa,

    You can use the

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

     software.

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    johnzhaoliu
    Visitor II
    June 30, 2015
    Posted on June 30, 2015 at 13:57

    Hi,

    You may need to sign up and download the trail version. It use to be free. Things might have changed. But Mayla's recommendation should work too. I''m sorry I couldn't be more helpful.

    Regards,

    John

    Khoa Tran
    Khoa TranAuthor
    Associate III
    July 2, 2015
    Posted on July 02, 2015 at 02:44

    Thank you Mayla and John.

    I've tried using ST Utility before I started this thread but I can't fix the problem. I may have done something wrong. I will try again.

    Khoa.

    Tesla DeLorean
    Guru
    July 2, 2015
    Posted on July 02, 2015 at 02:58

    Well it's a bit hard to trouble-shoot with the information provided.

    What exactly did you do to the part originally. How did you write the option bytes, and what exactly did you write to them?

    Do the utilities indicate is can read the current state of the option bytes, or the content of the flash array?

    There are definitely things you can do with the option bytes, protection levels, and OTP.

    Finally you might try to access the System Loader via the USART, this provides access to a selection of commands that might be able to walk the part out of it's current state. These techniques generally require a review of all the relevant documentation and experimentation.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Khoa Tran
    Khoa TranAuthor
    Associate III
    July 3, 2015
    Posted on July 03, 2015 at 02:43

    Thank you clive1.

    I fixed the problem with ST Utility.

    I've tried using System Loader via USART too but It's not working.

    Khoa.