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.
2025-12-10 9:44 PM
Hi
I will read through all the links.
The board has worked. Last week the procesor stopped working, still not sure why. It just started pulling huge amounts of current and killing my psu.
After replacing the processor, I cannot program the new chip
2025-12-10 9:45 PM
Hi
I am using the ST-Link on the Nucleo-F207G. Same one I used before
2025-12-10 9:48 PM
Proper schematic diagram will help us in solving the issue. Or you can try with different USB cable or different debugger.
2025-12-11 11:26 PM
Good day All
the problem is still ot solved, but I replaced the F217 with a H536( Pin compatible) and using the same cables, programmer and custom board, I could get the STM32CubeProgrammer to connect to the chip