Olimex Support Forum

ARM => NXP => Topic started by: Krafty on January 07, 2014, 10:36:35 AM

Title: LPC1227 Eclipse
Post by: Krafty on January 07, 2014, 10:36:35 AM
Hello,

I bought a LPC1227 and I got difficulties in programming on it.
I downloaded and installed the OpenOCD package from here: https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD/ (https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD/).

This package contains Java Runtime Environment, Eclipse, Zylin embedded CDT, Cygwin, Yagarto and OpenOCD. I got the version 9.0 rev K.

I wanted to use Eclipse IDE. I managed to create a new C project. I cannot build it, because I do not know what to put in the makefile. Moreover, are the basic C libraries (stdio.h, stdlib.h...) included in a C project? If not, how can I include them? (I do not think I really need them) Furthermore, how can I configure the debugger correctly?

It is the first time I use Eclipse, it would be great if someone could provide an Eclipse example project for LPC 1227 (there is only an example for IAR on https://www.olimex.com/Products/ARM/NXP/LPC-P1227/ (https://www.olimex.com/Products/ARM/NXP/LPC-P1227/)). It would answer my questions and would be helpful for a quick start.

Thanks in advance
Title: Re: LPC1227 Eclipse
Post by: JohnS on January 07, 2014, 12:09:29 PM
Which OS and which C compiler do you want to use?

BTW, There are Eclipse etc projects all over the net so the generic steps you ask for are widely available :)

John
Title: LPC1227 Eclipse
Post by: Krafty on January 07, 2014, 02:16:32 PM
Thank you for answering 

I am on Windows 7 and for the compiler, I do not mind.

I have spent a lot of time on the internet without finding something clear, that is why I asked for a demo project (as there is one for LPC-2378 for example). Just the blinky led example is sufficient. It would simplify the beginning of my project  :)
Title: Re: LPC1227 Eclipse
Post by: JohnS on January 07, 2014, 07:31:21 PM
Ay project has the same steps just play around with any Eclipse beginner's guide.

I use Linux which includes a C compiler.  I don't know what people use on Windows.

John
Title: LPC1227 Eclipse
Post by: Krafty on January 08, 2014, 10:27:53 AM
I am reading Eclipse doc
Title: LPC1227 Eclipse
Post by: Krafty on January 08, 2014, 02:26:43 PM
I finally managed to build my project. Now I need Linker script. Where can I find it for LPC 1227 (cortex M0) ?