-
Download STM32 Cube Programmer [here] (https://www.st.com/en/development-tools/stm32cubeprog.html)
-
Unzip it
-
run
./SetupSTM32CubeProgrammer-2.5.0.linux
-
Follow step until finished
-
and export to your bashrc file
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 …