Using SRAM in LPCOpen

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

Using SRAM in LPCOpen

跳至解决方案
1,585 次查看
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 解答
1,458 次查看
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 回复数
1,459 次查看
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 项奖励
回复
1,458 次查看
vitaliylivnov
Contributor III

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

0 项奖励
回复