cancel
Showing results for 
Search instead for 
Did you mean: 

After updating CubeIDE to version 1.4.0 (Linux), the debugger does not work.

AKova.2
Associate II

0693W000003BtojQAC.pngAfter updating CubeIDE to version 1.4.0 (Linux), the debugger does not work.

A window appears

 "ST-LINK firmware verification"

in which there is a message - "STLink server is required to launch the debug session".

How to fix it?

29 REPLIES 29
AKova.2
Associate II

I downloaded STLINK Server, during installation I received a message that this package is already installed.

Tell me where in CubeIDE are the STLINK Server settings?

KnarfB
Principal III

STM32CubeIDE 1.4.0 debugging works for me on 64-bit Ubuntu 18.04. The stlink-gdb-server comes as a STM32CubeIDE plugin. A typical debug session starts both, arm-none-eabi-gdb (which is on the path in /opt/st/stm32cubeide_1.4.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.4.0.202007081208/tools/bin) and stlink-gdb-server:

$ ps aux | grep -i gdb
 
frank   28904 0.2 0.0 31968 11968 pts/3   Ss+ 08:40  0:00 arm-none-eabi-gdb --interpreter mi2 --nx -q --interpreter console -ex new-ui mi /dev/pts/2 -ex set pagination off -ex show version
 
frank   28911 0.7 0.0 34020 4944 ?       Sl  08:40  0:00 /opt/st/stm32cubeide_1.4.0/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.linux64_1.4.0.202007081208/tools/bin/ST-LINK_gdbserver -p 61234 -l 1 -d -s -cp /opt/st/stm32cubeide_1.4.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_1.4.0.202007081208/tools/bin -m 0 -k

Check if those components are installed in your system. If not, I would try reinstalling.

Here is my install log:

$ sudo '/home/frank/Downloads/st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle.sh' 
Creating directory st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle.sh.root
Verifying archive integrity... All good.
Uncompressing STM32CubeIDE installer  100%  
STMicroelectronics Software License Agreement
...
License accepted.
(Reading database ... 440631 files and directories currently installed.)
Preparing to unpack st-stlink-server-1.3.0-4-linux-amd64.deb ...
stlink-server: no process found
Unpacking st-stlink-server (1.3.0-4) over (1.2.0-3) ...
Preparing to unpack st-stlink-udev-rules-1.0.2-3-linux-all.deb ...
Unpacking st-stlink-udev-rules (1.0.2-3) over (1.0.2-2) ...
Selecting previously unselected package st-stm32cubeide-1.4.0.
Preparing to unpack st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb ...
Unpacking st-stm32cubeide-1.4.0 (1.4.0-7511-20200720-0928-1) ...
Setting up st-stlink-server (1.3.0-4) ...
Setting up st-stlink-udev-rules (1.0.2-3) ...
Setting up st-stm32cubeide-1.4.0 (1.4.0-7511-20200720-0928-1) ...
/
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Do you want to install Segger J-Link udev rules? [Y/n] n
STM32CubeIDE installed successfully

As a workaround you may switch to ST-Link (OpenOCD) in your Debug Configuration under Debugger.

AKova.2
Associate II

I tried to download STLINK Server from the HELP menu -> Install new software.

Here is the result.

0693W000003BuhtQAC.png

As far as I understand, these elements are present. And the file you specified in the specified path is also there.

0693W000003BulgQAC.png

I don’t understand what’s the matter ... everything worked before. Ide reinstalled, the result is the same. It works on Windows.

Maybe the paths are not spelled out somewhere?

AKova.2
Associate II

The list of installed packages contains STLINK Server.0693W000003BuxDQAS.png

0693W000003BuxNQAS.png

KnarfB
Principal III

> Here is the result.

Yes those are outdated versions from last year. The error message is correct.

There should be no need to install STLINK Server separately.

I would try re-installing STM32CubeIDE from scratch.

You first delete all existing versions using

$ sudo apt remove 'st-stm32cubeide*' 'st-stlink*'

and then install the downloaded unzipped shell archive:

$ sudo ~/Downloads/st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.deb_bundle.sh

hth

KnarfB

gcrisa
Associate III

I had exactly the same issue updating to 1.4.0 on Windows. Already tried a clean install and an upgrade to another computer too: nothing worked. Just updated to 1.4.1 and the issue is still present...

Is there any error log we can check to know exactly what's wrong?!

I have reinstalled CubeIDE but I will try again on your advice.

I have Arch Linux (Manjaro). I installed the st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.sh package downloaded from the official site.

Sorry for my English, I use a translator ... :)

In Windows, this version works, updated to 1.4.1 everything works.

But as for me, the program works more stable on Linux.

Actually I didn't know if it was appropriate to post my question here, as this thread explicitly targets Linux. But since the IDE core should be the same I thought at least to ask about some kind of advice on how to get details of what the issue is (eg. server not starting, or whatever). I get nothing more than the "ST-LINK firmware verification" window, all the console/log files are empty...