Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post here first, or if you can't find a relevant section!
Post Reply
sheepdoll
Posts: 32
Joined: Fri Dec 20, 2019 6:47 pm

Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post by sheepdoll »

So my tusty 2012 mac mini bit the dust. I got new 2018 version. They completly re -did it as a media device. even making it black in color,

As It was a new machine I decided to go with the latest system. The internal drive is soldered in, But I have everything backed up anyway to an external disk. (I am keeping my laptop on high sierra.) It is amazing how much of one's user preferences, custom fonts (sountfonts too) are hidden. Eveen the shell changed from bash to zshell.

Catalina of course does away with 32 bit support. As the ST software is java I thought to try it anyway. CubeMX however will not install as it attempts to access the read only partition. Am currently attempting instlation of AC6 sw4stm32 eclipse which is installed from the terminal. That seens to work. The instuctions for this are to temporally turn off gatekeeper

I tried this method with cubeMX and it worked Here are the instructions:

Code: Select all

sudo spctl --master-disable
I then decided to run the installer from the command line this involved cd into the app directory. Making it executable then running it from the shell as root

Code: Select all

cd downloads/en.stm32cubemx_v5-5-0
cd SetupSTM32CubeMX-5.5.0.app/contents/MacOs
chmod 755 SetupSTM32CubeMX-5_5_0_macos
The first attempt said the JRE needed upgrading the osx dialog prompts took me to the oracle download page.
once java was updated

Code: Select all

sudo ./SetupSTM32CubeMX-5_5_0_macos
Ran the installer and put the app into the applications directory

Both stmCubeMx abd AC6 sw4stm32 now will run and launch from the applications folder

Be sure to turn gatekeeper back on otherwise unwanted apps can self insall

Code: Select all

sudo spctl --master-enable
Next up is to renstall the Arduno IDE ...



-julie
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post by fpiSTM »

Thanks Julie for sharing your feedback.
I know how it can be a pain to install some ST software on a MAC.
Some work are on going to ease this....
sheepdoll
Posts: 32
Joined: Fri Dec 20, 2019 6:47 pm

Re: Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post by sheepdoll »

This is a pretty old thread.

I installed the Stm32CubeIDE recently and it works much better. I never did figure out why I can not open .ioc projects in MX apart from the most recent one. Opening the same .ioc project in cubeIDE it loads direct. Same for generating the .ld file under CubeMX. I no longer have to copy and include it in the linker options.

I installed STM32CubeIDE on an older windows laptop that runs windows 8.1. This laptop does not connect to the net. I found that cubeIDE does not have an offline installer. At least where I could find it. The offline mode is broken, and the program runs really slow, as it seems to be checking for updates. This makes starting a new project next to impossible.

In CubeMX I can download the update as a zip, then copy it to another machine and run the offline updater that takes the path of the .zip. (as long as the zip is not in the repository.) In CubeIDE I had to un zip it to the repository first.

There is also an issue when moving whole workspaces between mac and windows. The project root paths are hard coded and still point to the mac OS file system. Work around is to create a workspace in windows, then import each project sub folder independanly using the windows path to the workspace. Once imported the windows version of cubeIDE works under windows and I can compile and debug the code offline. Windows seems to run a bit low, but this is an older laptop.

Restoring some of the project setting to factory default, like compiler flags s in the C/C++ tools settings can cause loss of all the include paths.

On the whole STM32CubeIDE has a much better debugger than SW4STM32, I really like the static memory views and the real time watch window...
User avatar
fpiSTM
Posts: 1745
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post by fpiSTM »

Right, I understood your issue.
The best way to improve that is to share this on ST community then it will be managed properly by ST.
Anyway, I'm also raise/track those issue internally to show how it can be difficult to install or migrate ST sw.
xymeneslasyone
Posts: 2
Joined: Tue Sep 13, 2022 6:38 pm

Re: Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post by xymeneslasyone »

Thank you for sharing such detailed instructions! Can someone suggest a good way to fix the accidental reboot of my MAC?
receivedxqy
Posts: 1
Joined: Wed Sep 14, 2022 4:09 pm

Re: Mac OS X 10.15.2 catalina, cube MX and sw4stm32

Post by receivedxqy »

If you tried to set your macbook back to defaults? In some situations, it may be helpful, especially if you installed no official software. When I had a similar problem with my macbook, I used an application from the cleanmymac site. It worked perfectly. This application finds and restores corrupted files and detects viruses and trojans, so if you don't waste additional money by approaching the proper computer specialist, I recommend you try the application I mentioned above. If you are interested, you can click here and get this application download to your computer/laptop shortly.
Post Reply

Return to “General discussion”