Skip to main content
Associate
Apr 21, 2025 11:17 PM UTC
Question

STM32 Unable to get Core ID

Hi All,

I'm new to using the STM32 and honestly had great grief trying to connect to the chip.

I'm using STlink V3 and designed my own PCB.

Trying to flash a F/W to the PCB. 

I ordered the PCB from JLCPCB.

I keep getting unable to get core ID as a message and I can't figure out why?

I seem to be able to connect for a few seconds but than i get a message, unable to get core ID and it disconnects.

When I compile a code and try to flash it, it also tells me flash successful but I don't think the code got flashed successfully as the chip doesn't work as expected and also I am still unable to connect to it and i get messages unable to get Core ID.

Any help or suggestions? I have the RST connected to GND with a resistor, schematics attached.

12 replies

TDK
Apr 21, 2025 11:42 PM UTC

> When I compile a code and try to flash it, it also tells me flash successful but I don't think the code got flashed successfully as the chip doesn't work as expected

If it says successful, it was probably successful. "doesn't work as expected" is probably a code bug. What does your code do? Keep it simple, blink an LED as a first test.

Run it in debug mode, step through, etc.

Schematic seems okay.

> I have the RST connected to GND with a resistor

Guessing this is a typo. A 1 nF cap to GND is fine.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
Apr 22, 2025 12:12 AM UTC

Thanks for your reply. 
I was under the same impression as you.

But using STM32CubeProgrammer i can never fully connect  to the STM32 in the new PCBs.

It keeps telling me unable to get core ID.

Any idea why?

TDK
Apr 22, 2025 12:23 AM UTC

If you cannot connect, what is telling you the flash was successful?

Could be a board manufacturing issue. Bad solder joint. Wrong orientation. No or insufficient power. Rather than guess, be objective about it.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate
Apr 22, 2025 12:34 AM UTC

"If you cannot connect, what is telling you the flash was successful?" i'm wondering the same exact thing.

I got the PCB made at JLCPCB, the chip has sufficient power. If it's wrong orientation i would not be able to connect not even for a few seconds and i would not be able to flash any firmware successfully using STM32cubeIDE

Karl Yamashita
Principal
Apr 22, 2025 12:23 AM UTC

Try removing R62 and see if it improves

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 toolCANableV3 Open Source
Associate
Apr 22, 2025 12:32 AM UTC

would this play any affect? 

The Schematic design is created using STM best guidelines.
Also why am i able to flash a firmware at times and not be able to connect to the chip? 

Associate
Apr 22, 2025 5:13 AM UTC

Is there a BOOT0 that i need to connect to ground? 
Do you know which pin this is looking at my schematics?

TDK
Apr 22, 2025 1:18 PM UTC

What is the part number of L6? What happens if you short it? Doesn't seem like you should have an inductor there.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Explorer
Nov 7, 2025 11:53 PM UTC

Were you able to figure this out. I am having the same exact problem as you!Screenshot 2025-11-07 155219.png

 

TDK
Nov 7, 2025 11:59 PM UTC

@cpal You're getting the same error message. The problem could be totally different. Make a thread with the relevant information (board, schematic, screenshots, what you've tried, etc).

"If you feel a post has answered your question, please click ""Accept as Solution""."