cancel
Showing results for 
Search instead for 
Did you mean: 

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

Anesh
Associate II

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. 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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

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.

View solution in original post

10 REPLIES 10
STTwo-32
ST Employee

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

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.

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.

 

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

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.

Yeah, you are correct. I have used wrong connector. 

Now I have connected as in the image. But, no sucess :(

Anesh_0-1739489275816.png

 

TDK
Guru

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".

Try to connect the NRST pin of the MCU to the one on the ST-LINK.

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.

WhatsApp Image 2025-02-14 at 00.34.23_2a5dbe8b.jpgWhatsApp Image 2025-02-14 at 00.34.23_526b1e01.jpgFor your reference I have attached few photos.

I think NRST of the Target controller must be already connected with onboard STLINK. Even then should I connect it with external programmer (Pin 15 of ST-LINK/V2 ISOL)? 

At present my oscilloscope is with my friend. Tomorrow I will get that and probe Reset pin and along with other SWD pins. 

 

WhatsApp Image 2025-02-14 at 00.34.23_976879e4.jpg

Anesh
Associate II

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

Anesh
Associate II

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.