cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F411 Bricked after loading program

KClos.1
Associate II

I have been programming with the STM32F411CE and I have now had this happen multiple times to different boards. Basically I program the board a few times and then all the sudden it will no longer connect. I get the following message from cubeIDE,

STMicroelectronics ST-LINK GDB server. Version 5.9.1
Copyright (c) 2021, STMicroelectronics. All rights reserved.
 
Starting server with the following options:
        Persistent Mode            : Disabled
        Logging Level              : 1
        Listen Port Number         : 61234
        Status Refresh Delay       : 15s
        Verbose Mode               : Disabled
        SWD Debug                  : Enabled
        InitWhile                  : Enabled
 
Waiting for debugger connection...
Debugger connected
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.8.0                  
      -------------------------------------------------------------------
 
ST-LINK SN  : 2105041B2315303030303032
ST-LINK FW  : V2J39S7
Board       : --
Voltage     : 3.16V
SWD freq    : 4000 KHz
Connect mode: Under Reset
Reset mode  : Hardware reset
Device ID   : 0x431
Revision ID : Rev A
Device name : STM32F411xC/E
Flash size  : 512 KBytes (default)
Device type : MCU
Device CPU  : Cortex-M4
BL Version  : 0x__
 
 
 
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a19720.srec
  File          : ST-LINK_GDB_server_a19720.srec
  Size          : 8536 Bytes
  Address       : 0x08000000 
 
 
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Error: failed to erase memory
 
 
Error: failed to erase memory
Debugger connection lost.
Shutting down...

When I try to connect to the board using the CubeProgrammer, it says "Error: Data read failed" and I am not able to change any of the option bits within the programmer. Is my board broken or can it be reset?

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief II

I use ST Link utility , with programmer i dont help you.

In utility open option bytes window ...

View solution in original post

4 REPLIES 4
MM..1
Chief II

Seems you combine RDP level with sectors write protection... In normal situation this can be undo.

How?

MM..1
Chief II

I use ST Link utility , with programmer i dont help you.

In utility open option bytes window ...

Houda GHABRI
ST Employee

Hi @KClos.1​ 

as mentioned by @MM..1​  I suggest to use ST Link utility to recover the board then come back to CubeProgrammer.

Hope this helps you.

Houda