Skip to main content
oyalç.1
Associate III
January 11, 2024
Solved

stlink v3 mini cannot program c031g4u6, Target no device found

  • January 11, 2024
  • 4 replies
  • 8481 views

i am sorry for creating a lot of post recently but i just can not program my microcontrollers. 

when ever i try to program it i get this:

STMicroelectronics ST-LINK GDB server. Version 7.5.0

Copyright (c) 2023, STMicroelectronics. All rights reserved.

 

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

InitWhile : Enabled

 

Target no device found

 

Error in initializing ST-LINK device.

Reason: No device found on target.

 

i have a stlink v3 mini and 3 stm32c031g4u6 microcontrollers soldered to proper breakout boards.

i have SWD interface soldered from the edge connector because i had no luck with cn4. 

SWDIO, SWCLK and RESET are connected. i also have an led soldered to power pins to be sure its powered.

i am sure of the soldering job.

on my first post someone recommeded i solder capasitors so i did that still no result.

i am using linux mint's latest and the code i am trying to upload is just empty machine generated code

 

here are the pics:

WhatsApp Image 2024-01-11 at 22.24.12.jpeg

WhatsApp Image 2024-01-11 at 21.59.11 (3).jpeg

WhatsApp Image 2024-01-11 at 21.59.11 (2).jpeg

WhatsApp Image 2024-01-11 at 21.59.11 (1).jpeg

WhatsApp Image 2024-01-11 at 21.59.11.jpeg

 

 

i made a breakout for cn4:

WhatsApp Image 2024-01-11 at 21.59.10.jpeg

sorry for the bad solder job 

thanks for help

This topic has been closed for replies.
Best answer by oyalç.1

i have managed to narrow the issue to my stlink v3 minie. i went and bought a new stlink v2 mini and it works with cubeprogrammer with the current correct wiring. it appears that i have either fried the v3 mini or dont know how to use it. either way cubeprogrammer and V2 clone works for now

4 replies

Tesla DeLorean
Guru
January 11, 2024

Perhaps a wiring diagram?

The error means your part is NOT VIABLE.

Generally that means an issue with power, make sure the VDD, VDDA, VSS, VSSA pins are suitably connected. Or things are just not connected to the right things.

The VCC on the ST-LINK may also need connecting if it requires VTARGET for any buffers. Does STM32 Cube Programmer report the voltage it sees?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
January 11, 2024
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
oyalç.1
oyalç.1Author
Associate III
January 11, 2024

i know. 3.3V is coming from ams1117.

here is the wiring diagram. i drew it quickly

WhatsApp Image 2024-01-11 at 22.45.39.jpeg

if you wait a bit i can draw it in kicad but i have to install it

TDK
Super User
January 11, 2024

Part is oriented wrong based on the footprint. Pin 1 marking on the chip doesn't match pin 1 marking on the board.

TDK_0-1705002728639.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
oyalç.1
oyalç.1Author
Associate III
January 11, 2024

 

oyal1_1-1705002862221.png

that is pin one not the one next to it

oyalç.1
oyalç.1Author
Associate III
January 11, 2024

hold on

Tesla DeLorean
Guru
January 11, 2024

Wiring still looks wrong if the IC is still rotated 90 degrees or 7 pins

Draw a chart, probe continuity and confirm where pin 1 exits

stm32c031gxu_rot_001.jpg

Newer thoughts..

stm32c031gxu_rot_002.jpg

 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
oyalç.1
oyalç.1AuthorBest answer
Associate III
January 13, 2024

i have managed to narrow the issue to my stlink v3 minie. i went and bought a new stlink v2 mini and it works with cubeprogrammer with the current correct wiring. it appears that i have either fried the v3 mini or dont know how to use it. either way cubeprogrammer and V2 clone works for now