Skip to main content
Associate
June 6, 2024
Solved

Unable to upload firmware on Ubuntu 24.04

  • June 6, 2024
  • 3 replies
  • 2227 views

As described in this post during installation of CubeIDE on Ubuntu 24.04 an error is presented because libncurses5 is not available for Ubuntu 24.04. This can be worked around by using the generic installer. When attempting to upload firmware to an MCU, however, the same error message is given (it is shown as "Could not determine GBD version", but in details the missing libncurses5 is shown). The solution to a similar problem is given in this post, but the solution does not work for the CubeIDE as it requires a specific version of libncurses to be installed.

Any suggestions would be greatly appreciated!

    Best answer by Semer CHERNI

    Hello @Lennart 

    First let me thank you for posting.

    I need to mention that the Ubuntu 24.04 is not yet supported by STM32CubeIDE.
    Check the release note of STM32CubeIDE under this link.

    BR,
    Semer.

    3 replies

    Semer CHERNI
    Semer CHERNIBest answer
    ST Employee
    June 10, 2024

    Hello @Lennart 

    First let me thank you for posting.

    I need to mention that the Ubuntu 24.04 is not yet supported by STM32CubeIDE.
    Check the release note of STM32CubeIDE under this link.

    BR,
    Semer.

    Xynium
    Associate III
    January 12, 2025

    Hello,

    Still have the error, and now "Linux®: Ubuntu® LTS 22.04 and LTS 24.04, and Fedora® 40" are officialy supported.

    BR

    JP

     

    Visitor II
    August 20, 2025

    To fix uploading firmware for the CubeIDE on Ubuntu 24.04 install gdb-multiarch

    sudo apt install gdb-multiarch

    and replace arm-none-eabi-gdb file in <stm32cubeide_1.19.0 install dir>/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/ directory with symlink to /usr/bin/gdb-multiarch

    BR
    SP