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.

MSP430F5xxx 系列嵌入汇编 堆栈溢出

Other Parts Discussed in Thread: MSP430F5510

我在使用MSP430F5510的时候,有个子函数是用汇编编写的。但是会出现The stack 'Stack' is filled to 100% (160 bytes used out of 160). The warning threshold is set to 90.% 这个问题。我的主函数是

void main( void )

{                

   WDTCTL = WDTPW + WDTHOLD;           // Stop watchdog timer to prevent time out reset

   Flag = Flag | Fail_f | Low_Speed;

   TA0CTL = TASSEL_1 + ID_1 + TACLR;          //系统时钟2分频

   while(1)

   {

   if (Flag & Fail_f)                  //点火不成功

   CDI();

   }

}

CDI;          

             MOV.W   #0x4000,R4

             MOV.W   #0x4000,R5

        ret