|ARM Technical Support Knowledge Articles|
Applies to: C166 C Compiler
Information in this article applies to:
I am using an Infineon XC16x device and I want to relocate the system stack from the Dual-Port RAM area 0xF600 - 0xFDFF to the Data SRAM area 0xC000 - 0xCFFF. Both are on-chip RAM areas. How can I do that?
The Infineon XC16x devices can address the system stack everywhere in the 16 Mbyte address range. The following information does not apply to Infineon C16x or ST10 devices.
In order to relocate the system stack to a different memory area, its memory class needs to be changed. This can be done in the START_V2.A66 startup code.
?C_SYSSTACK SECTION DATA PUBLIC 'IDATA'
Change memory class from IDATA to SDATA.
?C_SYSSTACK SECTION DATA PUBLIC 'SDATA'
Be sure to select Use On-chip XRAM (0xC000-0xCFFF) in the Options for Target - Target dialog or add the SDATA class range to your linker directives.
Article last edited on: 2005-06-02 03:49:05
Did you find this article helpful? Yes No
How can we improve this article?