Arm Development For n-ORBIT CM

Good general instructions on setting up cross compilers and toolchain can be found in "Using Open Source Tools for STR7xx Cross Development" (Giacomo Antonino Fazio,­ Antonio Daniele Nasca, November 2007). This is more or less a subset of those instructions which worked for WINLAB ORBIT.

1. Connect the development target CM directly to the console. These instructions assume an OLIMEX ARM-USB-OCD connects it.

2. Install openocd from source on the console in /usr/local, using commands similar to the following.

$ apt-get install build-essential automake autoconf libusb libftdi-dev
$ cd /usr/local/src
$ svn checkout svn://svn.berlios.de/openocd/trunk openocd
$ cd openocd
$ ./bootstrap
$ ./configure --enable-ft2232_libftdi
$ make
$ make install

You can try your luck with the Debian package of openocd, but development is still very active. If you encounter bugs you will likely be told to build from source anyway.

3. Create a openocd configuration file.

A version that works for our OLIMEX ARM-USB-OCD is attached to this page. You may need to adjust the ft2232_vid_pid parameters by observing the output of lsusb -v. You will need a significantly different configuration file if you are using another interface.

4. Download source for the GNUARM toolchain, compile, and install, using commands similar to the following.

$ sudo apt-get install bzip2
$ cd /usr/local/src
$ wget http://gnuarm.com/binutils-2.17.tar.bz2
$ wget http://gnuarm.com/gcc-4.1.1.tar.bz2
$ wget http://gnuarm.com/newlib-1.14.0.tar.gz
$ wget http://gnuarm.com/insight-6.5.tar.bz2
$ tar jxvf binutils-2.17.tar.bz2
$ cd binutils-2.17
$ ./configure --target=arm-elf --enable-network --enable-multilib
$ make all
$ make install
$ export PATH=/usr/local/bin:$PATH
$ cd ..
$ tar jxvf gcc-4.1.1.tar.bz2
$ tar zxvf newlib-1.14.0.tar.gz
$ cd gcc-4.1.1
$ ./configure ­­--target=arm­-elf ­­--prefix=/usr/local/gnuarm ­­--enable­-interwork ­­--enable-­multilib ­­--enable-­languages="c,c++" ­­--with­-newlib ­­--with-­headers=../newlib­1.14.0/newlib/libc/include
$ make all-gcc

Attachments