Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 735 Bytes

File metadata and controls

42 lines (33 loc) · 735 Bytes

STM32 Tutorial

This is the repository for the demo presented at the STM32 programming course at NTUEESAAD

How to Build

  1. Clone the repository
git clone git@github.com:EricLin0123/STM32Tutorial.git
  1. Change the directory to the build directory
mkdir build; cd build
  1. Compile the code
cmake ..
cmake --build .
  1. Flash the following .elf file to the board
build/F103Template.elf

How to use

In /Core/Src/main.c, define the example you want to run to be 1. For example if you want to run ADC example:

#define isblink 0
#define DMAdemo 0
#define isDMA 0
#define isADC 1
#define isDMA_ADC
#define isPWM 0
#define isWS2812 0
#define isIMU 0
#define isUARTdemo 0