2022-09-15 04:35 AM
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.
2024-03-14 02:07 PM
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.
2024-03-14 02:11 PM - edited 2024-03-14 02:14 PM
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)
2024-03-14 02:58 PM
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
2024-03-14 03:01 PM
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.
2024-03-14 07:47 PM
Hi,
After a recheck, a line mislabeled. Done the rework and the mcu programs without problem.
Thanks for your help.
Regards
Brut