WinArm + LPC2368

OP #1174456
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
Moderator #1174457
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/objcopy.html#objcopy
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

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.