Personal tools

Installing STM32CubeProgrammer on Ubuntu 18.04

From SomLabs Wiki

Revision as of 22:36, 6 December 2020 by Pawelzbysinski (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Installing STM32CubeProgrammer on Ubuntu 18.04

Download the STM32CubeProgrammer (at the time of writing this text, version 2.6.0 was the latest):

Uncompress the archive file:

cd ~/Downloads

STM32CubeProgrammer 01.png

Create a destination directory for STM32CubeProgrammer on your computer:

mkdir ~/STM32MPU
mkdir ~/STM32MPU/STM32CubeProgrammer

Execute the installer SetupSTM32CubeProgrammer-2.6.0.linux.


Select ~/STM32MPU/STM32CubeProgrammer as the destination directory:

STM32CubeProgrammer 02.png

After the installation is finished add the STM32CubeProgrammer binary directory to your PATH environment variable:

export PATH=~/STM32MPU/STM32CubeProgrammer/bin:$PATH
source ~/.bashrc

To check if the software is working, type:

STM32_Programmer_CLI -l usb

STM32CubeProgrammer 03.png

Although the STM32CubeProgrammer is installed, to activate the access to the USB port, you need to proceed the following commands:

sudo apt-get install libusb-1.0-0
cd ~/STM32MPU/STM32CubeProgrammer/Drivers/rules
sudo cp *.* /etc/udev/rules.d/

STM32CubeProgrammer 04.png

How to flash the eMMC memory in the VisionSOM-MP1 module is described here:

NXP Partner ST Partner Renesas Partner