The build requires the following:
- GNU Tools for ARM Embedded Processors toolchain (compiler, objcopy)
- STLINK software (uploading code to stm32f4)
- STM32 Standard Peripheral Libraries
arm-none-eabi-gcc
and arm-none-eabi-objcopy
should be in ${PATH}
, ${ST_FLASH}
contains a path to st-flash
.
# clean up
make clean
# compile and link the project
make all
# upload the code to stm32f4 (requires root privileges)
make flash