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
  1. 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
  2. sudo apt-get install git
  3. sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
  4. sudo apt-get update
  5. sudo apt-get install gcc-arm-none-eabi
  6. sudo apt-get install openocd

Build and Flash the Firmware

  1. Get the Repo: git clone https://github.com/generic-electric-unicycle/firmware.git
  2. Navigate into the Repo-Root directory: cd firmware.git
  3. Rename the Makefile: mv Makefile.ppa Makefile
  4. Build the Firmware: make
  5. Navigate into the tools directory: cd tools
  6. Edit the flash file according to your programmer
  7. Navigate back into the Project-Root directory: cd ..
  8. Flash the firmware: make flash
  9. Done