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.

关于C6670中断服务子程序无法给变量赋值问题?



如图,就是我在中服里面给一个变量赋值为1,主函数是一个等于0的死循环,收到中断置1就跳出循环,但是目前中服置1没有效果,打了断点单步跑过去还是没有效果??

  • 检查一下你的优化等级是不是开到了三级,如果优化等级到了三级可能会存在一定bug。另外检查一下该变量定义在什么空间上,是ddr3还是l2,如果是ddr3要注意cache一致性维护。把断点打在主函数里变量一直是零吗?