Forum: ARM programming with GCC/GNU tools Makefile Example

Author: Rohan D. (rohan_d)
Posted on:
Attached files:

Rate this post
0 useful
not useful
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

Author: iopet (Guest)
Posted on:

Rate this post
0 useful
not useful
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" 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.


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]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.