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.

[参考译文] TMS570LS1227:消息目标的重新配置

Guru**** 2383590 points
Other Parts Discussed in Thread: TMS570LS1227, HALCOGEN
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1171882/tms570ls1227-reconfiguration-of-message-objects

器件型号:TMS570LS1227
主题中讨论的其他器件: HALCOGEN

您好!

我正在处理 TMS570LS1227的 CAN 通信。

根据数据表、仲裁寄存器的 MsgVal 位需要在对报文对象进行更改之前被复位为无效。

下面是相同的快照。

halcogen 生成的 canInit()函数将所有消息对象设置为有效。

现在,我正在使用 halcogen 生成的 canUpdateID() API 来更新 ID。

但坎 UpdateID API 似乎没有 将 MsgVal 位设置为无效,它保持仲裁寄存器第31位的先前状态,即有效(由坎尼特的 halcogen 设置)。

那么、在使用 canUpdateID API 之前、是否每次都需要将 MsgVal 位设置为对相应的消息框无效?

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

    您好 Harshal、

    [引用 userid="516661" URL"~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1171882/tms570ls1227-reconfiguration-of-message-objects ]在使用 canUpdateID API 之前,我是否每次都需要将 MsgVal 位设置为对相应的消息框无效?

    是的。  如果要更改消息对象的 ID 以动态接收数据、则应首先重置 MSGVAL、然后在 ID 更改后进行设置。 MSGVAL 复位后、报文处理器将忽略此报文对象。