DEV Community

ABDUL SATTAR
ABDUL SATTAR

Posted on

Install STM32 Cube on Ubuntu

If you're a developer working with STM32 microcontrollers, STM32Cube IDE is an indispensable tool for your projects. Running on Ubuntu, this comprehensive integrated development environment (IDE) offers everything you need for software development.

1. Open the Terminal

Press Ctrl + Alt + T simultaneously to open a terminal window.

2. Update and Upgrade

Before installing STM32Cube, ensure your system has the latest updates. Run the following commands:

sudo apt update
sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

3. Download STM32Cube

Head over to the STM32Cube official website and download the latest version of STM32CubeMX for Linux. Make sure to download the .zip file.

4. Install Java Runtime Environment

STM32CubeMX requires Java to run. Install the Java Runtime Environment (JRE) with the following command:

sudo apt install default-jre
Enter fullscreen mode Exit fullscreen mode

5. Extract and Install STM32Cube

Navigate to the directory where you downloaded the .zip file, then extract it:

cd ~/Downloads
unzip en.stm32cubemx.zip -d ~/STM32CubeMX
Enter fullscreen mode Exit fullscreen mode

Next, navigate to the extracted directory and run the installation script:

cd ~/STM32CubeMX
chmod +x SetupSTM32CubeMX-<version>-Linux.run
./SetupSTM32CubeMX-<version>-Linux.run
Enter fullscreen mode Exit fullscreen mode

Replace with the actual version number of your downloaded file.

6. Launch STM32Cube

Once the installation is complete, you can launch STM32Cube directly from the terminal by navigating to the installation directory and running:

cd ~/STM32CubeMX
./STM32CubeMX
Enter fullscreen mode Exit fullscreen mode

Want to learn more? Feel free to check out my website (link in bio) or connect with me on LinkedIn for more Ubuntu tips and tricks!

Top comments (0)