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.
我遇到了一个奇怪的断点问题:在lab1中,如果我在mainISR()中设置了断点,代码就会停止,但是,如果我在lab2中执行相同的操作,代码就不会在该点停止。 main()函数内的断点 在两个实验中都按预期工作。 在马达运行时,lab2中的代码确实会进入中断例程。 这是正常现象还是我的代码/设置有任何问题?
谢谢Sean,
如果我评论一下,我就会发现这一点
#ifdef闪存
#pragma code_section (mainISR,"ramfuncs");
#endif
在任何instaspin项目中的以上行(Lab1没有这些行,但其他行有),调试工作如预期的那样,您是否可以猜测需要注释掉这些行的任何可能原因?