- Set the environment variable
ARM_GCC_BIN_FOLDER
to where yourgcc-arm-none-eabi
binaries are located:
export ARM_GCC_BIN_FOLDER="/home/cedric/workspace_hw/gcc-arm-none-eabi-9-2020-q2-update/bin"
export ARM_GCC_BIN_FOLDER="/c/gcc-arm-none-eabi/9-2020-q2-update/bin"
- From the source root directory, build the cross-compiled binary for stm32 target (binaries will be available in the
build
generated folder:
make target
- From the source root directory, build and run the unit tests using your standard local gcc (eg.
/usr/bin/cc
):
make test && make run