cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Nucleo-F103 ST LINK to program external target?

Suresh_M
Visitor

Dear Experts,

Greets,

I trying to program STM32F103RCT6 micro controller using NUCLEO-F103RB evaluation board , but I am unable to debug and flash the code , i tried all the possible ways but , it didn't worked .Can somebody help me to solve this .

 

Best regards,

Suresh 

18 REPLIES 18

Yes , it is working with Keil IDE . 

CubeProgrammer response add in attachment sir please find it, VDD target is connected.

ok,

- come on :

AScha3_0-1757932978434.png

 

-> target has no power (or vdd connection to st-link missing) = this cannot work.

connect vdd...and/or power target.

If you feel a post has answered your question, please click "Accept as Solution".

I noticed that , but feeding 3.3V to the controller & it is running the existing code , i struct at this point only

 

ok,

but the st-link software checking the vdd on his connection, 

and if to low, it stops working, because it assumes, target has no power. 

So look for the vdd pin on st-link and give some 3v3 to it, so it shows not 0,0V - then it should work.

If you feel a post has answered your question, please click "Accept as Solution".

It is not working , is there any possibility to not being sensed 3.3V ?

Someone was asking that recently for an ST-Link v3 - but I can't seem to find that now.

 

It is a pretty standard thing that a debug probes needs to see the target voltage - that's why the pin is there on CN4!

Surely, you can find a point somewhere on your board to provide the 3.3V to the ST-Link?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

ST link is being powered with USB cable , iam using Nucleo board so it is with 3.3V from usb itself

see cn4 :

AScha3_0-1757935558196.png

pin 1 has to get 3v3 .

If you feel a post has answered your question, please click "Accept as Solution".

@Andrew Neil wrote:

Someone was asking that recently for an ST-Link v3


No, it was ST-Link V2 - and it's here:

STLink V2 SWD operation without connecting VDD_TARGET PIN

 

In particular, see:

https://community.st.com/t5/stm32cubeprogrammer-mcus/stlink-v2-swd-operation-without-connecting-vdd-target-pin/m-p/838601/highlight/true#M8994

Although the fact that you have it working in Keil does cast doubt on that.

 

I can't remember if it was ST-Link or J-Link or something else, but ISTR something had a command-line option to ignore the target voltage measurement...

Is there such an option in your Keil setup?

Maybe ask on the Keil forum ...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.