Content originally posted in LPCWare by Pacman on Tue Aug 27 14:17:37 MST 2013
Hi amlwwalker.
I too came from the AVR. I had a lot of trouble when I moved to SAM7, and couldn't get it to work for 2 years; noone wanted to help me at the official forum for that stuff.
Eventually I got it to work, but it was so complicated with all those things I had to turn on before a timer would finally work.
After that I found NXP's Cortex-M based microcontrollers, and things started to get a lot easier.
First of all, I compiled my own toolchains and built OpenOCD as well.
This was a hazzle, as I'm using a PowerPC based Mac. It's no problem compiling for intel, but PPC is a bit more difficult to get a correctly compiled toolchain.
Next thing was that I didn't have the header files I needed, nor did I have libraries, so I started pulling things from Olimex's site and after some time I learned about sw.lpcware.com, where I downloaded the examples for my LPC1768.
I still had problems, because I couldn't use the Makefiles provided. I rolled my own; it took some time, and I got it working.
If you're using LPC176x/LPC175x, I might be able to send you an example you could try out using a GNU toolchain.
If you're using some other LPC microcontroller, please let me know which one, and I may be able to create a project (I can't promise, though).
Love
Jens