-
Notifications
You must be signed in to change notification settings - Fork 2
Tools
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.
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