Compiling the firmware

Prerequisites

You NEED to use the summon arm toolchain to build Open-BLDC Firmware, it contains libstm32 and libopenstm32 that is required. You can also use other toolchains but they are not tested, and you need to build libstm32 and/or libopenstm32 yourself.

You also will need the following packages you may already have installed some of them while building the toolchain:

Building the toolchain

You can find a detailed description of how to do that here. You really should use the toolchain described on that page, that will make your life much easier and decrease the amount of questions from you. :)

Compiling and flashing the firmware

Before you can build anything you need to set the PATH variable so that the build system can find the arm crosscompiler:

export PATH=~/sat/bin:$(PATH)

Building the firmware

Now all prerequisites should be present. You can now build the firmware by just running:

cd [Open-BLDC repository]/source
make

This will build all the internal dependencies (yamlgen, olconfgen, libgovernor) and the motor control firmware.

Flashing the motor control firmware

After you connected the flossjtag to your computer and to the Open-BLDC hardware you can simply run:

make flash

Note: If you are using Mac OS X you may want to unload the FTDI driver running: