Search code examples
armstm32stm32f4nucleost-link

STM32 Nucleo F411RE ST-LINK error (DEV_TARGET_CMD_ERR)


I do not have any experience with programming STM32 boards. In windows device manager, it says that my ST-LINK driver is up to date (latest version). The board LEDs light up and everything seems to be normal until I try to connect to the board through ST-LINK. I am getting the following error in STM32CubeProgrammer when trying to connect to the Nucleo F411RE board.

  23:49:44:122 : Disconnected
  23:49:48:131 : STLinkUSBDriver.dll loaded
  23:49:48:133 : STLinkUSBDriver.dll loaded
  23:49:48:133 : ST-LINK SN  : 066CFF545150898367065053
  23:49:48:133 : ST-LINK FW  : V2J39M27
  23:49:48:134 : Board       : NUCLEO-F411RE
  23:49:48:134 : Voltage     : 4.89V
  23:49:48:137 : Error: ST-LINK error (DEV_TARGET_CMD_ERR)
  23:49:48:147 : Disconnected

I am using a regular cable.

In the NOD_F411RE storage F:/ I can find two files: FAIL.TXT containing

The interface firmware FAILED to reset/halt the target MCU

And DETAILS.TXT containing

Version: V2J39M27
Build:   Oct 22 2021 16:50:45

Any ideas what I can try next? I am pretty lost.


Solution

  • Alright, I had my Nucleo mounted on a breadboard. Some of the pins were in shortcircuit. That's it. Disconnected it from the breadboard and it worked just fine :D. I thought that the pins would not be active without me assigning them for a certain connection.