EmbeddedRelated.com
Forums

Getting started with the LPC2468

Started by robb...@hotmail.com April 27, 2009
hi everyone,

i'm very new to this kind of ARM processor, since i'm used to the AVR environment. i have a few questions and i hope that you guys can help me.

how do i run the code that i have flashed on the LPC2468? i use Flash magic and for C building 'Multi', which is a IDE from greenhills.

Do i need startup.s code for this, and where can i find this? i have seen one in the keil examples, can i use that one?

The 4 leds are connected by I2C, do i need to control SCLK and SDA to let the LED up?

i'm getting pretty frustrated....:(

thanks for the help,

Robbin

An Engineer's Guide to the LPC2100 Series

Hi,

> hi everyone,
>
> i'm very new to this kind of ARM processor, since i'm used to the AVR
> environment. i have a few questions and i hope that you guys can help me.
>
> how do i run the code that i have flashed on the LPC2468? i use Flash
magic
> and for C building 'Multi', which is a IDE from greenhills.
>
> Do i need startup.s code for this, and where can i find this? i have seen
> one in the keil examples, can i use that one?
>
> The 4 leds are connected by I2C, do i need to control SCLK and SDA to let
> the LED up?
>
> i'm getting pretty frustrated....:(

Ask Greenhills under the terms of your MULTI support contract.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

Paul Curtis wrote:

> > how do i run the code that i have flashed on the LPC2468? i use Flash
> magic
> > and for C building 'Multi', which is a IDE from greenhills.

> Ask Greenhills under the terms of your MULTI support contract.

I'm assuming that you're assuming that this guy does not have
a real license for MULTI. It's so expensive that only a company
could afford one, and if he's working for a company then the
project he is on is horribly doomed.

I'm just assuming, of course.

Ralph
Hi Ralph,

> Paul Curtis wrote:
>
> > > how do i run the code that i have flashed on the LPC2468? i use Flash
> > magic
> > > and for C building 'Multi', which is a IDE from greenhills.
>
> > Ask Greenhills under the terms of your MULTI support contract.
>
> I'm assuming that you're assuming that this guy does not have
> a real license for MULTI.

Whether he has or hasn't, his first port of call should not be here, should
it?

> It's so expensive that only a company
> could afford one, and if he's working for a company then the
> project he is on is horribly doomed.
>
> I'm just assuming, of course.

Same here. But the advice stands: ask GHS for support on MULTI.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

--- In l..., "Paul Curtis" wrote:
>
> Hi Ralph,
>
> > Paul Curtis wrote:
> >
> > > > how do i run the code that i have flashed on the LPC2468? i use Flash
> > > magic
> > > > and for C building 'Multi', which is a IDE from greenhills.
> >
> > > Ask Greenhills under the terms of your MULTI support contract.
> >
> > I'm assuming that you're assuming that this guy does not have
> > a real license for MULTI.
>
> Whether he has or hasn't, his first port of call should not be here, should
> it?
>
> > It's so expensive that only a company
> > could afford one, and if he's working for a company then the
> > project he is on is horribly doomed.
> >
> > I'm just assuming, of course.
>
> Same here. But the advice stands: ask GHS for support on MULTI.
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>
There is at least one reason to ask for support here. Greenhills charges hills of green for support. From day 1, if you do not buy a support contract, no support, not even for 3 months although their tools are the most expensive to begin with. Not enough though, their support for microcontrollers with flash programming is pretty much non-existent. If this poor guy HAS TO use GHS for LPC2000 projects, my condolences.

Bob

Hi:

As mentioned by other people, Green Hills support for LPC2000 processors is not very good, specially newer parts like the LPC2300/2400, or Cortex-M3.

One initial recommendation would be to download either of other compilers (Keil, IAR, CrossWorks or other) and try one of their example code for the LPC2300/LPC2400 parts.

Which evaluation board are you using? Olimex, Embedded Artists? Or are you using your own developed hardware? I would recommend starting with a eval board, as it has been already tested, and code is available for them.

You do need a startup.s source code for your application to run.

