Using SRAM in LPCOpen

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using SRAM in LPCOpen

ソリューションへジャンプ
725件の閲覧回数
vitaliylivnov
Contributor III

Our project is written for the LPC4370 microcontroller using the LPCOpen library. We encountered the following problem: when compiling a project, only a block of 128 KB of RAM is available with a total memory of 282 KB. Please explain how we can use the remaining memory for the needs of global variables?

ラベル(2)
0 件の賞賛
1 解決策
598件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Vitaliy Livnov,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
It's freely for you place the global variables in the specific area in the RAM via managing the linker file.
To make it, I'd highly recommend you to review the corresponding IDE's user guide.
Have a great day,
TIC

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

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
599件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Vitaliy Livnov,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
It's freely for you place the global variables in the specific area in the RAM via managing the linker file.
To make it, I'd highly recommend you to review the corresponding IDE's user guide.
Have a great day,
TIC

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

0 件の賞賛
598件の閲覧回数
vitaliylivnov
Contributor III

Thank you. We used macro __BSS(RAMx) from <cr_section_macros.h> to place our data in different RAM banks.

0 件の賞賛