2025-02-13 02:26 PM
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
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.
Solved! Go to Solution.
2025-02-13 02:49 PM - edited 2025-02-13 02:55 PM
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.
2025-02-13 02:49 PM - edited 2025-02-13 02:55 PM
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.
2025-02-13 03:06 PM
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?
Thank you, Anesh S.
2025-02-13 03:08 PM
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.
2025-02-13 03:28 PM
Yeah, you are correct. I have used wrong connector.
Now I have connected as in the image. But, no sucess :(
2025-02-13 03:32 PM
How is the system powered? Ensure the ST-Link chip isn't pulling the NRST line low.
2025-02-13 03:34 PM
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.
2025-02-13 03:40 PM
For 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.
2025-02-13 03:43 PM
Both the boards are connected to same computers two USB ports.
2025-02-13 04:11 PM
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.
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.