This is the repository for the demo presented at the STM32 programming course at NTUEESAAD
- Clone the repository
git clone git@github.com:EricLin0123/STM32Tutorial.git- Change the directory to the build directory
mkdir build; cd build- Compile the code
cmake ..
cmake --build .- Flash the following .elf file to the board
build/F103Template.elfIn /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