Skip to main content
Visitor II
December 5, 2020
Question

CubeIDE does not see ST-Link Server

  • December 5, 2020
  • 8 replies
  • 15139 views

Hello. I don't know exactly what the IDE needs, but it doesn't seem to see the St link server, but at the same time says that it is installed. When you press the Debug or Run button, a window appears with the inscription "ST-Link Server is required to launch the debug session. Please download in on www.st.com".0693W000006Ej45QAC.pngI tried versions 1.5, 1.4 and as far as I remember 1.1. I wanted to try other versions, but the download was constantly interrupted. Is it just me or everyone? It looks like the site needs mirrors.

Separately downloaded St-link-server 2.0.2. At the time of installation, the answer was

"sudo ./st-stlink-server.2.0.2-1-linux-amd64.install.sh 

[sudo] пароль дл�? gadzhi:   

Creating directory makeself_dir_o9t3i4

Verifying archive integrity... All good.

Uncompressing STM STLink-Server installer 100%  

STMicroelectronics Software License Agreement

<License...>

License accepted.

stlink-server v2.0.2 (2020-10-13-14:11) installation started.

Already installed version is newer or equal: �?трока 64:

NOT downgrading. Aborting stlink-server installation.

Error installing stlink-server".

I also tried to install the server through Help> Install New Software ... Answer:

"Cannot complete the request. See the error log for details.

"STM32CubeIDE MCU External Tools ST-LINK GDB Server" will be ignored because a newer version is already installed. 

"STM32CubeIDE MCU External Tools SEGGER J-Link GDB server" will be ignored because a newer version is already installed. 

"STM32CubeIDE MCU External Tools ST-LINK Server" will be ignored because a newer version is already installed."0693W000006Ej4AQAS.pngMy main system is Manjaro Linux (system updated). Everything works well on Windows 10. I tried to program two boards and there were no problems.

I am newbie, don't kick me hard and please explain in detail.

I am looking for a solution in 4 or 5 days. I was looking for two of them incorrectly - why the IDE does not see stlink, but it turned out that it does not see not stlink, but stlink server.

I searched a lot and everywhere, asked in many Telegram chat channels. I came here last, because I prefer to look for the answer myself and because I don't know English and this is Google Translator. Therefore, I'm sorry if you don't understand something in this text.

    This topic has been closed for replies.

    8 replies

    Explorer II
    January 8, 2021

    Hi Gadzi! I also just encountered the same problem on Windows 10. Very strange that it suddenly stopped working. Being a newbie unfortunately I cannot help either. But I am trying now to see what potentially could go wrong.

    Visitor II
    January 9, 2021

    Hi i was helped by installing en.st-link-server and additional packages in linux:

    sudo apt-get install libncurses5 libgpm2:i386 libncurses5:i386

    and select sudo usermod -a -G dialout user_name, then reboot the system, after that everything is determined

    (mxlinux distribution)

    gadzhiAuthor
    Visitor II
    January 13, 2021

    I installed the same versions of packages that you specified, and also gave permission to the user, but nothing has changed.

    This is the default debugger configuration

    0693W000007B9MVQA0.png0693W000007B9MLQA0.png0693W000007B9M1QAK.png0693W000007B9LwQAK.png

    Visitor II
    January 12, 2021

    Hi

    I met the same problem on Ubuntu 20.04, CubeIde 1.5.1​

    tried to install st-link server from st.com website or `install new software` in CubeIde, do not work

    tried SSerj.1's method, do not work

    need help plz!

    Visitor II
    January 15, 2021

    The following solved the problem for me (Windows 10, CubeIde 1.5.1):

    1. Download stlink-server 2.0.2-1 from the ST website
    2. Close all instances of CubeIDE
    3. Rename "C:\Program Files (x86)\STMicroelectronics\stlink_server" e.g. to old_stlink_server
    4. Run the stlink-server installer, st-stlink-server.2.0.2-1.msi
    gadzhiAuthor
    Visitor II
    January 16, 2021

    In windows 10 everything works for me. What's the path of stlink-server in linux?

    Visitor II
    January 21, 2021

    have the same question.

    did not find a way to uninstall stlink-server on linux.

    did not find any thing like `st link server` from `apt` command or from CubeIde.

    but tell me already installed new version when I tried to install.

    Visitor II
    February 24, 2021

    Проблему решил на Ubuntu 20.04:

    1) Удалил STM32CubeIDE

    2) У�?тановил ST-Link Server

    3) Заново у�?тановил STM32CubeIDE (ver 1.4.0)

    Visitor II
    March 4, 2021

    2 ways:

    1. download stlink-server file from ST.com, extract, get stlink-server.2.0.2-1 excutable file. move it to /usr/bin, and rename to stlink-server.
    2. use openOCD instead.
      1. ) install openOCD.
      2. )stm32cubeide--run--externaltools--externaltools configuration (or you can excute openocd in terminal:#openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg)0693W000008w4WYQAY.png
      3. dubug configuration, use GDB Hardware Debugging, not STM32 Cortex-M C/C++ Application. GDB command=arm-none-eabi-gdb. JTAG device=ST-LINK(openOCD).0693W000008w4XHQAY.png
    Visitor II
    October 8, 2024

    Hi I'm having the same problem on my MacBook 

    I've already downloaded the latest file but it doesn't work..

    ((((The following solved the problem for me (Windows 10, CubeIde 1.5.1):

    1. Download stlink-server 2.0.2-1 from the ST website
    2. Close all instances of CubeIDE
    3. Rename "C:\Program Files (x86)\STMicroelectronics\stlink_server" e.g. to old_stlink_server
    4. Run the stlink-server installer, st-stlink-server.2.0.2-1.msi)))

    I don't know how to solve this problem. The solution that you told me above can only be solved in Windows.

    Could you give me a hand?

    Visitor II
    February 18, 2022

    Hi, I had the same problem with Windows 10. I was using IDE version 1.8.0. Here is how I solved it.

    1. I downloaded the ST-LINK server software module (version 2.0.2) from st.com.
    2. I closed all open windows of the CubeIDE
    3. I unzipped and installed the server-link
    4. I reoppened my project and run it again
    Visitor II
    April 25, 2023

    Hi,

    i am facing the same problem but after installation st link server the problem solved.