ARM Technical Support Knowledge Articles

RELOCATE SYSTEM STACK FROM IDATA TO SDATA

Applies to: C166 C Compiler

Answer


Information in this article applies to:


QUESTION

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?

ANSWER

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.

Original line:

?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.

SEE ALSO

Article last edited on: 2005-06-02 03:49:05

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential