Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.5 KB

File metadata and controls

49 lines (34 loc) · 1.5 KB

STM32F1Learn

First Steps

UBuntu:


Install STM32CubeMX

  1. Download zip archive

  2. Extract it somewhere

  3. Doudle click on SetupSTM32CubeMX-XXX file and follow instructions

  4. Go to installation folder and Run CubeMX

  5. 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 VSCode Extensions

  1. C/C++
  2. Cortex Debug
  3. Makefile Tools

Install stlink

  1. Go to releases and download *.deb package
  2. Install it with sudo dpkg -i stlink_*.deb
  3. In case of missing packages run this command sudo apt-get -f install
  4. Check installation: st-info --version
  • export LD_LIBRARY_PATH=/usr/local/lib - for libstlink-shared.so related error

Install tools

  1. Install xpm if you don't have it: https://xpack.github.io/xpm/install/
  2. Run xpm install command

Get latest SVD file for our processor on st.com

  • in case of our "blue pill" STM32F103 the link is: here
  1. add STM32F103.svd file to the root folder

Interesting articles