Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor edit

...

Expand
titleInstalling on Linux...

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

Code Block
languagebash
$ 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:

Code Block
languagebash
$ 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.
Expand
titlePrevious InstructionsIf If that does not work you can try the previous instructions:
  • 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:
    Code Block
    languagebash
    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:
    Code Block
    languagebash
    sudo usermod -a -G dialout $USER
  • Verify that you can invoke the compiler:
    Code Block
    ~$ 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.

...