Installation Requirements - EGG-electric-unicycle/documentation GitHub Wiki
Building / Installation and Requirements
A suitable Controller with an SWD-Port and STM32F103
STLinkV2 or compatible "programmer"
Note: This Instructions are written for Ubuntu 15.04 (might work for other systems too)
- OpenOCD for Debugging and Flashing
- GCC-Arm-Toolchain
- common build tools
sudo apt-get install build-essential libgmp3-dev libmpfr-dev libx11-6 libx11-dev texinfo flex bison libmpc-dev libncurses5 libncurses5-dbg libncurses5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev zlibc
sudo apt-get install git
sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo apt-get update
sudo apt-get install gcc-arm-none-eabi
sudo apt-get install openocd
Build and Flash the Firmware
- Get the Repo:
git clone https://github.com/generic-electric-unicycle/firmware.git
- Navigate into the Repo-Root directory:
cd firmware.git
- Rename the Makefile:
mv Makefile.ppa Makefile
- Build the Firmware:
make
- Navigate into the tools directory:
cd tools
- Edit the
flash
file according to your programmer - Navigate back into the Project-Root directory:
cd ..
- Flash the firmware:
make flash
- Done