2025-12-10 11:29 AM
Good day
I have a Custom PCB with a STM32F217ZG populated.
When trying to program with the STM32CubeIDE I get a No STM32 target found error.
Then I tried with the STM32CubeProgrammer and get the following:
20:27:26 : UR connection mode is defined with the HWrst reset mode
20:27:26 : ST-LINK SN : 0670FF363445503043034042
20:27:26 : ST-LINK FW : V2J46M32
20:27:26 : Board : NUCLEO-F207ZG
20:27:26 : Voltage : 3.26V
20:27:26 : Error: Unable to get core ID
20:27:26 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
In STM32CubeProgrammer I have tried the Modes in Normal, PowerDown and Under Reset. In Reset Mode i have tried Hardware Reset and Software Reset.
When measuring with an scope on Pins 105, 109 and 25(NRST) I do see the Reset, Clock Pulses and something like Data Pulses but still get the error.
Can someone Please help me with this error.
2025-12-10 11:44 AM
@SDu T wrote:I have a Custom PCB with a STM32F217ZG populated.
As it's a custom board, you'll need to post the schematic
How to write your question to maximize your chances to find a solution
Is it a new design? Has it ever connected before?
@SDu T wrote:20:27:26 : ST-LINK SN : 0670FF363445503043034042
20:27:26 : ST-LINK FW : V2J46M32
20:27:26 : Board : NUCLEO-F207ZG
So you're using the ST-Link from a Nucleo board?
Are you sure you've disconnected everything from the MCU on the Nucleo board?
Have you tried using a standalone ST-Link?
How to solve connection errors when connecting and programming the STM32 target board.
How to solve debugger connection issues
2025-12-10 12:12 PM
Try another USB cable. I've had a situation where I could not program an STM32 and got the same error that you've shown. I was able to communicate with the ST-Link with STM32CubeProgrammer so I thought the cable was good and i never second guessed the cable.
The next day, when I change the cable, I was able to program the STM32 easily. YMMV.