Need to declare variables in external SDRAM as well in the internal RAM.

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

Need to declare variables in external SDRAM as well in the internal RAM.

916 Views
billbrown
Contributor I

I am using an LPC2468 processor with external SDRAM starting at address 0xa000000 in addition to the the processors built in RAM.  I am using Kiel uVision.  I need to define variables in both address spaces.  

Do I need to define each variable using the __attribute__ modifier?  If so, how?

Is there a way to say, from here until I say otherwise use this memory space or the other ?  Or does each variable need its own qualifier?  

I have played with the scatter allocation file but looking at the map file variables are still allocated in unexpected places/

Thanks

Labels (1)
0 Kudos
2 Replies

530 Views
converse
Senior Contributor V
0 Kudos

530 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Bill,

You could take a look at the following links, which seems to be related to what are you trying:

https://www.lpcware.com/content/forum/allocating-dynamic-memory-external-sdram

https://www.lpcware.com/content/forum/could-i-use-extern-sdram-ram

https://community.nxp.com/thread/429937


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos