Skip to main content
Visitor II
April 21, 2025
Question

STM32 Unable to get Core ID

  • April 21, 2025
  • 6 replies
  • 3550 views

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.

    This topic has been closed for replies.

    6 replies

    Super User
    April 21, 2025

    > 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.

    Visitor II
    April 22, 2025

    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?

    Super User
    April 22, 2025

    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.

    Visitor II
    April 22, 2025

    "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

    Graduate II
    April 22, 2025

    Try removing R62 and see if it improves

    Visitor II
    April 22, 2025

    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? 

    Visitor II
    April 22, 2025

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

    Super User
    April 22, 2025

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

    Explorer
    November 7, 2025

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

     

    Super User
    November 7, 2025

    @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).