Linking all three internal RAM blocks on LPC1857FET256

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

Linking all three internal RAM blocks on LPC1857FET256

591 次查看
jean-riegardtva
Contributor I

Hello

 

I am using the LPC1857FET256 for my project and the datasheet states that it has 136kB for internal SRAM divided into three blocks. One is 64kB, another 32kB and another 40kB. My program is currently running on the 64kB block but I am bordering on the edge of that block and every time I add some code I have to move some variables to external SD Ram because I run out of memory. I can address the other two blocks with a pragma, but this becomes a tedious process to do for each variable, as my project consists of many files. Is there any way I can tel the linker to automatically link up all three these blocks and use them together as one big default block? I have attached the ICF file.

 

Thank you

JR

Original Attachment has been moved to: ICF-file.zip

0 项奖励
回复
1 回复

485 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Jean-Riegardt van Staden,

    You can refer to the lpcopen code lcf file.

   Define the SRAM region, then define it together in one range:

pastedImage_1.png

pastedImage_2.png

I also attached the icf file for your reference.

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复