Skip to main content
Anesh
Associate III
February 13, 2025
Solved

Trying to bypass STLINK/V2-1 on board of NUCLEO_F030R8 and program by external ST-LINK/V2 ISOL

  • February 13, 2025
  • 3 replies
  • 1810 views

Hello,

I am a PowerTrain Electronics Hardware Architect by profession.

For one of my new hobby electronics developement I decided to use STM32 micro controller.

To start with I bought NUCLEO_F030R8 and able to blink on board LED as I program. 

Then I tried to program on board micro controller with my ST-LINK/V2 ISOL. I disconnected both jumpers at CN2. Tapped out SWCLK of target controller from pin 2 of CM6. Then tapped out SWDIO from pin 4 of CN6. I took 3.3V and GND from CN6 pins 4 and 6 respectively. I connected these four wires to ST-LINK/V2 ISOL as in the image 

Anesh_0-1739485097871.png

In Debug configurations of CubeIDE, ST-LINK/V2 ISOL is founf with SWD setting. But when I try to program I get error message as target not found.

What am I missing here? Is the reset is mishandked by onboard programmer? Should I take care of this and few others?

Thank you, Anesh S. 

Best answer by STTwo-32

Hello @Anesh 

please ensure to use PA13 (pin 13 of the CN7) as SWDIO and PA14 (pin 15 of the CN7) as SWCLK pin. I think you are using wrong pins.

Best Regards

STTwo-32

3 replies

STTwo-32
STTwo-32Best answer
Technical Moderator
February 13, 2025

Hello @Anesh 

please ensure to use PA13 (pin 13 of the CN7) as SWDIO and PA14 (pin 15 of the CN7) as SWCLK pin. I think you are using wrong pins.

Best Regards

STTwo-32

Anesh
AneshAuthor
Associate III
February 13, 2025

Hello ST,

Thank you for quick response.

My connections are alreay as you said. To explain further I just painted the below image.

What else can be wrong?

Anesh_0-1739487965870.png

Thank you, Anesh S.

 

STTwo-32
Technical Moderator
February 13, 2025

Could you send a picture of you system and how it is connected.

Best Regards.

STTwo-32

TDK
Super User
February 13, 2025

How is the system powered? Ensure the ST-Link chip isn't pulling the NRST line low.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Anesh
AneshAuthor
Associate III
February 13, 2025

Both the boards are connected to same computers two USB ports.

Anesh
AneshAuthor
Associate III
February 14, 2025

I provided power to target board (Nucleo) by battery bank and tried. No sucess.

I id that because I thought computer may not be able to resolve two usb ports.

The LED of the programmer is toglling between Green and Red when it was tried for connection, After few seconds the below error message was provided.

Anesh_0-1739491678655.png 

Anesh_1-1739491715688.png

When target board is noot powered, LED in the programmer stays red even when IDE is trying for connection.

SO I think, there is no issue in connection between PC and programmer. Hansaking seems to be fine.

But, target microcontroller is not good. 

Any thoughts? Till now I dont have undertanding around NRST too.