# Forum: ARM programming with GCC/GNU tools LPC-MT-2106 Newbie

 Author: Faisal Mirza (faisal) Posted on: 2008-07-31 12:25

Rate this post
 0 ▲ useful ▼ not useful
Hello,

I am new to WinARM. I need to experiment with LPC-MT-2106 EV Board from
Olimex and i have WinARM installed on XP. To be honest, i am completly
clueless now where to start? All i want to do, is to turn ON / OFF an
LED when i press / release one of the buttons on the evaluation board
from Olimex.

Is there any startup guide for beginners like myself for the WinARM?
Both C or Assembly will be OK with me. But i need to know which files go
where? How to Link / Compile and then make a hex file in WinARM
environment so that i can download it serially to the LPC-2106 inside
the Olimex board?

I know i sound like a real beginner to some of you out here. But i will
really appreciate if someone could give me a straight path from the very
beginning to the end to run the code on the Olimex board the way i
Editor to write the C / Assembly code etc.

Your help shall be highly appreciated.

Thank you,

Faisal.

 Author: Martin Thomas (mthomas) (Moderator) Posted on: 2008-08-09 14:25

Rate this post
 0 ▲ useful ▼ not useful
Faisal Mirza wrote:
> Hello,
>
> I am new to WinARM. I need to experiment with LPC-MT-2106 EV Board from
> Olimex and i have WinARM installed on XP. To be honest, i am completly
> clueless now where to start? All i want to do, is to turn ON / OFF an
> LED when i press / release one of the buttons on the evaluation board
> from Olimex.

WinARM comes with a few examples the LPC-P2106 board. It's simlar but no
the same. You may have to adapt the pin-number/bit-masks used for LED.
Sorry, I just own the LPC-P2106 so I can not provide tested examples for
the LPC-MT-2106.

Make sure the PATH environment variable has been extened correctly (see
readme), open the windows shell ("DOS-prompt"), change into the example
directory and type make all.

> Is there any startup guide for beginners like myself for the WinARM?

Search for Jim Lnych's LPC ARM tutorial.

> Both C or Assembly will be OK with me. But i need to know which files go
> where? How to Link / Compile and then make a hex file in WinARM
> environment so that i can download it serially to the LPC-2106 inside
> the Olimex board?

Take a look into the makefiles or the output from make all and you
should get an idea. WinARM comes with the tool lpc21isp to upload though
the LPC bootloader you can also use the old Philips isp-tool or
Flashmagic.

> I know i sound like a real beginner to some of you out here. But i will
> really appreciate if someone could give me a straight path from the very
> beginning to the end to run the code on the Olimex board the way i
> Editor to write the C / Assembly code etc.

WinARM comes with a simple editor named programmers notpad (pn.exe).
Start it, load an example, open the makefile and select tools/make all.
See what is done in the output-window. You will see the steps and
(hex).

• $formula (LaTeX syntax)$