STM32F411 Bricked after loading program
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?
