TI E2E Community
TI C/C++ Compiler
TI C/C++ Compiler - Forum
How to place a variable in a custom memory section using linker .cmd file?
I have created a memory section called .myvar in ARM IRAM and would like to place a variable there using the linker .cmd file. However, I can't find the instructions for doing this in the ARM Compiler User Guide (SPNU151F). Can someone point me in the right direction?
Take a look at Section 5.9.5 "The DATA_SECTION Pragma" which describes how to assign a variable to the named section.
Perfect! Many thanks.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.