Forum: ARM programming with GCC/GNU tools LPC-P2148 Development board + Eclipse - need proper Makefile and democode

von Jan z. (Company: Ondrik-soft) (janzondrikovic)

Rate this post
0 useful
not useful
Hi guys, Iam a brand new in microcontroller world and Iam looking for 
someone who can help me to find demo code, which will preserve a 
communication with LPC-P2148 development board via UART. I have a RS232 
USB converter and I want to upload hex files via UART but I cant find 
useful Eclipse Makefile (which shoud include settings like: com, port, 
baud rate, ram, rom). Does anybody have the starting project with this 
makefile to me? Thx, Jan.

von Oliver (Guest)

Rate this post
0 useful
not useful
Loading hex-Files via uart requires the presence of a bootloader in the 
Controller. If there is no bootloader pre-flashed from the board 
manufacturer, you will need a JTAG programmer to program the controller. 
If there exists a bootloader, the best source to find further 
information on this will be the documentation of your specific board.


von Jan z. (Company: Ondrik-soft) (janzondrikovic)

Rate this post
0 useful
not useful
Hi Oliver, thank you for you answer. I split together two makefiles and 
now I am able to upload data to my board via software called LPC21isp, 
so Iam glad i made run my demo code. Next step is to make run a timer. I 
know it is hard. I need timer to run, I mean to count in real second. 
Does anybody know how to make it? Respectively, how to set timer 
registers to count in seconds. Thanks, Jan.


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.