Skip to main content
Sebastian G.
Associate II
December 6, 2016
Question

CubeMX install on Mac Sierra

  • December 6, 2016
  • 7 replies
  • 4051 views
Posted on December 06, 2016 at 09:52

I am trying to install CubeMX 4.18.0 on my Mac (Sierra), opening the installer appears to do nothing, if launched via spotlight i get a warning stating unable to open the programm.

#cubemx #macos #sierra
This topic has been closed for replies.

7 replies

Nesrine M_O
Associate
December 6, 2016
Posted on December 06, 2016 at 10:45

Hi

nathancdc

,

Please refer to the

/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fresource%2Fen%2Fuser_manual%2Fdm001047pdf

user manual and follow the steps/requirements for installing and running CUBEMX under MacOS:

  • Make sure that tyou have administrators rights.

  • Make sure that you haveinstalled Java Development Kit 1.7.0_45 or later.

    If the issue persist again please contact us.

-Nesrine M-

Sebastian G.
Associate II
December 6, 2016
Posted on December 06, 2016 at 11:47

I got admin rights and 'javac 1.8.0_102' -> already had cubemx installed a while ago, so it was running on this exact computer. Dont know what changed!?

Nesrine M_O
Associate
December 6, 2016
Posted on December 06, 2016 at 11:54

Hi

nathancdc

,

I'll report this issue to our MX team for checking. Sorry for the inconvenience it may bring.

-Nesrine M-

Fleck
Visitor II
December 23, 2016
Posted on December 23, 2016 at 20:09

Double-clicking the installer didn't work for me either.

Workaround: open a terminal, cd to the directory where the files have been unpacked and start the installer with the command:

java -jar SetupSTM32CubeMX-4.0.exe
�?

This worked for me.

?? ?
Associate
January 9, 2017
Posted on January 09, 2017 at 07:12

I had a same problem and this worked for me Thanks!

Kirill Makukhin
Visitor II
May 16, 2017
Posted on May 16, 2017 at 05:50

Installing with sudo works:

sudo open 'path_to_/SetupSTM32CubeMX-4.21.0.app'

However, it screws automatic update
Heath Raftery
Visitor II
July 13, 2017
Posted on July 13, 2017 at 09:29

This was killing me too - silent failure. Eventually discovered I could cd to SetupSTM32CubeMX-4.22.0.app/Contents/MacOs and run the executable from the command line:

$ cd ~/Downloads/en/SetupSTM32CubeMX-4.22.0.app/Contents/MacOs

$ ./SetupSTM32CubeMX-4_22_0_macos

Please install Java JDK 1.7.0_45 or a more recent version

Hallelujah! Just needed to install the latest JDK (not the JRE as directed elsewhere!) and away we go.

Part Robot
Associate
May 27, 2018
Posted on May 27, 2018 at 15:32

Works for me, thanks Heath!

Thierry Coton
Visitor II
October 19, 2017
Posted on October 19, 2017 at 22:38

Actually, the setup for Mac OS has been copied from a Linux installation and can only stall as the setup is trying to write into /usr/share/applications which does not exists on Mac OS but does not pop any error up...

LOL, seriously, guys, do you really have a Mac?

:)

 

I had to open the package and launch the setup in a terminal to discover this.

It has been a year this issue exists and still not fixed.

/Users/***********/Downloads/en.stm32cubemx/SetupSTM32CubeMX4.22.1.app/Contents/MacOs/SetupSTM32CubeMX-4_22_1_macos ; exit;

iMac-**-*****:~ **********$ /Users/***********/Downloads/en.stm32cubemx/SetupSTM32CubeMX4.22.1.app/Contents/MacOs/SetupSTM32CubeMX-4_22_1_macos ; exit;

19 oct. 2017 16:19:14 INFOS: Logging initialized at level 'INFO'

19 oct. 2017 16:19:14 INFOS: Commandline arguments:

19 oct. 2017 16:19:15 INFOS: Detected platform: mac_osx,version=10.12.6,arch=x86,symbolicName=null,javaVersion=9.0.1

19 oct. 2017 16:19:18 WARNING: Cannot write to '/usr/share/applications'

David Figueiredo
Associate
February 8, 2018
Posted on February 08, 2018 at 23:18

The biggest problem people have is they confuse the java runtime with JDK. You need to install the latest Java Development Kit. Then you can run the installer. Straight from the zip with a double-click. Really it works.

Heath Raftery
Visitor II
February 15, 2018
Posted on February 15, 2018 at 12:09

Consider yourself lucky! Double-click has never worked for me, even with the right JDK. Executing 

SetupSTM32CubeMX-4.22.0.app/Contents/MacOs

/SetupSTM32CubeMX-4_22_0_macos from the command line is what works for me.

john doe
Senior III
February 9, 2018
Posted on February 09, 2018 at 04:48

use the java -jar command on the .exe since the mac installer is broken [no, they dont test anything.  if it builds without failing they release it regardless of how bad it is, and wont patch show stopper bugs. they just wait until the next release cycle and maybe your bug will be fixed.  dont count on it.]

don't use sudo because you don't want this stuff in your Applications folder anyway.  put it in Developer where your Xcode stuff is.