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 件の賞賛
返信