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.

TMS570LC4357: How to transmit CAN messages with DLC less than 8 bytes using Halcogen generated CAN drivers ?

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

I'm working on testing of CAN transmission & reception of TMS570LC4357 & drivers are generated using Halcogen software.

But in HL_can.c file the function canTransmit seems to be transmitting 8 bytes of data every time irrespective of the DLC.

Below is the snap of the same.

Que 1: So how to transmit CAN messages with DLC less than 8 bytes ?

Que 2: In halcogen software, there is provision to set DLC of the message box, but if I don't  want to change the DLC from halcogen is there any API to do so?

Please help!