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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,712 次查看
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

标签 (1)
0 项奖励
回复
2 回复数

1,326 次查看
converse
Senior Contributor V
0 项奖励
回复

1,326 次查看
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 项奖励
回复