| |||||
Technical Support Support Resources
Product Information | C166: RELOCATE SYSTEM STACK FROM IDATA TO SDATAInformation in this article applies to:
QUESTIONI 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? ANSWERThe 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 ALSOLast Reviewed: Thursday, June 02, 2005 | ||||
| |||||