Skip to content
smlng edited this page Sep 21, 2015 · 3 revisions

Development Tools

ARM compiler

Please download a suitable version of the ARM GCC compiler for your OS from launchpad. Extract the archive were ever you want, but make sure to add its location in your PATH environment when running make. For example:

PATH=<path/to/gcc-arm-none-eabi>:$PATH BOARD=samr21-xpro make

Please use this version even if your favorite package manager has one available too - for instance MacPorts for OSX has a newer Version (gcc 5.1) available, but there is an compatibility issue.

OpenOCD

The Open On-Chip-Debugger (OpenOCD) is used by the RIOT build system for flashing applications onto a board and to debug them. Due to some issue with the current stable release, you have to build OpenODC from source. To support the Atmel SAM R21 xplain pro board OpenOCD depends on libusb and HID API. Typically, libusb is available through your local package manager, to install HID API run the following commands:

git clone http://github.com/signal11/hidapi.git
cd hidapi
./bootstrap && ./configure
make

This downloads HID API from GitHub and runs configuration and build commands. Afterwards install it:

sudo make install

Now you are ready to build (and install) OpenOCD, as follows:

git clone https://github.com/watr-li/OpenOCD.git openocd
cd openocd
./bootstrap
./configure --enable-maintainer-mode --enable-cmsis-dap --enable-hidapi-libusb
make
sudo make install
Clone this wiki locally