Skip to main content
Visitor II
May 25, 2021
Solved

No ST-LINK detected! Please connect ST-LINK and restart the debug session. Please help me. I am user.

  • May 25, 2021
  • 38 replies
  • 20972 views

I am using STM32CubeIDE for my project . when i want to run the code i am getting this pop up.i am not able to solve this issue.

    This topic has been closed for replies.
    Best answer by LaurentL

    OK, you didn't connect the Reset pin.

    If you can add the connection, it's better.

    Then, without reset coming from STLink, you should avoid "Connect under reset" mode in debugger tab in debug config.

    Like you did on STM32CubeProgrammer, use "Software Reset system".

    Try to mass erase the device with STM32CubeProgrammer before debug.

    38 replies

    ST Employee
    May 25, 2021

    Hello,

    Was it working before or It never worked ?

    Which STM32CubeIDe version and which Operating System are you working with ?

    Did you try all USB port ?

    You must use STM32CubeIde installer to have all STLink USB drivers and Stlinkserver installed.

    Is it an ST board or a custom board with an external STLink ?

    Rgds,

    Laurent

    NKann.1Author
    Visitor II
    May 25, 2021

    It never worked since i installed STM32CubeIDE .

    I have tried version 1.6.0 and 1.6.1 both. my operating system is windows 10.

    I tried all USB Port.

    I have installed both  STLink USB drivers and Stlinkserver.

    It is a custom board.

    NKann.1Author
    Visitor II
    May 25, 2021

    i am using JTAG.

    ST Employee
    May 25, 2021

    Which STLink version are you using ?

    Is it a genuine STLink ?

    Do you see the STLink as an USB debug probe in device manager ?

    If you try with STM32CubeProgrammer, is it working ?

    Maybe try in SWD mode first.

    You can also try stlinkserver in a command prompt window and see if it detects smtg.

    Rgds,

    Laurent

    NKann.1Author
    Visitor II
    May 25, 2021

    i am using STLINK-V3SET

    i don't see STLink as an USB debug probe in device manager.

    I didn't try STM32CubeProgrammer.

    I have JTAG only.

    ST Employee
    May 25, 2021

    Do you have admin rights on this PC ?

    You must have admin rights to install STLink USB drivers.

    Try installing STM32CubeProgrammer and see If it's better.

    NKann.1Author
    Visitor II
    May 25, 2021

    yes i have admin rights

    okay i am trying STM32CubeProgrammer.

    ST Employee
    May 25, 2021

    Your PC is not a Win 10 32 bits ?

    It is a 64 bits ?

    NKann.1Author
    Visitor II
    May 25, 2021

    64 bits

    ST Employee
    May 25, 2021

    Maybe you made a wrong connection or short circuit on STLink pins so the board is not recognized by the USB of PC.

    Try to remove the application board and let only the STLink V3 connected to the PC with its USB cable.

    You should see the STLink at least in USB devices.

    NKann.1Author
    Visitor II
    May 25, 2021

    i removed application board and still green led is glowing but same pop up in coming