Reply by beder84 June 28, 20072007-06-28
--- In l..., "rtstofer" wrote:
>
> --- In l..., "beder84" wrote:
> >
> > Hi!
> > I'm quite new to uC programming and hope you can help me.
> > I have been trying to download the Demo Blinky to the internal RAM of
> > LPC 2294 and execute it from there. I am using the Phytec Eval Board
> > along with Keil Vision 3 and the PHILIPS LPC2000 Flash Utility to
> > fill the RAM Buffer.
> > I tried to download the code to 0x40000200 and execute it from there
> > but nothing happens. the startup code was linked to 0x40000200.
> > Maybe there's something wrong with the memory mapping. Does anyone
> > have an example code, which can be downloaded to RAM and then executed
> > from there?
> > Thanks a lot
> >
> > Peter
> > Download James Lynch's tutorial from http://gnuarm.alexthegeek.com/
>
> The code is for an LPC2106 and LPC2148 but the principals are the
> same. Study the linker script carefully because subtle things have to
> happen to make this work. But, this is for running an entire app from
> RAM and only works for playing around.
>
> For IAP where you need to move the programming code to RAM and execute
> it to program the flash you have a different problem. See message
> 25620 for a discussion of placing code in RAM from flash and executing
> it. In fact, follow the entire thread.
>
> Richard
>

Thank you for your fast response and help.
The link you provided seems very promising.
Peter

An Engineer's Guide to the LPC2100 Series

Reply by rtstofer June 26, 20072007-06-26
--- In l..., "beder84" wrote:
>
> Hi!
> I'm quite new to uC programming and hope you can help me.
> I have been trying to download the Demo Blinky to the internal RAM of
> LPC 2294 and execute it from there. I am using the Phytec Eval Board
> along with Keil Vision 3 and the PHILIPS LPC2000 Flash Utility to
> fill the RAM Buffer.
> I tried to download the code to 0x40000200 and execute it from there
> but nothing happens. the startup code was linked to 0x40000200.
> Maybe there's something wrong with the memory mapping. Does anyone
> have an example code, which can be downloaded to RAM and then executed
> from there?
> Thanks a lot
>
> Peter
>

Download James Lynch's tutorial from http://gnuarm.alexthegeek.com/

The code is for an LPC2106 and LPC2148 but the principals are the
same. Study the linker script carefully because subtle things have to
happen to make this work. But, this is for running an entire app from
RAM and only works for playing around.

For IAP where you need to move the programming code to RAM and execute
it to program the flash you have a different problem. See message
25620 for a discussion of placing code in RAM from flash and executing
it. In fact, follow the entire thread.

Richard
Reply by beder84 June 26, 20072007-06-26
Hi!
I'm quite new to uC programming and hope you can help me.
I have been trying to download the Demo Blinky to the internal RAM of
LPC 2294 and execute it from there. I am using the Phytec Eval Board
along with Keil Vision 3 and the PHILIPS LPC2000 Flash Utility to
fill the RAM Buffer.
I tried to download the code to 0x40000200 and execute it from there
but nothing happens. the startup code was linked to 0x40000200.
Maybe there's something wrong with the memory mapping. Does anyone
have an example code, which can be downloaded to RAM and then executed
from there?
Thanks a lot

Peter