re-configuring a project to use ext. flash, ext. RAM and SDRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

re-configuring a project to use ext. flash, ext. RAM and SDRAM

940 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dima2611 on Wed Feb 29 05:06:36 MST 2012
Hello,

I had no experience with ARM system, so I'm wondering how a LPCXpresso shoul be configured to use all thee memory locations wisely, it means in a predefined way.

I need a possibility to say "put this variable(s) into ext. RAM" or something.

I see there is a possibility to manage linker scripts.

Many thanks in advance.
/Dima
0 Kudos
Reply
4 Replies

932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dima2611 on Fri Mar 02 05:19:12 MST 2012
My reply is from Feb. 29 still not online. Why?
0 Kudos
Reply

932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dima2611 on Thu Mar 01 03:30:12 MST 2012
LPCXpresso is built on GCC, Eclipse etc.

So, I'm looking for a method to configure the usage of expernal memory in the LPCXpresso itself. And not at the low level of GCC linker that it uses. LPCXpresso manages linker scripts which get re-generated each time according to memory settings in C/C++ Build => MCU settings.

What you guys kindly propose is to go down to the command line level and start twicking preconfuged linker scripts after disabling their management by LPCExpresso. Does this bilt-in management of linker scripts make so little sense? Just wondering :)

Code Red describes what to tell LPCXpresso that there are some external memory available:
http://support.code-red-tech.com/CodeRedWiki/MemoryConfigEditing?action=AttachFile&do=get&target=Mem...

Now, I'd like to stay in the upper level in my C-code with my application and be able to set __attribute_ or something telling the precompiler how to deal with this part.

In short, I'm looking for a LPCXpresso project preconfigured for LPC1850 with external flash and external RAM.

Regards,
/Dima
0 Kudos
Reply

932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed Feb 29 12:47:33 MST 2012
Of course, the full documentation is also provided within the product...
Help->Help Contents
and look for linker

HTH
0 Kudos
Reply

932 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Wed Feb 29 10:29:34 MST 2012
LPCXpresso just uses GCC so this is all described in the GCC manuals.
There are numerous samples and descriptions available on the internet.

One way to start could be to check out the Secondary USB bootloader project for which NXP has an Application Note on the web.
Just have a look at the whole range of  support documents for the lpc1769 on NXP's website and look for "secondary usb bootloader".

I found the full documentation of the linker map files in about 5 seconds searching google with "gnu arm linker map file". But of course then you have to know what you are looking for ...

The full documentation of the tools can of course be found on gnuarm.com. The ld.pdf file describes the complets syntax of the linker files.

Regards,

Rob
0 Kudos
Reply