Installations
Installations
Date : 03 June 2022
The following programs are supposed to work on Ubuntu 20.04 and Rocky Linux.
STM32CubeIDE
ST provides a multi-platform packaged eclipse version for STM32 microcontrollers :
https://www.st.com/en/development-tools/stm32cubeide.html
IDE Eclipse / Tdb ( ECLIPSE + TDB + GCC-ARM-NONE-EABI + OPENOCD )
The default eclipse in ubuntu deposits is for java-coding.
#! /bin/bash
# must be root
apt-get -y update && apt-get -y upgrade
apt-get -y install libusb-dev libncurses5
apt-get -y install tcl tcl-dev tk tk-dev
apt-get -y install openjdk-11-jre openjdk-11-jre-headless
#=======================================================================
# ENIB PROGRAMS --> /local
#=======================================================================
mkdir -p /local
cd /local
wget http://www.enib.fr/~kerhoas/INSTALL_/sdk_elec.zip
unzip sdk_elec
# UDEV RULES FOR OPENOCD
cp /local/sdk_elec/openocd/share/openocd/contrib/60-openocd.rules /etc/udev/rules.d
cp /local/sdk_elec/sdk_elec.sh /etc/profile.d/ # update PATH
chmod +x /etc/profile.d/sdk_elec.sh
—————————————————————————————————————–>
The previous version ( eclipse luna ) can be downloaded here :
Verify that /local/sdk_elec folder is in the PATH :
$ echo $PATH
/home/kerhoas/.local/bin:/opt/Qt/Tools/QtCreator/bin/:/local/pixy/build/pixymon/bin:/local/scilab-5.5.2/bin:/local/sdk_elec/bin:/local/sdk_elec/eclipse:/local/sdk_elec/gcc-arm-none-eabi-10-2020-q4-major/bin:/local/sdk_elec/openocd/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-11-oracle/bin:/usr/lib/jvm/java-11-oracle/db/bin:/usr/local/cross/rpi/usr/bin
As a result, the following commands are known :
$ which eclipse
/local/sdk_elec/eclipse/eclipse
$ which tdb
/local/sdk_elec/bin/tdb
$ which arm-none-eabi-gcc
/local/sdk_elec/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc
$ which arm-none-eabi-gdb
/local/sdk_elec/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gdb
Qt5 + QtCreator
get the open source qtcreator at : https://www.qt.io/download
#! /bin/bash
# must be root
apt-get -y update && apt-get -y upgrade
apt-get -y install libqt5serialport5 libqt5serialport5-dev
apt-get -y install freeglut3-dev # opengl
Bus CAN ( sonde peak pcan-usb )
$ sudo apt-get install can-utils
Android Studio
Download at : https://developer.android.com/studio/
you’ll need to update usb rights :
#! /bin/bash
# must be root
wget http://www.enib.fr/~kerhoas/INSTALL_/51-android.rules.zip
unzip 51-android.rules.zip
cp 51-android.rules /etc/udev/rules.d/