I got the following project file according to the NXP official canfd example, but when I used FLEXCAN0_transmit_msg, there were many zeros in the end, could you please tell me whether I sent the 8-bit length? How does it display 64 bits at the receiving terminal?
Solved! Go to Solution.
Hi,
use CAN0->RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC400000 | 8 << CAN_WMBn_CS_DLC_SHIFT;
or simply write
CAN0->RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC480000;
BR, Petr
Hi,
use CAN0->RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC400000 | 8 << CAN_WMBn_CS_DLC_SHIFT;
or simply write
CAN0->RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC480000;
BR, Petr
Thank you very much,your answer solved my puzzle
does any bro can help me? Thanks
CAN0->RAMn[ 0*MSG_BUF_SIZE + 0] = 0xCC4F0000 | 8 << CAN_WMBn_CS_DLC_SHIFT;
It seems that DLC =8 doesn't work at all, and received length remains 64 。