cancel
Showing results for 
Search instead for 
Did you mean: 

On ubuntu; debug says "Could not determine GDB version"

DQuir.1
Associate II

Could not determine GDB version using command: /opt/st/stm32cubeide_1.2.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/arm-none-eabi-gdb --version

/opt/st/stm32cubeide_1.2.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.linux64_1.0.0.201904181610/tools/bin/arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

 

35 REPLIES 35
mladen
Associate II

This solution also doesn't work for me.I'm having same behavior as Richard.

My question would be what linux distribution is proven to work for STM32 tools?

Hi,

i have latest MxLinux , MX 23.5 Libretto;

STM32CubeIDE 1.18.0  : installed 1.18. amd64_deb_bundle  , working all fine - except : no debug, because still needs this 20 y old libs, libncurses.so5  or so, but after install gdb-multiarch (and making symlink) now fine.

And (until now) never crash or suddenly cannot open ioc /Cube file and hang up then, what happened with (my last) version 1.13.

AScha3_1-1742939061724.png

 

 

Some days ago needed CubeProgrammer, download en.stm32cubeprg-lin-v2-19-0, unzip, start install - ok. working.

AScha3_0-1742938883674.png

Here seems from install to running it all ok, no problems at all.

 

If you feel a post has answered your question, please click "Accept as Solution".
ntsafas
Associate

OS: 24.04.2 LTS (Noble Numbat)

STM32CubeIDE Version: 1.18.0


Steps:
1. arm-none-eabi-... installation:
- Download the Latest Release

x86_64 Linux hosted cross toolchains

AArch32 bare-metal target (arm-none-eabi)

arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz

https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

- Extract the Archive

tar -xf arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi.tar.xz

- Move It to /opt

sudo mv arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi /opt/arm-toolchain

- Add It to Your PATH

echo 'export PATH=/opt/arm-toolchain/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

 


2. libncurses5 installation - Solution from here:
https://askubuntu.com/questions/1531398/how-to-install-libncurses-so-5-for-ubuntu-24-04


https://stackoverflow.com/a/39840595
Add to source list and then install:

  • deb http://security.ubuntu.com/ubuntu focal-security main universe

    echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" > /etc/apt/sources.list.d/ubuntu-focal-sources.list
  • sudo apt-get update

  • sudo apt-get install libncurses5

 

3. Nothing else done in preferences

Racim15
Visitor

My configuration : Ubuntu 24.10 /  STM32CubeIDE : 1.18.0.

After installing all the necessary packages for gdb and libncurses.so.6 (since libncurses.so.5 is not available with this version of Ubuntu), the workaround I found is to create a symbolic link for arm-none-eabi-gdb pointing to my local gdb: /usr/bin/arm-none-eabi-gdb.

 

you can follow this steps :

remove or just change the name of arm-none-eabi-gdb

sudo mv /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb.org

 

create the Symbolic Link

sudo ln -s /usr/bin/arm-none-eabi-gdb /opt/st/stm32cubeide_1.18.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/arm-none-eabi-gdb

 


ellajh7
Visitor

If that does not help. Let us know which Ubuntu version...

ellajh7
Visitor

 I've used Linux for my work and encountered this GDB problem. Thank Sir!