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:DCAN 文档中有错误? 是否可以在运行时更新 ID?

Guru**** 2473260 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1054794/tms570lc4357-error-in-dcan-documentation-id-update-during-runtime-possible

器件型号:TMS570LC4357

我注意到在运行时、我可以更新接收对象的 ID、而无需操作 MsgVal。 这似乎与手册中列出的内容相反:

27.7.6重新配置报文对象以接收帧
Dir =‘0’的报文对象配置为接收数据帧,Dir =‘1’和 UMASK =
‘1’和 RmtEn =‘0’配置为接收远程帧。


在更改以下任何配置和控件之前、有必要将 MsgVal 复位为无效
位:ID[28:0]、XTD、Dir、DLC[3:0]、RxIE、 TxIE、RmtEn、EOB、UMASK、MSK[28:0]、 MXtd 和 MDir。


报文对象的这些部分可以在不清除 MsgVal 的情况下进行更改:DATA[7:0]、TxRqst、NewDat、
MsgLst 和 IntPnd

链接至一个相关问题、该问题表示可以、这与我看到的内容一致

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1026619/tms570lc4357-how-to-update-can-id-during-run-time/3795218?tisearch=e2e-sitesearch

我担心在更改 ID 之前不会停用消息框,可能会引入错误行为。 请确认文档中是否有错误。

此致、

-Craig

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

    您好、Craig、

    感谢您指出这一点。 在更改报文对象的 ID 之前、有必要重置 MsgVal。 应该更新 canUpdateID()。