Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.44 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.44 KB

ChibiOS Examples

These examples are written using the ChibiOS RTOS.

Prerequisites

Software

ChibiOS Library

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

Compiling

  1. Be sure you've installed the prerequisite software and initialized the ChibiOS library first. (see instructions above)
  2. Now go into one of the example directories and run make.

Flash the program

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