AON-R5-FreeRTOS侧配置CAN0、TX2 Linux侧配置CAN1(ip link set can1 type can bitrate 500000 dbitrate 2000000 fd on)。
总线上只有TX2的CAN0、CAN1时:两侧均显示BUS ERR中断,无法互相接收&发送;
总线上挂载其它设备时:Linux侧的CAN1可以和其它设备正常通信,R5侧的CAN0控制器连续报BUS ERR中断;
FAQ:是否有验证过这种方式的通讯模式,或者其它非TX2平台是否可用?
其它补充:
基于最新SDK包(Jetson Linux R32.7.1)里的Free RTOS Sources 也试过了,效果一样;
目前看R5只能解析自己发出去的帧,无法和任何CAN设备通讯;
RM文档(Tegra X2 Series SoC Technical Reference Manual)只有部分的寄存器定义,无法进一步调试,是否可以提供一下全寄存器版的RM文档,帮助支持我们自查问题。
Have you ever confirmed that the correct package can be received in one end?
使用示波器测量CAN速率是500K,但是波形、帧格式比较奇怪,大部分帧无法识别。
Can you share the waveform? Wrong clock, or bad quality?
Sure, CAN module in TX2 module is used widely, and we do not get any complaints about compatible issues. Most problems are from configurations and clocks.
是否可以提供一下全寄存器版的RM文档,帮助支持我们自查问题。
You can take a look at TX2 TRM, which provided detailed information about CAN module used in TX2.
Hello,
From the waveform, I cannot see difference between ‘good’ and ‘bad’ cases. So, I think the basic configurations should be good.
Maybe there’re some other configs which are missed in SPE, like sample point?
You can check the MTTCAN registers and compare the settings in ‘good’ and ‘bad’ case.