Other Parts Discussed in Thread: C2000WARE
Hello
Our customer reported the issue when reading the CAN msgID.
[1.Issue]
The data From 0x90 to 0x93 can be received because we set msgID=0x90U and msgIDMask=0xFFFCU. We tried to receive 0x91, but the result was 0x90.
Their implementation is as follows.
/* Implementatation */
CAN_setupMessageObject(CANA_BASE,
MailBox_NO1, /* MailBox_NO1 = 1 */
0x90U,
CAN_MSG_FRAME_STD,
CAN_MSG_OBJ_TYPE_RX,
0xFFFCU,
CAN_MSG_OBJ_RX_INT_ENABLE | CAN_MSG_OBJ_USE_ID_FILTER,
sizeof(unsigned char) * 8);
/* Judgement */
uint32_t check = 0; /* check means msgID */
check = HWREG(CANA_BASE + CAN_O_IF1ARB);
check &= CAN_IF1ARB_STD_ID_M;
check = check >> CAN_IF1ARB_STD_ID_S;
Are there any missing or wrong points here?
[2.Question]
If this issue will not solve shortly, they think they can get the correct result by chaning the C2000ware library itself. In that case, can TI release the C2000 library source code? If can , please let me how to get the license.
Regards,
A.Fujinaka