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
.
generate build files
cmake -S . -B cmake_build/release
build
cmake --build cmake_build/release
upload the code to stm32f4 (requires root privileges)
st-flash write cmake_build/release/6dofRobotController.bin 0x8000000