I just noticed that ST released CubeMX 4.8.0, so I gave it a try. I'm still running ubuntu 14.04, which already worked for CubeMX 4.6.0. The software is zipped when you download it, so I just unzipped the installer (an exe archive) and ran it:
sudo java -jar SetupSTM32CubeMX-4.8.0.exeUnfortunately, root permissions are necessary for running the installer.
Then I selected a directory somewhere in my home folder and finished the installation without any problems. To run the installed program:
java -jar ~/path/to/CubeMX/installation/STM32CubeMX.exeAs already noted in my previous log, this line can be added as an alias (~/.bash_aliases):
alias cubemx-4.6.0='java -jar ~/builds/STM32CubeMX_4.6.0/STM32CubeMX.exe' alias cubemx-4.8.0='java -jar ~/builds/STM32CubeMX_4.8.0/STM32CubeMX.exe' alias cubemx='cubemx-4.8.0'Code generation still has two problems:
- No startup code is included in the generated code and
- the included linker script is empty.
Those two are not terribly difficult to overcome, though, because both startup and linker scripts can be copied from the "repository" (a bunch of folders on your disk where CubeMX is taking all the source files from).
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.