[求助]:主程序中断 EnableInterrupts

- UID
- 147340
- 性别
- 男
|
[求助]:主程序中断 EnableInterrupts
工程做得是CAN通信的,主流程里面加入EnableInterrupts后,程序烧写到dj256中不能向上位机发送数据,但是,单步调试在CAN的发送寄存器中看得见正确的发送数据。如果删掉EnableInterrupts;后,程序烧写到片子后,只能一次运行,然后就断掉了,不能调试,可是数据能够发送到上位机中显示!
程序调试用的是Monitor下载!
盼高手指点!!! |
|
|
|
|
|
 
- UID
- 104380
- 性别
- 男
|
|
|
|
|
|

- UID
- 147340
- 性别
- 男
|
|
|
|
|
|
 
- UID
- 104380
- 性别
- 男
|
仔细检查一下是否有某个中断源,比如外部中断IRQ,一直在不停地产生中断。 |
|
|
|
|
|