Skip to main content
JTurn.2
Associate III
May 30, 2022
Solved

ST-Link/V2 cannot detect STM32 target

  • May 30, 2022
  • 3 replies
  • 9859 views

I have bought a new ST-Link/V2 from Digikey a while back and have only recently gotten the chance to use it. But every time I try uploading code to my geniune WeAct F411CEU6 board using SWD I get the error code "Error: No STM32 target found!". I don't think my connections are wrong cause I followed the instructions from this website:https://waterpigs.co.uk/articles/black-blue-pill-stm32-st-link-connection/

The target voltage detected is 3.14V and the firmware version is: V2J38S7.

The device shows up in device manager but I'm wondering if there is anything wrong with the debugger as I can upload code via UART to the development.

If anyone has any ideas please do let me know. Thank you!

This topic has been closed for replies.
Best answer by Tesla DeLorean

Connector looks backward and upside down

VPP looks connected to pin 1, not pin 19 where it is supposed to be.

Guess it depend what you're looking at. All the docs show the male pin header, not starring into the female connector. I tend to jumper onto the ST-LINK itself with Schmartboard jumper wires or DuPont ones.

3 replies

waclawek.jan
Super User
May 30, 2022

> I don't think my connections are wrong

I do. Prove me wrong (i.e. post foto, schematics, etc.)

JW

JTurn.2
JTurn.2Author
Associate III
June 1, 2022

0693W00000Nr1U0QAJ.png

JTurn.2
JTurn.2Author
Associate III
June 1, 2022

This is the connection I'm using except for that I am using except for I'm using the black pill instead of the blue pill in this picture.

Peter BENSCH
ST Technical Moderator
May 30, 2022

Blue Pills have been using counterfeits for quite some time, which are (of course) not accepted by the ST software. I could well imagine that counterfeits are also used on the Black Pills (knowingly or unknowingly). So, in addition to @Community member​ hints, it would also make sense to check the authenticity of the STM32.

Good luck!

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JTurn.2
JTurn.2Author
Associate III
June 1, 2022

I see. I assumed that the geniune WeAct black pills used genuine parts. How would I be able to check the authenticity of the MCU? Wouldn't being able to upload to the MCU via UART indicate that it's genuine or does this method bypass the authentication process?

Also, is it possible to test if my debugger is functioning properly without an MCU cause I'm worried that it might not be working correctly.

aflor.1
Visitor II
May 31, 2022

Hi,

  1. Verify that the VDDA voltage matches the 3.3V must have the same voltage as VDD
  2. caution if you use Debug the Pin must have connect to gnd
JTurn.2
JTurn.2Author
Associate III
June 1, 2022

I have verified that they are both approximately 3.3V and that the debug pin is connect to gnd to no avail. I'm wondering if there is anything wrong with my debugger since every time I connect to my pc it shows the update firmware option even though I've updated it already.