cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: STM32CubeIDE Won't connect to ST-LINK v2 debugger on macOS 15.0

KMill
Senior

My setup is macOS 15.0 Sequoia

STM32CubeIDE 1.16.1

STLink-Server v2.1.1

When trying to program or debug a device the following error is shown:

Screenshot 2024-09-19 at 13.00.10.png

Even after re-installing ST-Link server

I have rebooted and re-installed ST-Link Server, but the issue persists.

It's not a show stopper as I can use STM32CubeProgrammer to program the device, on the same machine.

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

Got the answer from the team and macOS15 is not supported yet. The only supported macOS versions supported till now in STM32CubeIDE V1.16.1 are macOS® 13 (Ventura), macOS® 14 (Sonoma)

You can refer to the readme file from here.

SofLit_0-1726753107695.png

Hope it helps.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

12 REPLIES 12
SofLit
ST Employee

Hello,

Reported internally to the team.

Internal ticket for follow up 191542.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
SofLit
ST Employee

Hello,

Got the answer from the team and macOS15 is not supported yet. The only supported macOS versions supported till now in STM32CubeIDE V1.16.1 are macOS® 13 (Ventura), macOS® 14 (Sonoma)

You can refer to the readme file from here.

SofLit_0-1726753107695.png

Hope it helps.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Yip, I know that!

Just reportig what happens if you do update to macOS 15.0.

Although to be honest it's a bit disappointing that it's not supprted yet.

I think it will be supported but I don't have a visibility on where it will be.. So sorry for any inconvenience ..

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

No worries, I can use the workaround for now :grinning_face:

Hi KMill

 

Can you please share your workaround since I can't make it work

 

Kind regards

pdmazariegos
Associate II

I already tried using sudo /Applications/STM32CubeIDE.app/Contents/MacOS/STM32CubeIDE

And it didn't work

 

 

@pdmazariegos Hi.

Certainly! So what I do is use STM32CubeIDE as normal to edit the code and build the project in either Debug or Release mode. Now, since the built in programming tool wont work at the moment, you need to also run STM32CubeProgrammer.  Then...

Step 1. Click on CONNECT to open a connection to your programmer, and device.

Step 2. Click on "Open File" and browse for the latest .elf file that the compiler produced. It will be in the Debug or Release folders under your project files.

Step 3 Click on "Download" to program the code into the device.

Step 4. Click on "Disconnect" to disconnect the porgrammer and reset the device.

*NOTE* In my experience the device does not always reset when you clikc on Disconnect. If this happens, quickly CONNECT and DISCONNECT again and it will reset.

I have not found a way to get into debug-mode yet. 

I did notice that I can run stmlink-server from the terminal window, and CubeIDE finds it, but commands sent to it fail.

Thanks I would tried this way, I appreciate your reply

Meanwhile I was trying to do what emrys57 did on this link:

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

and it seems to work the debug session, so check it out!

Kind regards