2026-04-21 11:01 PM - last edited on 2026-04-30 2:06 AM by KDJEM.1
Hello STM32 Community,
I am facing a persistent "Target no device found" error when trying to program an STM32L073CZT3 custom board using a Nucleo-L073RZ as an external ST-LINK (CN2 jumpers removed).
Hardware Setup:
MCU: STM32L073CZT3 (custom PCB)
Debugger: ST-LINK V2-1 (Nucleo-64)
Connection: 5-wire SWD (SWDIO, SWCLK, GND, NRST, VDD_Sensing)
Power: External SMPS providing 3.3V (Common Ground established between SMPS and ST-LINK).
The Issue: While the ST-LINK pins show correct voltages when floating, the SWDIO (PA13) pin drops to 0V the moment it is connected to the target board.
Pin 1 (VDD Sense): 3.3V
Pin 2 (SWCLK): 3.29V
Pin 4 (SWDIO): (Measured 2.9V on ST-LINK side connection)
Pin 5 (NRST): 3.3V
Troubleshooting performed:
Verified continuity; no physical shorts found between PA13 and GND.
Attempted "Connect Under Reset" and "Hardware Reset" at 480 kHz.
Schematic Check: I have a 10uF capacitor (C17) on the NRST line—could this be preventing the debugger from catching the reset state?
Verified that the ST-LINK and the software setup work perfectly on a standard Nucleo-L073RZ board.
I have attached my schematic and a photo of the physical wiring. Does the 0V on SWDIO suggest a software-locked pin or a hardware fault within the MCU?
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.
Best regards, VenkatesH
2026-04-22 4:47 AM
Hello @VENKATESH2123 and welcome to the ST community,
Please review this knowledge base article: How to program an STM32 using the on-board ST-LINK/V2-1 of the NUCLEO-WB55RG
Also refer to this post: How to use the standalone ST-LINK capability of my nucleo after I cut the PCB?
2026-04-22 6:05 AM
Is there any mistake in our schematic
2026-04-22 9:51 PM
Title:
STM32L073 custom board – SWD works on other boards but not on my PCB (schematic check)
Hello STM32 Community,
I am facing an issue while trying to program my custom board using SWD, and I would like to confirm if my debug connection and schematic are correct.
Hardware Details:
MCU: STM32L073CZT3 (custom PCB)
Debugger: ST-LINK (from Nucleo board, CN2 removed)
Interface: SWD (external wiring)
Working Case:
I separated the ST-LINK from the Nucleo board
Using the same SWD wires, I can successfully program another STM32 development board
✔ So ST-LINK, wiring, and software are working fine
Problem (My Custom Board):
When I connect the same SWD lines to my PCB → “Target no device found”
Connections Used:
SWDIO → PA13
SWCLK → PA14
NRST → NRST
GND → GND
VREF (3.3V) → VDD
Checks Done:
VDD = 3.3V present on MCU
VDDA connected through inductor
NRST capacitor issue fixed (removed 10µF)
BOOT0 tied to GND
GND is common between ST-LINK and board
Same setup works on another board
Request:
I have attached my schematic image. Could you please check:
Is my SWD/debug connection correct?
Any mistake in power design (VDD / VDDA)?
Attachments:
Schematic image (attached)
Thank you for your support!
2026-04-23 1:41 AM
I would like to provide an update on my issue.
I have tried multiple times to flash/program my STM32L073 custom board, but I am still facing the same problem:
“Target no device found” how to solve this issue
2026-04-23 1:55 AM - edited 2026-04-23 2:11 AM
Please refer to the hardware getting started application note AN4467, especially the figure 15:
And check again this knowledge base article: How to program an STM32 using the on-board ST-LINK/V2-1 of the NUCLEO-WB55RG
Check also your hardware especially solder joints issues.
2026-04-23 2:40 AM
Although it is possible to use the ST-Link from a Nucleo like this, it does add a few extra complications.
Therefore I would strongly recommend that you get a standalone ST-Link - they are not expensive, and it makes life a lot easier!
See here and here - among others..
@VENKATESH2123 wrote:SWD works on other boards but not on my PCB (schematic check)
What other boards?
Is this using the Nucleo ST-Link ?
2026-04-23 3:41 AM
2026-04-23 4:10 AM
To verify my setup, I tested the same ST-LINK and SWD wiring with another STM32 development board, and I was able to program it successfully.
However, when I use the same setup with my custom PCB (STM32L073), I get the error:
"Target no device found"
Could you please suggest what I should check next?
2026-04-23 8:14 AM - edited 2026-04-23 8:34 AM
Hello,
Hard to tell with not so detailed pictures.
Check for bridged pins on the STM32.
Check for rotated chip.
On your implementation of the debug connector, I maybe see that you've switched SWCK and SWIO compared to our implementation on the nucleo, please make sure this is not the problem.