- see How to install ARM Toolchain first
- make sure you have CMake 3.11.10 or later installed
- Go to your project root directory
<path to your iRM_Embedded_2018/>
in your terminal - run
make <target>
and replace<target>
with the robot type to compile codes for a specific type of robot
e.g. runmake infantry1
ormake engineering
- you can add flags for debug or testing purposes
e.g.make infantry1 DEBUG=1 RUNTEST=1
- if you see a
.elf
file (e.g.infantry1.elf
orengineering.elf
) generated under project root directory, than it means the compilation is successful and the binary file is ready to be flashed onto the MCU. - for a more detailed documentation, run
make how
to see all available make options.
-
Go to your project root directory in your terminal
-
run the following command to build for infantry robot
mkdir build && cd build cmake -DCMAKE_TOOLCHAIN_FILE=STM32F427xx.cmake -DINFANTRY1=ON -DDEBUG=OFF -DRUNTEST=OFF .. make -j
-
you should see a
iRM2018.elf
generated under yourbuild/
directory if the compilation is successful. -
to see a full list of cmake options, run
cmake -L ..
Note: before switching to building a different robot, your should clean up your build directory by rm -rf build/