# Forum: ARM programming with GCC/GNU tools WinArm + LPC2368

 Author: Stanko Nedic (stan1987) Posted on: 2008-10-22 02:15

Rate this post
 0 ▲ useful ▼ not useful
Hi all,

I was trying to compile an application for the LPC2368 and create a
binary however I'm missing a makefile that could help me do this. Is
there a way to download a makefile for LPC2368 somewhere?

Also, I'm new to the whole makefile thing and I've had a look at one of
the provided makefiles with a WinArm example where output file can be
chosen as .hex, .bin, etc. Does this mean I can create a bin file by
simply modifying that line of the makefile if my default LPC2368
makefile (when I find one) creates a hex for example?

I'd appreciate any help :-)

Regards,

Stan

 Author: Martin Thomas (mthomas) (Moderator) Posted on: 2008-10-22 13:08

Rate this post
 0 ▲ useful ▼ not useful
Stanko Nedic wrote:
> Hi all,
>
> I was trying to compile an application for the LPC2368 and create a
> binary however I'm missing a makefile that could help me do this. Is
> there a way to download a makefile for LPC2368 somewhere?
> Also, I'm new to the whole makefile thing and I've had a look at one of
> the provided makefiles with a WinArm example where output file can be
> chosen as .hex, .bin, etc. Does this mean I can create a bin file by
> simply modifying that line of the makefile if my default LPC2368
> makefile (when I find one) creates a hex for example?

Yes, the option in at the beginning of the makefile is just used to
select a parameter to objcopy. See here for further information:
http://sourceware.org/binutils/docs-2.18/binutils/...
There is no magic in this, just read a little bit and you will
understand. This is not related to a specific controller(LPC23xx).

In some of the newer examples I have implemented an option "both" in the
makefile which just leads to two calls of objcopy to generate Intel-Hex
(".hex") and raw-binary (".bin") from the elf-file.

### Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

### Rules — please read before posting

• Post long source code as attachment, not in the text
• Posting advertisements is forbidden.

### Formatting options

• [c]C code[/c]
• [avrasm]AVR assembler code[/avrasm]
• [code]code in other languages, ASCII drawings[/code]
• $formula (LaTeX syntax)$
 Name: E-mail address (not visible): Subject: Searching for similar topics... Attachment: Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one. Text: