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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
298 Views
xinhuan
Contributor I

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

xinhuan_0-1710153812417.pngxinhuan_1-1710153836701.png

 

波形如图所示:

xinhuan_2-1710154177572.png

xinhuan_3-1710154194050.png

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
278 Views
xinhuan
Contributor I

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

谢谢

View solution in original post

0 Kudos
Reply
2 Replies
285 Views
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 Kudos
Reply
279 Views
xinhuan
Contributor I

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

谢谢

0 Kudos
Reply