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

18 REPLIES 18
Souhaib MAZHOUD
ST Employee

Hello @chairdeng 

What version of macOS are you using?

KR,Souhaib

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?

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