EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

ARM Cross dev. with LPC2294

Started by wzzxo December 27, 2005
Hello,

I'm having trouble using an LPC2294 with the gnu tools.
My board is an LPC-H2294 from Olimex, and I'm trying to follow the
tutorial "ARM Cross Development with Eclipse" from James P. Lynch.
As there are some differences between the LPC2106 board used in the
tutorial and mine, I did the following changes in the
demo2106_blink_flash project :

- in main, I set PINSEL1 = 0x00000000, as my LED is connected to
P0.30, which is not a GPIO by default, and I set IO0DIR and
(alternatively) IO0SET and IO0CLR with 0x40000000 to toggle the pin.

- in linker script demo2106_blink_flash.cmd, I changed the flash size
to 256K

- startup code crt.s and all other files are identical

This compiles without problems, but nothing seems to work. Did I miss
something in the differences between 2106 and 2294?

On the other hand, I know that the board is working : it was delivered
with an embedded software that blinks the led, and this one works OK.
I dumped it before to erase the internal flash, and uploaded it back
after my unsuccessful tests.

Help is apreciated before I become crazy ;-)

Ennio



An Engineer's Guide to the LPC2100 Series

wzzxo wrote:

>Hello,
>
>I'm having trouble using an LPC2294 with the gnu tools.
>My board is an LPC-H2294 from Olimex, and I'm trying to follow the
>tutorial "ARM Cross Development with Eclipse" from James P. Lynch.
>As there are some differences between the LPC2106 board used in the
>tutorial and mine, I did the following changes in the
>demo2106_blink_flash project : >
There has been mention of Olimex documentation not matching the boards.
Others have seen the documentation + schematic show that LEDs are on one
pin but are actually on another on the board.

Perhaps you could check the schematic they gave you to verify that the
pin they say is connected to the LED actually goes to the LED. Never:
AssUMe.

TomW
--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------


--- In lpc2000@lpc2..., Tom Walsh <tom@o...> wrote:
>
> wzzxo wrote:
>
> >Hello,
> >
> >I'm having trouble using an LPC2294 with the gnu tools.
> >My board is an LPC-H2294 from Olimex, and I'm trying to follow the
> >tutorial "ARM Cross Development with Eclipse" from James P. Lynch.
> >As there are some differences between the LPC2106 board used in
the
> >tutorial and mine, I did the following changes in the
> >demo2106_blink_flash project :
> >
> >
> >
> There has been mention of Olimex documentation not matching the
boards.
> Others have seen the documentation + schematic show that LEDs are
on one
> pin but are actually on another on the board.
>
> Perhaps you could check the schematic they gave you to verify that
the
> pin they say is connected to the LED actually goes to the LED.
Never:
> AssUMe.
>
> TomW >
> --
> Tom Walsh - WN3L - Embedded Systems Consultant
> http://openhardware.net, http://cyberiansoftware.com
> "Windows? No thanks, I have work to do..."
> ----------------
>

Good point! I'm one of the ones that mentioned the problem re: the
LPC2106. The paper schematic is wrong but the silkscreen on the
board is correct.

Richard


--- In lpc2000@lpc2..., "wzzxo" <wzzxo@y...> wrote:
>
> Hello,
>
> I'm having trouble using an LPC2294 with the gnu tools.
> My board is an LPC-H2294 from Olimex, and I'm trying to follow the
> tutorial "ARM Cross Development with Eclipse" from James P. Lynch.
> As there are some differences between the LPC2106 board used in the
> tutorial and mine, I did the following changes in the
> demo2106_blink_flash project :
>
> - in main, I set PINSEL1 = 0x00000000, as my LED is connected to
> P0.30, which is not a GPIO by default, and I set IO0DIR and
> (alternatively) IO0SET and IO0CLR with 0x40000000 to toggle the
pin.
>
> - in linker script demo2106_blink_flash.cmd, I changed the flash
size
> to 256K
>
> - startup code crt.s and all other files are identical
>
> This compiles without problems, but nothing seems to work. Did I
miss
> something in the differences between 2106 and 2294?
>
> On the other hand, I know that the board is working : it was
delivered
> with an embedded software that blinks the led, and this one works
OK.
> I dumped it before to erase the internal flash, and uploaded it
back
> after my unsuccessful tests.
>
> Help is apreciated before I become crazy ;-)
>
> Ennio
Hello Ennio,

I'm using same board and (fine) tutorial that helped me on my way.
The only thing you should still change is the RAM size (in the .cmd)
which is (only) 16K for the LPC2294.
It 'll work, you'll see.

Cheers, Eelco


--- In lpc2000@lpc2..., "dvnstn" <dvnstn@y...> wrote:
>
> The only thing you should still change is the RAM size (in the .cmd)
> which is (only) 16K for the LPC2294.

Hello Eelco,

Thank you for the advice, this was actually the problem.
I don't know why, but I was sure the LPC2294 had as much RAM as the
LPC2106.

Ennio



The 2024 Embedded Online Conference