Skip to main content
KClos.1
Associate II
February 15, 2022
Solved

STM32F411 Bricked after loading program

  • February 15, 2022
  • 3 replies
  • 1867 views

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?

This topic has been closed for replies.
Best answer by MM..1

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

In utility open option bytes window ...

3 replies

MM..1
Chief III
February 15, 2022

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

KClos.1
KClos.1Author
Associate II
February 16, 2022

How?

MM..1
MM..1Best answer
Chief III
February 16, 2022

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

In utility open option bytes window ...

Houda GHABRI
ST Employee
March 2, 2022

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