cancel
Showing results for 
Search instead for 
Did you mean: 

No STM32 target found

SDu T
Associate III

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.

 

6 REPLIES 6
Andrew Neil
Super User

@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?

https://community.st.com/t5/stm32-mcus-products/help-troubleshooting-stm32g431-board/m-p/853655/highlight/true#M288336

https://community.st.com/t5/stm32-mcus-products/help-troubleshooting-stm32g431-board/m-p/849990/highlight/true#M287696

 

How to solve connection errors when connecting and programming the STM32 target board.

How to solve debugger connection issues

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Karl Yamashita
Principal

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.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source

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

Hi

 

I am using the ST-Link on the Nucleo-F207G. Same one I used before

MGogr.1
Associate III

Proper schematic diagram will help us in solving the issue. Or you can try with different USB cable or different debugger.

SDu T
Associate III

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