S32K144 can0发送数据异常,请帮忙指导下谢谢

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K144 can0发送数据异常,请帮忙指导下谢谢

跳至解决方案
347 次查看
xinhuan
Contributor I

在调试CAN0时,我将 PTB0 和PTB1配置为can0进行通信时,发送数据不正确

xinhuan_0-1710153812417.pngxinhuan_1-1710153836701.png

 

波形如图所示:

xinhuan_2-1710154177572.png

xinhuan_3-1710154194050.png

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
327 次查看
xinhuan
Contributor I

我找到了问题的解决方案,这个端口需要12v供电才能正常,

谢谢

在原帖中查看解决方案

0 项奖励
回复
2 回复数
334 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this is not data CAN frames, but sequence of error fames which lead to bus off condition. You can check ECR/ESR1 registers in debugger to know more.
Most probably connected CAN transceiver is not active or properly terminated. 
Without transceiver connected you can try to simply connect TX/RX together and see message transmitted still, due to missing ACK.

BR, Petr

0 项奖励
回复
328 次查看
xinhuan
Contributor I

我找到了问题的解决方案,这个端口需要12v供电才能正常,

谢谢

0 项奖励
回复