2024-05-19 02:13 AM
Hello,
I want to use STM32CubeIDE with Ubuntu 24.04 (new LTS), but on this version we don't have libncurses5 but libncurses6.
If we install STM32CubeIDE from .deb we have an error because libncurses5 is not installable
If we install STM32CubeIDE from general linux installer, we have no error as it doesn't check the dependency.
The problem is, when I want to flash my device using STM32CubeIDE it force the use or arm-none-eabi-gdb provided by ST here: `/opt/st/stm32cubeide_1.15.1/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.linux64_1.0.100.202403111256` so it fails because arm-none-eabi-gdb (from ST) require libncurses5
My question is simple:
How to use arm-none-eabi-gdb provided by my computer instead of the version provided by ST .. ?
2024-05-19 03:05 AM
Install you own arm-none-eabi compiler and add into tollchain manager in STM32CubeIDE
2024-05-21 02:44 AM
Hello @Dunfell
First let me thank you for posting.
At this stage only Linux®: Ubuntu® LTS 20.04 and LTS 22.04, and Fedora® 37 are supported by STM32CubeIDE.
Check the release note the Host PC system requirements section.
KR,
Semer.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-06-27 10:44 PM - edited 2024-06-27 10:45 PM
Thank you @Semer CHERNI for the information. Does ST have a timeline for when the IDE will be updated? There are a number of dependency issues now for the Linux CubeIDE which prevent anyone with a modern and fully updated Linux install from using it, including but not limited to:
Using an older version of Linux is not a feasible option for us at this time, unfortunately.
2024-09-01 05:18 PM
@Semer CHERNI , is there a timeline for the IDE's supporting 24.04 and the newer libraries?
2024-09-01 08:25 PM
Actually, I am able to install and run (so far) using the "STM32CubeIDE Generic Linux Installer" st-stm32cubeide_1.16.0_21983_20240628_1741_amd64 on Ubuntu 24.04 LTS
2024-09-01 09:36 PM
Well, the IDE works, but I can't debug anything. I get:
Could not determine GDB version using command: arm-none-eabi-gdb --version
arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
This does not work for 24.04:
sudo apt-get install libncurses5
This thread is similar:
https://community.st.com/t5/stm32cubeide-mcus/i-m-working-with-ubuntu-and-it-gives-me-the-following-error/td-p/244902
2024-09-19 09:44 AM
I was able to get the debugger working for 1.13.2 in Ubuntu 24.04 by running these commands explained here:
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.4-2_amd64.deb && sudo dpkg -i libtinfo5_6.4-2_amd64.deb && rm -f libtinfo5_6.4-2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libncurses5_6.4-2_amd64.deb && sudo dpkg -i libncurses5_6.4-2_amd64.deb && rm -f libncurses5_6.4-2_amd64.deb
2024-10-06 11:20 PM
Thanks! I can run it using that.
It would be nice if ST used supported libraries. Launchpad.net shows "This package contains the legacy version of the shared low-level terminfo library."