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.
简单说是debugger不能控制MCU了或者程序跑飞了
原因有几个:
1.调试操作太快,debugger出现错误,失去了对MCU的控制,重来一次,慢一点操作就可以解决;
2.程序里面有illegal的操作,MCU跑飞了掉了;
3.程序里面有打开了的中断,但是没有中断服务函数,程序会不稳定而跑飞;
有时在程序中需要查询中断标志位,这时是不用开启该中断的,中断标志位还是会根据MCU的操作来置位或者清零