Mbed Gcc

Use the following instructions to setup a machine to compile an mbed binary offline, using GCC arm:

The base code can be cloned from a git repo, or you can export an online mbed compiler to "GCC Arm" to run these instructions.

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

Then, you can run the command "make" to successfully compile the code.

You must edit the makefile every time a new file is added, so that it compiles&links that file. A good example of a makefile modified in such a way is this one. Line 4 was the only line changed