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.

MSP430F5438 程序跑飞了...



我的5438在主函数初始化之后,一进入while(1)循环的第一句语句就会跑飞,仿真器显示PC指向000000。

现在已知情况是我把UART初始化函数注释掉就不会跑飞,但是UART之前分开调试的时候没有问题。

我尝试着把堆栈开大了一点,但是没有效果还是跑飞。

这种情况已经困扰我好久了,好几次都是两个不相关的程序模块加在一起,程序就会跑飞。

我用的是IAR 5.40,已经把优化全都关掉了。

请问这种情况有可能是什么问题?