Makefile Example

OP #2232759
Hello ,

i m completly newbie to makefile , i want makefile example for flashing 
LED or any simplee program u can suggest . i m using lpc2148 uC 
Devlopment board . and WinARM GCC toolchain for creating HEX file on 
Windows Platform .

the makefile examples given in sample folder are just hard to understand 
me as i m newbie . i m attaching a sample program that is i had 
downloaded from website . it is showing error . that specified path cant 
find . when i look in to makefile i found that the code for programming 
a HEX file was wrote in to that .

cant i just create only HEX file and then program it using Flash utility 
?
if yes how ? what changes wiil i have make in "makefile" ?

the sample program attached contains C file and makefile .


dear moderator pls help me .

thanx and regards
Rohan
Attached files:
Guest
Hi,
You have two solutions:
a) check on WinARM/Yagarto sites for examples, there are some, including 
for your micro;
b) search the sf.net for    " GNU ARM C/C++ Development Support 
0.5.3.201010141144" which will easy your job. This is a plug-in for 
different tool chains, including WinARM and allows you to generate 
managed make projects - aka you will not need to write your makefile. 
Use this first, I hope you will enjoy it.
Regards,
Iopet

Reply

A question of your own? This thread is over 15 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.