Skip to main content
Visitor II
September 12, 2024
Solved

ST-Link server is required error after macOS update

  • September 12, 2024
  • 4 replies
  • 5925 views

Hello, I have been using the same cubeIDE debugger options for several months and have not had any major issues. However i recently updated to the latest macOS 15.0 release (not necessarily the cause, but it's the only change that comes to mind) and since then i've been getting the following error:

Carl__0-1726152267200.png

I have reinstalled the stlink server as recommended in:
https://community.st.com/t5/stm32cubeide-mcus/st-link-server-is-required-to-launch-the-debug-session/td-p/69617
and 
https://community.st.com/t5/stm32-mcus-boards-and-hardware/cubeide-does-not-see-st-link-server/td-p/149158

This has not fixed it and the stlink-server appears to be installed properly as i can use it via the CLI. I have also tried reinstalling the cubeIDE and used different versions of the cubeIDE. 

Has anyone encountered something similar or have any idea on what this could be?

EDIT:
I can also host a server from the CLI and connect to it from the cubeIDE via the "Connect to remote GDB server" option.

    This topic has been closed for replies.
    Best answer by Carl_

    Apparently launching the app from the terminal with sudo solves this, so it appears to be a permissions issue.

    4 replies

    Carl_AuthorAnswer
    Visitor II
    September 13, 2024

    Apparently launching the app from the terminal with sudo solves this, so it appears to be a permissions issue.

    Explorer
    September 18, 2024

    Got the same identical problem on macOS sequoia 15, thanks for the solution

    Visitor II
    September 19, 2024

    Hi Carl, 

    I had the same issue. I think the guilty one is the upgrade to Sequoia 15, as CubeIDE and stlink-server are not fully supported.

    For the moment, the way to get around it is to launch your IDE from a Terminal:

    sudo /Applications/STM32CubeIDE.app/Contents/MacOS/STM32CubeIDE

    It worked great for me.

    Visitor II
    September 20, 2024

    Actually its the PATH available to GUI app. There's no need to use sudo.

    Much more information is available at

    https://stackoverflow.com/questions/78996974/stm32cubeide-debugger-no-longer-works-in-macos-15-0-sequoia/79000266#79000266