Install STM32CubeMX
-
Download zip archive
-
Extract it somewhere
-
Doudle click on
SetupSTM32CubeMX-XXXfile 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 -> STM32F1default installation path can be changed in udater settings menu
Install stlink
- Go to releases and download
*.debpackage - 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.sorelated error
- Install
xpmif you don't have it: https://xpack.github.io/xpm/install/ - Run
xpm installcommand
- in case of our "blue pill" STM32F103 the link is: here
- add
STM32F103.svdfile to the root folder