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.

28377D调用一次can发送函数后,总线就关闭了,报错Last Error Code 111



上面是我debug时候看的寄存器状况,CAN_ES寄存器显示总线关闭并且报错111

这是我的main函数里的while

CANMessageSet(CANA_BASE, 1, &sTXCANMessage, MSG_OBJ_TYPE_TX); //data transmit function
GPIO_WritePin(151, 1);
delay_loop();
GPIO_WritePin(151, 0);
delay_loop();

初始化完之后查看各个寄存器都正确,第一次发送后,发送请求寄存器为1,意思就是有发送请求但是还未发送

过一会儿就累次错误次数达到255,总线就关闭了。

有人遇到过这种情况吗?   这是我用例程代码写的,会不会是我硬件错误?