cancel
Showing results for 
Search instead for 
Did you mean: 

STLink Server with MacOS 15

jdw
Associate II

 

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?

 

27 REPLIES 27

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

Gracias por la solución, funciona bien con con la versión 15.0 oficial, espero que solucionen pronto el problema de incopatibilidad. Nuevamente GRACIAS!!!!!!!

That works for me! Thanks!

 

Bouzid-s
Associate II

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.

Thanks, It worked!

Hi, I am on Sequoia 15.0.1, and have the same issue.

As a temp solution I am running the cubeIDE as root, but ST should really do something to solve this issue.

Hi,

it seems that this TEMPORARY solution creates another problem: by starting the IDE with sudo, when changing something on the IoC, it doesn't anymore update the project with the changes. 

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????

QuantumStudent
Associate II

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
Associate III

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