cancel
Showing results for 
Search instead for 
Did you mean: 

stlink v3 mini cannot program c031g4u6, Target no device found

oyalç.1
Associate III

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

16 REPLIES 16

The VDD from the AM1117 needs to go to the CN2.10 / T_VCC pin on the ST-LINK-V3MINIE

STM32 Cube Programmer should be able to report the board voltage

The T_VCC is there to power the buffers between the ST-LINK and the Target MCU, say for systems running at 1.8V, 2.7V or whatever

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

Previous duplicate post:

https://community.st.com/t5/stm32cubeide-mcus/stm32c031g4u6-bare-microcontroller-with-stlink-is-not-detected/td-p/623851

I just want to point out that the very first bullet in the very first reply to your previous thread was to check part orientation along with where pin 1 relative to the text, which you didn't check or at least didn't notice/fix until it was pointed out here.

 

Perhaps slow down. If you do things correctly, you only need to do them once.

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

it reads 3,25 Volts. fixed the wiring still nothing.

any ideas on what am i doing wrong?

No

qfn28a.jpg

The adapter is quite confusing in it's pin numbering. I've marked Pin 1 on the STM32 you've placed

qfn28aa.jpg

stm32c031gxu_rot_002.jpg

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

i am thankful for all the help. i have checked it and you look correct.

i am sorry for creating a duplicate question. i tought pin1 started from the writings beginning not the dot.  i am new to stm32's and i have nobody i can ask except you guys

vdd is +3,3v and vss is gnd correct? 

WhatsApp Image 2024-01-12 at 01.01.28.jpeg

 

 

 

oyalç.1
Associate III

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