How to install STM32CubeMX in Ubuntu 14.04 LTS (64-bit)

First ensure wine is installed.

http://askubuntu.com/questions/459280/cant-install-wine-on-ubuntu-14-04

sudo add-apt-repository ppa:ubuntu-wine/ppa 
sudo apt-get update 
sudo apt-get install wine1.7

Next download Java JDK 7 version 45:

http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#sjre-7u45-oth-JPR

(binary name is jdk-7u45-windows-x64.exe, 64-bit windows).

Install it inside Ubuntun host using wine “wine jdk-7u45-windows-x64.exe”.

Next download STM32CubeMX at st.com website (Details described here: http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF259242?icmp=stm32cubemx_pron_pr-stm32cubef2_apr2014&sc=stm32cube-pr2#):

stm32cubemx.zip

Unzip it, and install it using wine: “wine SetupSTM32CubeMX-4.7.0.exe”.

After that go to the wine directory and start up the STM32CubeMX executable directly:

cd home/tthtlc/.wine/drive_c/Program Files/STMicroelectronics/STM32Cube/STM32CubeMX

wine ./STM32CubeMX.exe

Click on “New Project”:

Ok, the rest is yours.

There is another way of getting STM32CubeMX is to install it as a Eclipse plugin:

Download it at: stsw-stm32095.zip

and then install the plugin into an existing machine whcih have Eclipse installed (Eclipse 64-bit Kepler SR-1, as the link below said):

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=https%3a%2f%2fmy.st.com%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fSTM32CubeMX%20as%20Eclipse%20plugin%20on%20Linux%2064%20machine&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&currentviews=2430

Read here for all the important links for STM32 software for MCU programming:

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx

http://regalis.com.pl/en/arm-cortex-stm32-gnulinux/

Another post on how to install STM32CubeMX (for windows) on Linux:

http://fivevolt.blogspot.sg/2014/07/installing-stm32cubemx-on-linux.html

For my STM32F4-Discovery (STM32F407VGT6):

Reference manual:

http://www.st.com/stonline/stappl/resourceSelector/app?page=fullResourceSelector&doctype=reference_manual&SubClassID=1169

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: