Skip to content
JorgeAparicio edited this page Sep 15, 2012 · 4 revisions

(Check my blog post for a detailed version about the installation and usage.)

NOTE FOR WINDOWS USERS: INSTALL ALL THE NECESSARY TOOLS IN THE SAME DRIVE (E.G. C:)

Eclipse (IDE)

Go to the eclipse website, and grab the current CDT version of eclipse. Untar the downloaded package, wherever you want, and run Eclipse.

GNU ARM plugin

First we need the GNU ARM plugin, this will allow us to call an adequate toolchain.

Go to Help > Install New Software. Click on the Add button. And type this info.

Name: GNU ARM
Location: http://gnuarmeclipse.sourceforge.net/updates

Click OK, and install the CDT GNU Cross Development Tools plugin.

Zylin Embedded CDT

This plugin will allow the use of the toolchain debugger (gdb) within eclipse.

Same procedure as before, this time use:

Name: Zylin Embedded CDT
Location: http://opensource.zylin.com/zylincdt 

Click OK, install the zylin embedded cdt plugin.

EmbSysRegView (optional)

This plugin allows you to see the registers inside the microcontroller during a debug session.

Same as before, this time use:

Name: EmbSysRegView
Location: http://embsysregview.sourceforge.net/update

Click OK, install the embsysregview plugin.

GNU Tools for ARM Embedded Processors (toolchain)

Linux

Get the Linux installation tarball in the project's launchpad. Untar the downloaded file and place it wherever you want.

Now we need to add the bin folder to the PATH environment variable.

Open your ~/.profile and add these lines at the end:

# set PATH to include the GNU Tools for ARM Embedded Processors

if [ -d "/path/to/your/gcc-arm-none-eabi-xyz/bin" ] ; then
    PATH="/path/to/your/gcc-arm-none-eabi-xyz/bin:$PATH"
fi

Note: Use the correct path, the one above is just an example.

After that, logout/reboot to apply the changes.

Windows

Get the Windows installer in the project's launchpad, and follow the installing instructions.

Now we need to add the bin folder to the PATH environment variable.

Go to Control Panel > System. Go to the advanced tab and click on the Environment Variables button. Edit the PATH variable, and append the following text:

;C:\Program Files\GNU Tools ARM Embedded\xyz\bin

Note: Use the correct path, the one above is just an example.

openOCD (JTAG glue)

openOCD permits communication between the host PC and the JTAG dongle.

Linux

Look in your repositories for the version 0.5.0, and install from there, e.g. in Ubuntu:

sudo apt-get install openocd

If it's not in the repository, grab the source code from the openOCD sourceforge site.

Untar and install using the following commands.

cd path/to/openOCD
./configure --help # Look out for important options.
./configure # Careful here, use the adequate options like --enable-ft2232_libftdi
make
sudo make install

Windows

Grab the installer from the freddie chopin's website.

Follow the installation instructions, for the openOCD installer.

Make utility (Windows only)

Windows doesn't have a "make" utility by default. Yagarto Tools is recommended, as it's lightweight and provides the needed "make" binary. In case you already have a "make" tool, check the setup section of the use page.

Yagarto Tools

Grab the installer from Yagarto's website, follow the installation instructions, then browse to the installed directory (C:\Program Files\yagarto-tools-20100703\bin), and delete the "sh" binary, becauses it generates problems when calling the "make" tool, another workaround is installing Yagarto Tools directly in the C:\ directory.

Now add the Yagarto Tools to the PATH environment variable.

Go to Control Panel > System. Go to the advanced tab and click on the Environment Variables button. Edit the PATH variable, and append the following text:

C:\Program Files\yagarto-tools-20100703\bin

Note: Use the correct path, the one above is just an example.