Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Executing Code From RAM

Executing Code From RAM

2005-06-25 by mhasson_alpha

Hello,

I'm evaluating the use of LPC2210 for our development.  One thing I 
couldn't get from the data sheet, is whether the LPC2210 could run out 
of RAM.  Does Anyone know if there are any issues such as vector table 
relocation restriction or any other issues?  In the past, I have used 
an MMU (on other Processors) to remap address 0 to another physical 
address, which would allow me to store the code anywhere in flash, load 
it (upon power up) into ram and execute out of ram.  This scheme allows 
us to:
1) gain execution speed.
2) utilize flash for code and nv data storage.
3) remote upgrade of the code (2 copies).

Any feedback is greatly appreciated!

Re: [lpc2000] Executing Code From RAM

2005-06-26 by 42Bastian Schick

mhasson_alpha

> I'm evaluating the use of LPC2210 for our development.  One thing I
> couldn't get from the data sheet, is whether the LPC2210 could run out
> of RAM.

For sure you can.

> Does Anyone know if there are any issues such as vector table
> relocation restriction or any other issues?

If you read the manual you'll see, that the vector table can be relocated 
from
flash to internal ram (and on the 22xx types AFAIK) to external flash (or 
CS0).


> 1) gain execution speed.
Internal Flash is AFAIK with MAM faster or at least as fast as external 
RAM .

> 2) utilize flash for code and nv data storage.
> 3) remote upgrade of the code (2 copies).

A customer of my companie does 2) and 3) on a 229x with success.

-- 
42Bastian Schick

Re: Executing Code From RAM

2005-06-27 by lpc2100_fan

Hi,

first of all executing from RAM definitely possible. Are you talking
internal or external RAM? 
If internal, that gives you max. speed, if external it is a little
slower and it needs to be SRAM (not SDRAM).
You might want to look at the latest LPC2220,
http://www.semiconductors.philips.com/pip/LPC2220FBD144.html
it runs up to 75 MHz and has 64K internal SRAM instead of 16k on the
LPC2210 and afaik pricing is a little higher but not much. 
This provides the option to have the code that needs to be fast such
as interrupt service routines or algorithms can be located in the
internal SRAM and other code such as uner interface or language
packages or..  can be in an external Flash. 

hth, Bob

--- In lpc2000@yahoogroups.com, "mhasson_alpha" <mhasson_alpha@y...>
wrote:
Show quoted textHide quoted text
> Hello,
> 
> I'm evaluating the use of LPC2210 for our development.  One thing I 
> couldn't get from the data sheet, is whether the LPC2210 could run out 
> of RAM.  Does Anyone know if there are any issues such as vector table 
> relocation restriction or any other issues?  In the past, I have used 
> an MMU (on other Processors) to remap address 0 to another physical 
> address, which would allow me to store the code anywhere in flash, load 
> it (upon power up) into ram and execute out of ram.  This scheme allows 
> us to:
> 1) gain execution speed.
> 2) utilize flash for code and nv data storage.
> 3) remote upgrade of the code (2 copies).
> 
> Any feedback is greatly appreciated!

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.