Part Number:TMS570LC4357
/使用canUpdateID函数更新ID后,发送的数据帧变成远程帧了,我不知道原因,
//msgBoxArbitVal传过来的是0XA1300000
void canUpdateID(canBASE_t *node, uint32 messageBox, uint32 msgBoxArbitVal)
{
/** – Wait until IF2 is ready for use */
while ((node->IF2STAT & 0x80U) ==0x80U)
{
} /* Wait */
/** – Configure IF2 for
* – Message direction – Read
* – Data Read
* – Clears NewDat bit in the message object.
*/
node->IF2CMD = 0xA0U;
/* Copy passed value into the arbitration register. */
node->IF2ARB &= 0x80000000U;
node->IF2ARB |= (msgBoxArbitVal & 0x7FFFFFFFU);
/** – Update message box number. */
/*SAFETYMCUSW 93 S MR: 6.1,6.2,10.1,10.2,10.3,10.4 <APPROVED> "LDRA Tool issue" */
node->IF2NO = (uint8) messageBox;
/** – Wait until data are copied into IF2 */
while ((node->IF2STAT & 0x80U) ==0x80U)
{
} /* Wait */
}
Green Deng:
你好,这个问题已经有工程师去沟通了,但是因为是与美国工程师沟通,有时差等等因素的关系回复会比较晚。今天应该能回复你,还请留意这个帖子的工程师回复:
e2echina.ti.com/…/tms570lc4357-canupdateid-id