cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F070F6P6 is not connecting to st-link

KarolW
Associate

I have recently ordered my custom board from JLCPCB with STM32F070F6P6. When the board arrived to me, I tried to connect the CPU to ST-LINK V2, but it would not connect. I have checked all the connections on the board and everything seems to be good. I have also checked the voltage with an oscilloscope, and again it seems to be good - the voltage is stable 3.3V. I have completely no idea why it can not connect to ST-LINK. I am attaching below the picture of the schematic of my board. I am connecting SWDIO (PA13) and SWCLK (PA14) via J2 01 and 02 pins. The power comes from ST-LINK (3.3V from the voltage regulator). I tried with and without RESET and nothing changed. Am I doing something wrong?

 

KarolW_0-1747164575309.png

 

6 REPLIES 6
STTwo-32
ST Employee

Hello @KarolW and welcome to the ST Community.

Could you please give a picture of your ST-LINK V2.

Best Regards.

STTwo-32

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.

Peter BENSCH
ST Employee

In addition to the request of @STTwo-32: the original ST-LINK/V2 do not output a voltage of 3.3V to supply a target, but only check whether the target voltage is correct.

But first of all, to assess your problem, you need the image of at least the back of the ST-LINK/V2.

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.

The 3.3V needs to go to Pin 1 or 2 (VTarget) of the ST-LINK/V2 20-pin Header

This is in addition to the SWDIO, SWCLK, and GND you have from your header

STM32 Cube Programmer should be reporting this 3.3V being present.

If you have a counterfeit ST-LINK (gum stick), then ST is unlikely to support.

The NRST pin needs to be connected for "Connect Under Reset" to be viable.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
KnarfB
Super User

NRST is poorly connected. See for reference schematics:

AN4325
Application note
Getting started with STM32F030xx and STM32F070xx series hardware development

hth

KnarfB

KarolW
Associate

Here is my ST-LINK V2 (the first picture), but I guess it is a counterfeit ST-LINK, but according to that I ordered a new ST-LINK. It is STLINK-V3MINIE (the second picture) and this is the original one. I connected that in the same way, and I am facing the same issue. The microcontroller on my board connected via STLINK-V3MINIE is not responding. It is really strange, because I have another board from my previous project, where I have a very similar circuit and there is STM32F030F4P6 and there everything is good - the microcontroller responds via these STLINKs. The only idea that I have for now is that the ICs were somehow damaged during an assembly in JLCPCB, but I am not sure about that.
  

20250518_000937.jpg

20250518_001008.jpg

>> The only idea that I have for now is that the ICs were somehow damaged during an assembly in JLCPCB, but I am not sure about that.

That's probably harder than you'd imagine. More likely a board or electrical issue. Double check orientation and wiring

Perhaps a high resolution, large, in-focus, picture of the board. Show connectivity with ST-LINK

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..