2023-02-09 11:41 PM
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
2023-02-10 12:40 AM
2023-02-10 04:10 AM
Make sure the parts are properly powered. Especially the analogue supplies.
The error indicates the devices are working due to power or board construction.
2023-02-17 08:22 AM
It is a custom board
2023-02-17 08:26 AM
2023-02-17 08:27 AM
Yes the mcu is getting proper voltage
2023-02-17 08:41 AM
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
Part number unreadable in pictures. Show U1 tight, large and in-focus
2023-02-17 08:47 AM
2023-02-17 08:48 AM