PSAS/ LPC2148Software/ LynchTutorialModifications

How to Modify Jim Lynch's LPC2148 Tutorial

First, you'll need to grab Jim Lynch's demo on ARM development with Eclipse. There's a pdf and some source code. Any updates to those will probably appear on this ?SparkFun forum thread. Jim's directions are written for Windows users, and contains a lot of walking-through-installation directions. Linux users only really need to pay attention to the explaination of the source code.

If you're a Linux user, change this line in main.c

#include lpc2141x.h

to

#include LPC2141x.h

The header file is misnamed in the top line. This bug doesn't show up for Windows users because Windows is case-insensitive.

Also, he got some bit math wrong in demo2148_blink_flash.cmd

ram_isp_low(A)  : ORIGIN = 0x40000120, LENGTH = 223

should change to

ram_isp_low(A)  : ORIGIN = 0x40000120, LENGTH = 224

This bug won't affect the blinky LED demo, but it's better to correct it now before you start pushing RAM space limits.

The Makefile is created for the arm-elf toolchain, so you'll have to change the lines that start with "CC". Change the gcc compiler to "arm-linux-gnu-gcc" and the rest from "arm-elf-*" to "arm-linux-*".