This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于IAR7.51A中的堆栈设置问题

Other Parts Discussed in Thread: CC2530

我现在使用TI的zstack开发CC2530F256,使用IAR7.51A的默认设置编译Sample中的Generic App工程后后生成的map文件中的  提示

                                   XSTACK   ISTACK    

 | Stack used (prev) :  0000126B 000001A6  

 01  strlen::?relay      

| Stack used (prev) :  0000126B 000001A6     

  | + function block  :  00000000 00000000  

<-Sub-tree of type: Function tree   

  | Stack used          :  0000126B 000001A6,

但IAR中的Option--General Options--Stack/Heap--Stack sizes中使用:IDATA:0xC0,PDATA:0x80; XDATA:0x300的设置,工程能够编译,按照经验,需要将IAR中的Stack空间设置的大于等于map中生成的stack占用量才能防止堆栈溢出,但如果按照map中的值设置,cc2530的大部分RAM都被Stack占用,整个工程将无法编译通过。请问map文件中的Stack何IAR中的Stack有何关系,TI的zstack是否对这个地方做了特殊的处理,谢谢。