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.

[参考译文] TMS570LC4357:无法从外部 CAN 助手接收数据消息

Guru**** 2451970 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1228983/tms570lc4357-unable-to-receive-a-data-message-from-an-outside-can-assistant

器件型号:TMS570LC4357

大家好、

硬件使用4357开发板、代码使用 HAL 库的 CAN 通信作为参考。 使用 CAN1上的 IF1来控制发送邮箱、使用 IF2来控制接收邮箱。 控制寄存器按如下设置来发送和接收扩展帧:

当使用反向查找模式测试时、接收功能可以从芯片本身接收数据、这表示硬件电路应该正常。 然而、当 CAN 引脚连接到外部 CAN 助手时、它只能将数据发送到 CAN 助手。 从 CAN 助手发送数据使代码在收到芯片时无法检测进入高速缓存区域的数据。 Node->NWDATx[regIndex]& bitIndex;始终为0,它将卡在检测数据到达的位置,从而使其无法进入 Getdata 函数。

下图显示了主要功能和检测数据到达:

下图显示了如何使用 CAN Assistant 来接收和发送数据:  

您能帮助检查这个问题吗? 谢谢。

此致、

樱桃