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.

CCS/TMS570LC4357: canTransmit Assumes Every Message is 8 Bytes

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

It seems that the canTransmit function always transfers 8 bytes into the IF register regardless of the data length code configured in HalCoGen. Is this intentional? This does not seem like a good idea.

  • Hello,

    Yes, you are right. It always transfer 8 bytes data to the message object. If the data length code is less than 8 bytes, the remaining bytes of the message object is overwritten by undefined values.

    Only DLC bytes data are transmitted to the CAN bus.