This page covers the common build steps for the firmware in this repository.
Prerequisites (Linux example)
pip
gcc-arm-none-eabi
openocd
stlink-tools
tup
make
Install common packages on Debian/Ubuntu:
sudo apt update sudo apt install -y python3 python3-pip make gcc-arm-none-eabi openocd stlink-tools tup
Build steps
cd Firmware make # or parallel: make -j$(nproc)
After a successful build, firmware artifacts live in Firmware/build/ (for example ODriveFirmware.hex and ODriveFirmware.elf).
Firmware/build/
ODriveFirmware.hex
ODriveFirmware.elf
Flash using ST-Link / OpenOCD
cd Firmware make flash # uses openocd & stlink (flash-stlink2 target)
Other targets in the Firmware/Makefile include: clean, flash-bmp, dfu, erase, unlock, and libfibre-* build helpers.
Firmware/Makefile
clean
flash-bmp
dfu
erase
unlock
libfibre-*
Notes
tools
pip install -e tools
There was an error while loading. Please reload this page.