Skip to main content
oyalç.1
Associate III
December 30, 2023
Question

STM32C031G4U6 bare microcontroller with stlink is not detected

  • December 30, 2023
  • 6 replies
  • 1930 views

i bought 3 STM32C031G4U6 microcontrollers from digikey turkey distributor and soldered them on breakout boards. i have them connected with stlink v2 over SWCLK and SWDIO i double checked connections and power but i can not program them. it just gives out this:

 

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.

what do i do?

    This topic has been closed for replies.

    6 replies

    TDK
    December 30, 2023

    Som possibilities:

    • Verify part orientation. Pin 1 is lower left when "STM32" is read from left to right.
    • Bad soldering job, pins aren't connected. Going to be harder to solder/verify a UFQFPN48 vs a LQFP48. Consider posting a high resolution in-focus image.
    • Insufficient bulk capacitance. A 0.1uF and 4.7uF should be soldered next to VDD/VSS pins. Guessing you don't have one. It may work without it, but it doesn't follow the layout guidelines.
    • Try a different programmer. Note that counterfeit programmers are prone to bad behavior. STLINK-V3MINIE is cheap and works.
    • You are using STM32CubeProgrammer to program, correct?

     

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    oyalç.1
    oyalç.1Author
    Associate III
    December 30, 2023

    I didn't had caps soldered so I will try that. 

    I was just trying to program it from the ide. With that green little button on top

    Tesla DeLorean
    Guru
    December 30, 2023

    Perhaps easier to test via STM32 Cube Programmer directly. 

    Check analogue supplies. Check level see on NRST.

    To standalone ST-LINK connect VCC, GND, SWDIO, SWCLK and NRST.

    Off NUCLEO boards disconnect on board target via jumpers.

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