Skip to main content
Associate
Sep 12, 2024 2:47 PM UTC
Solved

ST-Link server is required error after macOS update

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.
Carl_Best answer
Associate
Sep 13, 2024 9:56 AM UTC

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

4 replies

Carl_AuthorBest answer
Associate
Sep 13, 2024 9:56 AM UTC

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

Associate
Sep 18, 2024 1:09 PM UTC

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

Visitor II
Sep 19, 2024 10:19 PM UTC

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
Sep 20, 2024 5:37 PM UTC

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