Skip to main content
Merav Stassberg
Associate
February 14, 2017
Solved

''active write protected STM32 device detected''

  • February 14, 2017
  • 3 replies
  • 4077 views
Posted on February 14, 2017 at 14:07

Hi, I am working on ST STM32L151VB-A, I burned a loader which already worked for me, and since then I get ''active write protected STM32 device detected'' also on other application that worked fine.

 when I try to connect via J-Link commander I get ''cannot connect to target''.

 as I understand from:

https://community.st.com/external-link.jspa?url=https%3A%2F%2Fwiki.segger.com%2Findex.php%3Ftitle%3DJ-Link_can%2527t_connect_to_the_CPU%3A

''This can have different reasons as for example the application does disable the debug interface, re-configures the debug pins, enters some kind of low-power-mode or the security of the device is activated. In order to prevent such situations during the development process''

is this reversible at all? What can be done?

Thank you!

0690X00000605tIQAQ.png0690X00000606ItQAI.png0690X00000606E4QAI.png
    This topic has been closed for replies.
    Best answer by danilo239955
    Posted on February 15, 2017 at 11:45

    Hi,

    If pin BOOT0 is not directly connected to GND you can connect it to VCC in order to  change the boot mode (see reference manual).

    BR.

    Danilo

    3 replies

    danilo239955
    danilo239955Best answer
    Associate
    February 15, 2017
    Posted on February 15, 2017 at 11:45

    Hi,

    If pin BOOT0 is not directly connected to GND you can connect it to VCC in order to  change the boot mode (see reference manual).

    BR.

    Danilo

    Merav Stassberg
    Associate
    February 15, 2017
    Posted on February 15, 2017 at 14:34

    Hi,

    It worked!!! thank you so much!

    chill.11
    Visitor II
    September 30, 2020

    I meet same question when using STM32F401RET6, using this way and can programming, but this Application don't run. please help it. thanks.