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.

MSP430fr5969 堆栈溢出后看门狗失效

Other Parts Discussed in Thread: MSP430FR5969

我再msp430fr5969开发板上跑程序,设置P4.2上升沿中断,在中断函数中需要执行800us的时间,为了快速响应别的中断,我在本函数未执行完的时候清掉了中断标志位,并开启了总中断,结果出现了程序跑飞的情况。为了模拟这个现象,我用周期200us的方波接在P4.2上,在线调试,发现堆栈很快溢出,最开始的时候,程序跑飞后可以在main函数开始跑,可以一段时间后,程序彻底跑飞,进不了main函数。在IAR上点击“RESET”按钮也无法回到main函数。

程序在两个地方死循环,具体见附件

程序死循环图.docx

谢谢