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

 Author: Stanko N. (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

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 T. (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
> 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.

• $formula (LaTeX syntax)$