Skip to main content
Associate II
August 3, 2024
Solved

STLink Server with MacOS 15

  • August 3, 2024
  • 19 replies
  • 25750 views

 

Hello,

I updated to Mac15 (MacOS Sonoma Public Beta), which was probably a mistake. Now I get an error from STMCubeIDE when I try to run indicating "ST-Link Server is required to launch the debug session" and to Please download it on www.st.com.  

I figured something changed in the OS that no longer makes the ST-Link Server run any more.

However when I try to download it, I get essentially a broken link, or at least it simply wont download. Even worse, the web page with Safari seems entirely broken and I cant even get a download to start after accepting the license, but with FireFox I get further, I get but still wont download and the link seems broke.

I can still flash using the STM32CubeProgrammer fortunately (using 2.13.1).

Can anyone tell me how to download this ST-Link Server? Or if there is an issue with the last MacOS and this and there is no fix?

 

    Best answer by Rohdea

    Using "sudo" can temporarily solve this issue

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

     

    19 replies

    TDK
    Super User
    August 3, 2024

    STMCubeIDE should be self-contained, everything it needs is installed alongside it. You shouldn't need to download anything else.

    Did you try to reinstall?

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    jdwAuthor
    Associate II
    August 3, 2024

    I have not tried to reinstalled STMCubeIDE as yet. I find it a bit odd that ST offers a download page for the STLink-Server (even if it does not seem to work for me) - https://www.st.com/en/development-tools/st-link-server.html

    and further seems to put a message in the STMCubeIDE to download it. But, maybe that happens because somehow the server binary is not compatible with MacOS 15 Sonoma and it STMCubeIDE acts like it simply does not see the server running, and cant find it. Therefore, it makes me wonder if there is some overall issue with the server and MacOS 15. I can try to re-install STMCubeIDE 16.0.

     

     

    jdwAuthor
    Associate II
    August 4, 2024

    I have now been able to both download the server, which after installing did not fix my issue. So I downloaded and reinstalled STMCubeIDE16.0, and that did not help either. I would say there is some new incompatibility with MacOS 15 Sonoma, which is is going to break a bunch of folks at some point. I am happy to help ST work how what is going on with my case if anyone wants to.

     

    jdwAuthor
    Associate II
    August 4, 2024

    One thing I want to correct, is the naming of MacOS above - 15.0 is Sequoia.

    TDK
    Super User
    August 4, 2024

    Per the release notes, MacOS 15 isn't officially supported yet. No doubt it will be eventually, but you'll probably have to wait.

    TDK_0-1722798683914.png

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    jdwAuthor
    Associate II
    August 4, 2024

    Yep that makes perfect sense. I think I did get a bit aggressive on the update. Thanks for responding to that. At least I can still compile and flash with the command line programmer so I’m not blocked. 

    Visitor II
    November 14, 2024

    Hi there, the sudo command doesn't work for me, have you found another solution?

    Patrick Chwalek
    Associate III
    August 6, 2024

    I have the same issue after updating last night to macOS 15.0.

    RohdeaBest answer
    Visitor II
    August 17, 2024

    Using "sudo" can temporarily solve this issue

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

     

    Explorer
    September 15, 2024

    Rohdea, I made an ST account specifically to thank you. You saved me such a hassle. Thanks!!!

    Explorer
    August 20, 2024

    Thank you Rohdea! Using sudo to launch the app solved the issue for me as well.

    Bouzid-s
    Associate
    September 21, 2024

    macOS 15 not yet supported.

    possible solution :

    run the following command in the external terminal, the GDB server starts properly, and I'm able to debug the application. I use then remote GDB server (localhost with default port)

     
    /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.macos64_2.1.400.202404281720/tools/bin/ST-LINK_gdbserver -cp/Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI youpath_to_project_debug_project.elf
     
    or copy it from the debug configuration.

    This starts the GDB server and loads my application without any issues.

    Andrei Chichak
    Lead
    November 5, 2024

    Yeah, that gets around the immediate issue, but not the long term.

    Since sudo gets around the issue, it's a permissions issue. For me it showed up after I updated to 15.1

    Oh, that's weird. I launched 1.16.1 from the command line, without the sudo, and the ST-Link server starts properly.

     

    WAT????

    Explorer
    November 10, 2024

    Hi everyone. I did a bit of research on this issue and found that the debugger fails to launch due to the missing environment variable /usr/local/bin. The problem is that when the program is started from Launchpad or from the terminal, the set of environment variables available to the program is different. When launched from the terminal, /usr/local/bin is included in the PATH, but it’s missing when launched from the shortcut.

     

    I couldn’t find an easy way to add an environment variable to Launchpad, and I don’t think that’s the best approach anyway. A temporary solution is to create a shell script through Automator, as shown in the screenshot.Снимок экрана 2024-11-10 в 22.31.54.png

    JG_it
    Associate II
    November 11, 2024

    Thank you Rohdea! Using sudo works for me as well, but strangely it changes the keyboard language.

    Visitor II
    November 14, 2024

    Exactly the same here - I cannot revert to my French keyboard.