cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 not programming

ASakp.1
Associate II

Hello i am working on a project which is based on stm32f103c8t6 mcu.

i face a issue while programming some of these microcontrollers.

sometimes some microcontrollers are programmed perfectly while some start giving errors(see attachment).

while going through some forums they suggested to solder the vcc ,gnd,swd and scl pins correctly but even after rectifying the issue still persists

i used this single st-link usb type programmer

can you please help me out

i have even attached the schematic

8 REPLIES 8
Javier1
Principal
  • Is this a custom board or one of those bluepills?
  • did you tried to "connect under reset"?
we dont need to firmware by ourselves, lets talk

Make sure the parts are properly powered. Especially the analogue​ supplies.

The error indicates the devices are working due to power or board construction. ​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

It is a custom board

0693W00000aH6ytQAC.jpg0693W00000aH6kdQAC.jpg

Yes the mcu is getting proper voltage

Ok

Show how this is wired to the ST-LINK you're using.

Perhaps use STM32 Cube Programmer, rather than ST-LINK Utilities, it will show the measured voltage

CN2 left-of-right, STM32 component side

GND, SWCLK, SWDIO, 3V3

CN2 pin side

3V3, SWDIO, SWCLK, GND

The 3V3 needs to go to pin 1 on the ST-LINK 20-pin header, you need a GND,

SWCLK to pin 9, SWDIO to pin 7

0693W00000Y8nn4QAB.pngPart number unreadable in pictures. Show U1 tight, large and in-focus

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ASakp.1
Associate II

0693W00000aH6t2QAC.jpg

0693W00000aH6t2QAC.jpg