Intro

Welcome to the world of ARM Microcontrollers. In this tutorial, we will look at setting up free and open-source tools for ARM Development. We have been working on LPC1768 for some-time with Keil and other development suites. However an open source alternative is always good to have. For student’s academia and startups this is a boon.

You could use eclipse with ARMGCC straightway, however Co-IDE from Coo-Cox, simplifies a lot of things and it is also based on eclipse. In one package it configures all that you require except the ARMGCC. It will configure most of the ARM based MCUs from major vendor for you. The best part is, it is directly connected to GITHUB and uses a component model, with which you can add all the peripheral libraries and sample codes on the fly. Download and install both from the links below:

Downloads

CoIDE version 1.7.8 :

http://www.coocox.org/software/coide.php

ARM GNU tool :

http://gnuarmeclipse.livius.net/blog/toolchain-install/#Download

Setup

After you have installed the CoIDE and ARM GNUcompiler, launch the CoIDE application.

You can see following window :

CoIDE 1.png

Toolchain Configuration

Now you need to configure tool-chain path for ARM compilation.

From Menu bar go to the ‘Project’ menu, select the option ‘Select Toolchain Path’.

CoIDE toolchain 1.png

Now give the path where you had installed ARM GNU compiler and click OK.

Path will be like C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2014q4\bin (for Windows 7 64 bit)

CoIDE toolchain 2.png

Sample Project for LPC1768