Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: at91sam9261 svc_stack
PostPosted: Wed Sep 08, 2010 4:01 pm 
Offline

Joined: Wed Feb 03, 2010 8:56 pm
Posts: 4
I inherited software from another developer and am hoping to resolve the msg I see: Tue Sep 07 15:34:08 2010: The stack pointer for stack 'SVC_STACK' (currently 0x204772E4) is outside the stack range (0x20194568 to 0x20194D68)

How do I get SVC_STACK pointing to the correct/valid range?

The icf file looks like:
/*-Memory Regions-*/
define symbol __ICFEDIT_region_XRAM_start__ = 0x20000000;
define symbol __ICFEDIT_region_XRAM_end__ = 0x21FFFFFF;
define symbol __ICFEDIT_region_IRAM_start__ = 0x00300044;
define symbol __ICFEDIT_region_IRAM_end__ = 0x00327FFF;

/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x800;
define symbol __ICFEDIT_size_svcstack__ = 0x800;
define symbol __ICFEDIT_size_irqstack__ = 0x200;
define symbol __ICFEDIT_size_fiqstack__ = 0x40;
define symbol __ICFEDIT_size_undstack__ = 0x40;
define symbol __ICFEDIT_size_abtstack__ = 0x40;
define symbol __ICFEDIT_size_heap__ = 0x800;
/**** End of ICF editor section. ###ICF###*/


define memory mem with size = 4G;
define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFEDIT_region_IRAM_end__];
define region XRAM_region = mem:[from __ICFEDIT_region_XRAM_start__ to __ICFEDIT_region_XRAM_end__];

define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };

initialize by copy { readwrite };
do not initialize { section .noinit };

place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

define symbol __ICFEDIT_intvec_remap_start__ = 0x00000000;
place at address mem:__ICFEDIT_intvec_remap_start__
{ readonly section .intvec_remap };

place in XRAM_region { readonly };
place in XRAM_region { readwrite,
block CSTACK,
block SVC_STACK,
block IRQ_STACK,
block FIQ_STACK,
block UND_STACK,
block ABT_STACK,
block HEAP };


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: