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
AScha.3
Super User

Hi,

- show the circuit (your connections)

- show pic of your construction

to reduce the guessing about it.

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

Hello AScha,

Here I've added Screenshot of PCB schematic and Nucleo-Board schematic also and along with that I added physical connection snap . 

 

Hi,

ok, so the target board is the big board in pic ?

But your circuit shows just F103 , even without crystal ?

Try connect with CubeProgrammer , set: software reset , normal; and show , what its "telling".

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

As @AScha.3 said, please show the complete schematic of your board.

Please also show what programming tools you're using, and what error message(s) you get when trying to program - see:

How to write your question to maximize your chances to find a solution

 

You seem to be using the wrong connector on the Nucleo board:

AndrewNeil_0-1757926041748.png

Rather than those jumpers (blue in the picture below), you should be connecting to CN4 (yellow): 

AndrewNeil_1-1757926150823.png

Please see this recent thread:

Use nucleo-64 ST-Link debugger for another MCU.

PS

This is described in the User Manual for the NUCLEO-F103RB board:

AndrewNeil_2-1757926620142.png

 

https://www.st.com/resource/en/user_manual/um1724-stm32-nucleo64-boards-mb1136-stmicroelectronics.pdf#page=19

via: https://www.st.com/en/evaluation-tools/nucleo-f103rb.html#documentation

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.

hi,
     what do you mean by cubeprogramer , do you mean CubeIDE ?, 

STM32CubeProgrammer:

https://www.st.com/en/development-tools/stm32cubeprog.html

 

PS:

 

AndrewNeil_2-1757927038089.png

https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools.html

 

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.

yeah , programming tool is STM32CubeIDE and the debug connections i tried CN4 even not worked . Error is target not found . I added error message Screen shot here. One more thing I tried with different IDE(KIEL) it worked and allowing me to do debug. I tried flashing .hex file which developed in STM32CubeIDE it worked and why it is not working with evaluation board ST LINK V2 connections . For flashing .hex file I used ST LINK UTILITY software .In STM32CubeIDE i tried changing reset behaviour to connect under reset , software reset , None, hardware reset also nothing worked , my board connections all correct . I ensured connections and schematic tracks all good

So with Keil IDE its working ok ?

+ dont use ST LINK UTILITY , its deprecated.

 

again: Try connect with CubeProgrammer , set: software reset , normal; and show , what its "telling".

 

 

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

Try with CubeProgrammer.

Did you have VDD_TARGET connected?

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.