cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ST-Link on Nucleo-F446RE board - Device not detected after attempting to update firmware

MedSid
Associate II

I am facing an issue with my Nucleo-F446RE board. It was working normally before, but now when I connect it via USB, the ST-Link LED lights up red, and I cannot upload code, nor does STM32CubeIDE recognize it. I tried updating the ST-Link firmware using the ST-LinkUpgrade tool (STSW-LINK007), but the program displays an error message: "No ST-Link device detected. Please connect it and then retry," even though the computer recognizes the ST-Link in Device Manager as "STMicroelectronics STLink Virtual COM Port (COM6)."

I have verified that the CN2 jumper settings are enabled (ON).
I cannot install the drivers or update the firmware because neither ST-LinkUpgrade nor STM32CubeProgrammer recognizes the board.
I kindly request your help to identify the reason why ST-Link is not being detected and how to resolve this issue.
Thank you in advance for your assistance.

c32f9454-aaa1-4d19-b66a-ccaad25ce845.png

MedSid_0-1748393142438.png

 

8 REPLIES 8
TDK
Super User

Reboot. Open STM32CubeProgrammer, see if you can connect. If you can't, or if an error message pops up when you try, show a full screenshot.

A solid RED LED (LD1) indicates successful USB enumeration. Could be a different program has it open.

If you feel a post has answered your question, please click "Accept as Solution".
MedSid
Associate II

When trying to connect to the board using STM32CubeProgrammer, it detects it and recognizes the serial number of the ST-Link V2-1, but it does not establish a connection. The error shown in the first image appears.

And when clicking on Firmware Upgrade then Open in Update Mode, the error shown in the second image appears.


The first image

image.png

The second image
image.png

TDK
Super User

It detects the ST-Link. Good. So firmware likely exists on that chip. Weird that it doesn't display a firmware version.

The target voltage is reported as 0 V. Can't connect to a chip that isn't powered. Is the chip powered? Maybe show a picture of the board with all the jumpers shown.

FWIW, I'm also unable to upgrade ST-Link firmware on a recent board. Perhaps the upgrade in CubeMX was broken in a recent update.

If you feel a post has answered your question, please click "Accept as Solution".

>clicking on Firmware Upgrade then Open in Update Mode

So unplug USB/st-link , then connect it again. (Now is in update mode...)

-> > open in update mode<  ...and do the update.

-then try connect to target again.

If you feel a post has answered your question, please click "Accept as Solution".
MedSid
Associate II

unnamed.jpg

 Here is the board with the placement of all the jumpers.

I did that, but nothing changed.

So update worked ?

Maybe you wrote something strange in the last loaded program, like using the swd/swc pins for something else...

 

Then try CubeProgrammer : connect with reset mode : hardware reset. + try : under reset.

If you feel a post has answered your question, please click "Accept as Solution".
TDK
Super User

I'm out of ideas. Seems like it should be working.

Could be a faulty cable or hub, but seems low probability. A USB packet analyzer may shed light.

If you feel a post has answered your question, please click "Accept as Solution".