Install STM32CubeMX
-
Download zip archive
-
Extract it somewhere
-
Doudle click on
SetupSTM32CubeMX-XXX
file and follow instructions -
Go to installation folder and Run CubeMX
-
Install latest (1.8.4 atm) MCUS Embedded Software from CubeMX:
Help -> Manage embedded software packages -> STM32F1
default installation path can be changed in udater settings menu
Install stlink
- Go to releases and download
*.deb
package - Install it with
sudo dpkg -i stlink_*.deb
- In case of missing packages run this command
sudo apt-get -f install
- Check installation:
st-info --version
export LD_LIBRARY_PATH=/usr/local/lib
- forlibstlink-shared.so
related error
- Install
xpm
if you don't have it: https://xpack.github.io/xpm/install/ - Run
xpm install
command
- in case of our "blue pill" STM32F103 the link is: here
- add
STM32F103.svd
file to the root folder