2025-09-14 11:40 PM - last edited on 2025-09-15 1:44 AM by Andrew Neil
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
2025-09-14 11:55 PM
Hi,
- show the circuit (your connections)
- show pic of your construction
to reduce the guessing about it.
2025-09-15 12:31 AM
2025-09-15 12:43 AM
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".
2025-09-15 1:52 AM - edited 2025-09-15 1:57 AM
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:
Rather than those jumpers (blue in the picture below), you should be connecting to CN4 (yellow):
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:
via: https://www.st.com/en/evaluation-tools/nucleo-f103rb.html#documentation
2025-09-15 1:54 AM
hi,
what do you mean by cubeprogramer , do you mean CubeIDE ?,
2025-09-15 2:02 AM - edited 2025-09-15 2:04 AM
STM32CubeProgrammer:
https://www.st.com/en/development-tools/stm32cubeprog.html
PS:
2025-09-15 2:32 AM
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
2025-09-15 2:50 AM
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".
2025-09-15 2:51 AM
Try with CubeProgrammer.
Did you have VDD_TARGET connected?