Install STM32 Cube Programmer on Ubuntu 18.04


export PATH=/home/yourusername/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin 
  • Run source ~/.bashrc
  • install open jdk sudo apt install openjdk-8-jre-headless
  • choose open jdk 8 sudo update-alternatives --config java
  • install open jfk
apt purge openjfx
apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161 b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2
apt-mark hold openjfx libopenjfx-jni libopenjfx-java
  • For activate serial flashing sudo apt-get install libusb-1.0-0
  • cd to installation STM32Cube installation directory
cd /home/yourusername/STMicroelectronics/STM32Cube/STM32CubeProgrammer/Drivers/rules

sudo cp *.* /etc/udev/rules.d/

  • Done

Happy Coding Salam Ngoprek …