eclipse and LPC2148

I’ve been trying to get eclipse to work with the LPC2148 and haven’t had any luck. I am starting with the Logomatic code. I would like to compile it and see it loaded and working before I go any further. I have eclipse Galileo with CDT and the ARM-gnu tool chain.

When I import the code I get errors. I am sure the biggest problem I have is the make file and the project properties. Any help would be appreciated. This is the error I get when I clean the project.

Description Resource Path Location Type

make: *** [Logomatic-V2/lib/fat16.o] Error 127 Logomatic-V2 line 0 C/C++ Problem

It would appear that I am missing some libraries. The error in fat16.c is a “Unresolved inclusion: <stdio.h>”, “Unresolved inclusion: <stdlib.h>”, and “Unresolved inclusion: <string.h>”. There will be more if I import just these files from some library.

I am trying to compile the Logomatic code from Sparkfun. Do I use something like newlib from GNU ARM? Or do I use the standard libraries with gcc. I set the eclipse project up like the Carrierwave tutorial. He loads in some libraries for the at91sam7 atmel chip in his tutorial. Are there similar libraries for the LPC2148? The Logomatic code comes with libraries but not the standard libraries apparently.The project I’m working on comes with LPC214x header files.

Any help would be appreciated and thanks in advance.

Try building it with WinARM.

Leon

leon_heller:
Try building it with WinARM.

Leon

I’m doing this on a Linux machine. It does appear to me that the problem is something in my setup of the eclipse project or the lack of libraries. I will check to see if my PATHs are correct.

I found my problem with the libraries. I reloaded Code Sorcery ARM. So that problem went away.

Now when I clean the project I get the following error.

Description Resource Path Location Type

make: *** No rule to make target main.elf', needed by all’. LPC2148 Project Template line 0 C/C++ Problem

Any ideas how to set the rules to make target?