Hi team,
Here's an issue from the customer may need your help:
How does the DCAN change the length of the data when it is transmitted? CAN has a maximum frame size of 8 bytes and sometimes the data returned from the slave to the host is not necessarily eight as it might also be dynamic. So the customer would like to know how to modify this length when transmitting it?
If directly using the function can_sendMessage(UINT32_t base, UINT32_t objID, UINT16_t msgLen,const UINT16_t *msgData); the parameter msgLen does not work and even set the parameter to 6,the actual master receive length is still 8.
If using can_sendMessage_updateDLC(UINT32_t base, UINT32_t objID, UINT16_t msgLen,const UINT16_t.*MsgData; to transmit data, the host will report error with data exception.
Could you help check this case? Thanks.
Best Regards,
Cherry