cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CubeMX - Generate Code fails on a Mac

chairdeng
Associate II

Hi All

I have installed STM32 CubeMX on a Mac and I get the following error when trying to generate code:

The Eclipse executable launcher was unable to locate its companion shared library.截屏2024-12-01 18.42.46.png

1 ACCEPTED SOLUTION

Accepted Solutions
Semer CHERNI
ST Employee

Hello @chairdeng 

I am happy to announce the issue was fixed in STM32CubeMX.

You just need to download the installer form st.com and make a fresh install of STM32CubeMX 6.14.0.

KR,
Semer.

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

30 REPLIES 30
Souhaib MAZHOUD
ST Employee

Hello @chairdeng 

What version of macOS are you using?

KR,Souhaib

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.

Ether
Associate

I encountered exactly the same issue. I’m trying to compile STM32 projects on a Mac using CubeMX and CLion, but every time I click “Generate Code” in CubeMX, it throws this error, causing CLion to fail to compile. It shows the message: “No project sources generated. Run Generate Code in CubeMX.” MacBook Air M1.

I use 15.1.1截屏2024-12-04 01.40.00.png

When I rolled the CubeMX version back to 6.12, I didn't have this problem. This problem appeared when the CubeMX version was 6.13.

Have you selected STM32CubeIDE to generate your project? If yes, what version of CubeIDE do you have?

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.

I also encountered the same problem as you, but the problem still exists after I returned to version 6.12

I selected STM32CubeIDE to generate your project, and I use Clion as my IDE

截屏2024-12-04 20.55.01.png

My cubeide and cubemx are both the latest versions. When cubemx selects cubeide in the toolchain, it will display Eclipse related reminders