These examples are written using the ChibiOS RTOS.
- GCC build essentials.
- Mac: Run
xcode-select --install
in your terminal. - Linux: Install build-essential
- Windows: make or via cygwin
- Mac: Run
- The ARM gcc toolchain, 7.3.1 or above
- dfu-util
- ChibiOS Supporting Files (see below)
The ChibiOS library is included as a git submodule and needs to be initialized before you can compile any of the examples. (These steps should only need to be run once)
git submodule init
git submodule update
- Be sure you've installed the prerequisite software and initialized the ChibiOS library first. (see instructions above)
- Now go into one of the example directories and run
make
.
Put the board into bootloader (DFU) mode by pressing the user button while turning the board on. Now you can run the following command to flash the program to the board:
make flash
This command is a wrapper for the dfu-util
command. The full command would be:
dfu-util -d 0483:df11 -a 0 -s 0x08000000:leave -D build/program.bin