Once you have a working code base, you might start the porting process to MULTI: changing registers names, header files, assembly code (startup.s), linking files, etc. This process might be more expensive (in terms of your engineering time) that acquiring one of the other compilers...

Regards,

Alex

--- In l..., robbinio57@... wrote:
>
> hi everyone,
>
> i'm very new to this kind of ARM processor, since i'm used to the AVR environment. i have a few questions and i hope that you guys can help me.
>
> how do i run the code that i have flashed on the LPC2468? i use Flash magic and for C building 'Multi', which is a IDE from greenhills.
>
> Do i need startup.s code for this, and where can i find this? i have seen one in the keil examples, can i use that one?
>
> The 4 leds are connected by I2C, do i need to control SCLK and SDA to let the LED up?
>
> i'm getting pretty frustrated....:(
>
> thanks for the help,
>
> Robbin
>

--- In l..., robbinio57@... wrote:
>
> hi everyone,
>
> i'm very new to this kind of ARM processor, since i'm used to the AVR environment. i have a few questions and i hope that you guys can help me.
>
> how do i run the code that i have flashed on the LPC2468? i use Flash magic and for C building 'Multi', which is a IDE from greenhills.
>
> Do i need startup.s code for this, and where can i find this? i have seen one in the keil examples, can i use that one?
>
> The 4 leds are connected by I2C, do i need to control SCLK and SDA to let the LED up?
>
> i'm getting pretty frustrated....:(
>
> thanks for the help,
>
> Robbin
>

As others have said, start with your IDE supplier. If you don't have a service contract, you have a huge problem. Unless you change toolchains...

It looks like you are starting from the very beginning and using a very advanced chip to do it.

One way to start, assuming you are using Windows (probably XP) is to simply install YAGARTO and all the related tools. Google for it. At least you can get going. I'll leave the licensing nightmare for others to debate. If you are using Linux, grab GNUARM. Follow the instructions here: http://openhardware.net/Embedded_ARM/Toolchain/ to build the toolchain. You might want to install Eclipse with CDT plugin under Linux to use with the GNUARM toolchain. Or not... Some people prefer other editors or even the command line and 'vi'. I'm not one of them.

Yes, you need startup.s (or whatever it is called) because you need to provide interrupt vectors, set up the stacks, clear .bss, initialize .data and branch to main().

Startup.s is fairly generic within a group of devices.

If you have the documentation for your toolchain, I would expect to find examples somewhere.

Richard

--- In l..., robbinio57@... wrote:
>
> hi everyone,
>
> i'm very new to this kind of ARM processor, since i'm used to the AVR environment. i have a few questions and i hope that you guys can help me.
>
> how do i run the code that i have flashed on the LPC2468? i use Flash magic and for C building 'Multi', which is a IDE from greenhills.
>
> Do i need startup.s code for this, and where can i find this? i have seen one in the keil examples, can i use that one?
>
> The 4 leds are connected by I2C, do i need to control SCLK and SDA to let the LED up?

I would like to know which line SCLK or SDA is connected to the ANODE or CATHODE of the LED.

don

>
> i'm getting pretty frustrated....:(
>
> thanks for the help,
>
> Robbin
>

Hi Paul,Ralph

> Same here. But the advice stands: ask GHS for support on MULTI.

Maybe he did and LPC2000 group his is fall-back ? Also only assuming :-)
--
42Bastian
------------------
Parts of this email are written with invisible ink.

Note: SPAM-only account, direct mail to bs42@...
--- In l..., 42Bastian wrote:
>
> Hi Paul,Ralph
>
> > Same here. But the advice stands: ask GHS for support on MULTI.
>
> Maybe he did and LPC2000 group his is fall-back ? Also only assuming :-)
>

If he did, and didn't get, or can't afford, adequate support from GHS,
then the best advice he could get here is what system he could use
instead. In that case we need to know the answer to more general
questions e.g. why he has chosen Multi, what his support budget is,
what his training budget is etc.

Chris Burrows
CFB Software
Armaide: LPC2000 ARM Development System
http://www.cfbsoftware.com/armaide