Skip to main content
SSmit.13
Senior
July 26, 2023
Question

STM32CubeIDE not finding ST-Link

  • July 26, 2023
  • 3 replies
  • 3211 views

Hi

  I have been using Atollic TrueStudio for a good while and now upgraded to STM32CubeIDE. I have both on my machine, and the Atollic still sees my ST-Link, but STM32CubeIDE doesnt.  One thing I noticed that Atollic just had "ST-Link" from the drop down "Debug Probe" selection.  The IDE has ST-LINK (ST-LINK GDB Server) and ST-LINK (OpenOCD) , what is the difference? I have tried the both and get the below message.  The STM32Cube Programmer works too, so this is really strange. Anyone let me know what I am doing wrong?  I have the small ST-Link V2 adapter.

No ST-Link Detected !! Please connect ST-Link and restart debug session.

 

Many Thanks

 

    This topic has been closed for replies.

    3 replies

    AScha.3
    Super User
    July 26, 2023

    hi,

    probably you have a "clone" F103 in your stlinkV2 stick, most times a CKS32F103.

    STM now fighting against clones, so IDE refuses to work with these.

    to proof , install CubeProgrammer , try to use your stlink - it should work , can program cpus also.

    but in IDE the stlinkV2 needs to have genuine STM32F103 inside to work.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    SSmit.13
    SSmit.13Author
    Senior
    July 26, 2023

    Hi

      I can connect with CubeProgrammer , and ST-Link utility. So sounds like I will have to get a genuine st-link

    Cheers

    AScha.3
    Super User
    July 26, 2023

    No.

    Read, what I wrote.

    Only IDE check for clones, up to now.

    So you have a clone.

    Ed. Don't know, what's your last post. This forum software is pita. Forget it.

     

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    Pavel A.
    Super User
    July 26, 2023

    Also, make sure that only one program (CubeIDE/Atollic/CubeProgrammer/... ) connects to the ST-LINK at any moment. Other programs won't see a ST-LINK while it is in use.

    Amel NASRI
    Technical Moderator
    September 4, 2023

    Some hints to recognize a genuine ST-Link V2.

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.