ARM maintains a complete toolchain for building and debugging firmware for ARM-based micro-controllers. This is the primary toolchain used by the OpenWSN team to program the following motes:

This page details the installation steps:

Installing ARM toolchain

You can find the ARM toolchain at https://launchpad.net/gcc-arm-embedded. Version 4.7 is the latest currently used: https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update

The installation consists in the following steps:

  1. Download the toolchain
  2. Inflate (unzip) the toolchain
  3. Modify the PATH environment variable so Eclipse can invoke the compiler.

 

In Ubuntu, Add the repository for gcc-arm-embedded:

$ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
$ sudo apt-get update
$ sudo apt-get install gcc-arm-none-eabi

Then check your version:

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (4.8.2-14ubuntu1+6) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • Extract gcc-arm-none-eabi-4_7.tar.bz2 to a desired folder e.g., ~/openwsn/gcc-arm-none-eabi-4_7.
  • Modify the PATH environment variable:
    exportline="export PATH=$HOME/openwsn/gcc-arm-none-eabi-4_7/bin:\$PATH"
    if grep -Fxq "$exportline" ~/.profile; then echo nothing to do ; else echo $exportline >> ~/.profile; fi
    . ~/.profile
  • Add your username to the dialout group to make serial port access easier:
    sudo usermod -a -G dialout $USER
  • Verify that you can invoke the compiler:
    ~$ arm-none-eabi-gcc --version
    arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.3 20130312 (release) [ARM/embedded-4_7-branch revision 196615]
    Copyright (C) 2012 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • Download the Windows installer.
  • Double-click on the installer and follow the default installation procedure.
  • Modified the PATH environment to contain the bin/ directory of the toolchain installation directory. For example:
    C:\Program Files\GNU Tools ARM Embedded\4.8 2013q4\bin
  • Verify that you can invoke the compiler:

    C:\Users\Thomas>arm-none-eabi-gcc --version
    arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.8.3 20131129 (release) [ARM/embedded-4_8-branch revision 205641]
    Copyright (C) 2013 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Installing Eclipse

Testing