Using SRAM in LPCOpen

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using SRAM in LPCOpen

Jump to solution
676 Views
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?

Labels (2)
0 Kudos
1 Solution
549 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
550 Views
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 Kudos
549 Views
vitaliylivnov
Contributor III

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

0 Kudos