Skip to main content
Associate III
January 23, 2024
Solved

CubeMX won't install on macos Sonoma 14.2.1

  • January 23, 2024
  • 4 replies
  • 2404 views

I downloaded CubeMX and I followed the instructions on the attached Readme.html.

I run it by ctrl-click and then select Open to mark the author as trusted, but then nothing happens. 

Does anyone encountered the same problem? How did you solve it? 

Best answer by Andrei Chichak

Don't panic. I'm using 6.10.0 on MacOS 14.2.1. It works.

The installer makes the OS complain that the app can't be opened because the file isn't signed, none of the permissions is set properly, and it bounces off of the installers.

Try and fire up the installer and watch it fail miserably.

Go into <Apple><System Settings...><Privacy & Security> and scroll down to the bottom where it will say that the file was blocked, and hit <open anyway>

put in your password or scan your finger or whatever you need to do.

Fire up the installer again and won't work.

Control-click does nothing useful.

Now for the useful part.

Fire up a terminal, cd into Downloads and then into the folder that holds the installer for CubeMX-6.10.0.

Now, cd into the application (yeah, this is weird) cd SetupSTM32CubeMX-6.10.0.app/Contents/MacOS/SetupSTM32CubeMX-6_10_0

start up the installer:

./SetupSTM32CubeMX-6_10_0

This will blow up. It's silently not liking the permissions on the version of java that ST bundled with the installer. So, once again,

Go into <Apple><System Settings...><Privacy & Security> and scroll down to the bottom where it will say that java was blocked, and hit <open anyway>

put in your password or scan your finger or whatever you need to do.

Then start the installer for a second time:

./SetupSTM32CubeMX-6_10_0

This should have the installer GUI pop up on your screen and it should be willing to install.

You should have a, mostly, usable version of CubeMX, but you won't be able to see any files on your system. Cube has not been given permission to mess around with files yet (ask someone who has been hacked by a trojan if this is a good idea, they'll say "hell yes!").

Go into <Apple><System Settings...><Privacy & Security><Full Disk Access> and hit + and add CubeMX from your applications folder. Suddenly you'll be able to roam around and open files.

4 replies

Technical Moderator
January 24, 2024

Hello @ubaldot ,

First let me thank you for posting and welcome to the ST Community.

I suggest that you provide the STM32CubeMx version. 

Knowing that STM32CubeMX is supported on macOS® 13 (Ventura).

Thanks.

Mahmoud.

 

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.
ubaldotAuthor
Associate III
January 24, 2024

Thanks! The version is 6.10.0. 

Andrei Chichak
Andrei ChichakBest answer
Lead
January 24, 2024

Don't panic. I'm using 6.10.0 on MacOS 14.2.1. It works.

The installer makes the OS complain that the app can't be opened because the file isn't signed, none of the permissions is set properly, and it bounces off of the installers.

Try and fire up the installer and watch it fail miserably.

Go into <Apple><System Settings...><Privacy & Security> and scroll down to the bottom where it will say that the file was blocked, and hit <open anyway>

put in your password or scan your finger or whatever you need to do.

Fire up the installer again and won't work.

Control-click does nothing useful.

Now for the useful part.

Fire up a terminal, cd into Downloads and then into the folder that holds the installer for CubeMX-6.10.0.

Now, cd into the application (yeah, this is weird) cd SetupSTM32CubeMX-6.10.0.app/Contents/MacOS/SetupSTM32CubeMX-6_10_0

start up the installer:

./SetupSTM32CubeMX-6_10_0

This will blow up. It's silently not liking the permissions on the version of java that ST bundled with the installer. So, once again,

Go into <Apple><System Settings...><Privacy & Security> and scroll down to the bottom where it will say that java was blocked, and hit <open anyway>

put in your password or scan your finger or whatever you need to do.

Then start the installer for a second time:

./SetupSTM32CubeMX-6_10_0

This should have the installer GUI pop up on your screen and it should be willing to install.

You should have a, mostly, usable version of CubeMX, but you won't be able to see any files on your system. Cube has not been given permission to mess around with files yet (ask someone who has been hacked by a trojan if this is a good idea, they'll say "hell yes!").

Go into <Apple><System Settings...><Privacy & Security><Full Disk Access> and hit + and add CubeMX from your applications folder. Suddenly you'll be able to roam around and open files.

Visitor II
February 21, 2024

Hello, 
I got the same issue, and followed up your instruction, but I still get no luck. this is what I can show.

截屏2024-02-20 下午10.45.48.png

Please help.

Thank you

Thomas

ubaldotAuthor
Associate III
February 21, 2024

Try to right click on the CubeMX setup icon/Show package content and then reach the final destination through finder. Once there, right click on the path shown below and click open in Terminal. 

 

ubaldot_0-1708498668159.png

 

ubaldotAuthor
Associate III
January 26, 2024

You made my day! Thanks!