cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 not detected

SS.29
Associate II

STMicroelectronics ST-LINK GDB server. Version 7.0.0

Copyright (c) 2022, 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.

14 REPLIES 14

The ST-LINK/V2 needs powering from the target, ie Pins 1 or 2 of the 20-pin header to the 3.3V powering the board.

Check / test with stand-alone STM32 Cube Programmer application first.

Check it reports the board voltage correctly.

Check the MCU is powered and viable. Check VCAP pin at 1.25V

Check part authentic and correctly orientated.

 

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

Set the freq of the gdb server lower (200). Have you got restistors in the swd lines?

 

 

I start the gdb server as external tool:

ST-LINK_gdbserver.exe -p 6100 -l 0 -d -s -cp D:\P......03\tools\bin -m 0 -g

 

Then i setup connect to remote gdb server in the launch options (port 6100)

Hi,

Both ST-LINK/V2 doogle and the board are powered.

STM32CubeProgrammer gives an Error :ST-LINK error (DEV_TARGET_HELD_UNDER_RESET) but when I measure it, it's at 3.296V.

STM32CubeProgrammer reports a voltage at 3.23 V. My Fluke gives my 3.296 V

All VDD, VBAT and VDDA pins are at 3.296 V. The VCAP is at 1.135 V (as on the BlackPill)

I bought my part from DigiKey (if it's not an authentic, we got a problem). I've triple check the orientation.

 

Maybe the problem is the reset pin. I'll recheck it.

Regards,

Brut

 

BTrem
Associate II

Interresting test!

With SWD frequency at 140 kHz.
With Reset behaviour type : Connect under reset

The message is :

       Target Held under Reset

       Error in initializing ST-LINK device.
       Reason: Target held under reset.

Change Reset behaviour to : None or Software system reset or Hardware reset or Core reset

       ST-LINK device status: UNKNOWN
       Waiting for debugger connection...
       Debugger connected
       Waiting for debugger connection...
       Failed halting target
       Shutting down...
       Exit.

As mention before, I'll recheck the reset pin.

Regards,

Brut.

 

Hi,

After a recheck, a line mislabeled. Done the rework and the mcu programs without problem.

Thanks for your help.

Regards

Brut