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.

IAR Debug暂停后,跳不出中断

Other Parts Discussed in Thread: MSP430F5310

1)正常运行挺好,就是不能暂停,没法调试。

2)暂停后,老在两个时钟中断函数中运行,不能回到主函数。

3)主函数while的结束,用了LPM3, 就不能暂停了。如果不用LPM3,调试正常,暂停后可以回到主函数。

4)main函数第一句,关看门狗: WDTCTL = WDTPW + WDTHOLD;  应该不是看门狗的问题。

5)程序中有两个时钟中断,TA0 是1ms一次中断,是个毫秒的计数器:tim_num++;TB0是1秒一次中断,退出休眠:LPM3_EXIT

6)芯片: msp430f5310, 自己设计的板子。

  IAR 5.40, 软件中的Product Info 是 “IAR Embedded Workbench Common components, version: 6.3.11.2079”

  电脑是:Window XP

7)目前是测试阶段,我用这个芯片1年了。

8)怀疑: IAR bug,也可能是进中断后,把返回的地址覆盖了。也可能是暂停后TA0没停,所以老是不停的中断。