STM32 Primer - Toolchain

We are going to use the GNU toolchain based Sourcery CodeBench Lite for ARM EABI for development in this primer. It is intended to produce raw binaries for boards without an operating system, or that run an RTOS or boot loader. It has the following components included:

There is a paid version available that has more functionality and product support. But we are just going to use the free version, which can be downloaded here. There are a couple of download options (.bin installer, tarball or source tar). I'll just use the .bin installer. When finished downloading, do (I used root because I wanted to install it in '/usr/local/'):

me@pandafruits:~$ sudo /bin/bash ./arm-2012.03-56-arm-none-eabi.bin
Here are some screenshots from my installation:

Choose minimal install, as I don't need an IDE ...

I changed installation directory to '/usr/local/' as per convension ...

Add to PATH ...

Installing ...

To test the installation, do:

me@pandafruits:~$ arm-none-eabi-gcc
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Of course, we didn't give a source file so it failed. But we know that it's been successfully installed and is in PATH. If somehow the shell complains about not being able to find the command, you may need to manually add the following line to the '.profile' file in you home directory:

export PATH=$PATH:/usr/local/Sourcery_CodeBench_Lite_for_ARM_EABI/bin

Next I'll test the toolchain and the hardware with some code.