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.

TMS570 CAN message length and identifier

Other Parts Discussed in Thread: HALCOGEN

Hello,

I have a question about TMS570 - CAN. Is it possible to set for the CAN messages a different message length and identifier if they are sent by the same MessageBox? I can't find a method for change the ID and DLC.

Finally one more note: from HALCoGen (ver. 03.00.00) the DLC for CAN1/MessageBox5 (processor TMS570LS3137ZWT) is not generated correctly.

Thank You for your answer

Best regards

Istvan Szabo

  • Hello Istvan,

    Thank you for your post.  I have notified our HALCoGen and CAN expert of your post.  Given the timing, it may take a couple of days before he responds.

    Best Regards,

    Brian

  • Istvan ,

    Yes , it is possible to dynamically change the length and ID . Although the Halcogen doesn't provide any independent  API's to do the same.

    You can pick out the ID,DLC configuration routine from the can_init() routine and use it.

    You may have to stop the communication during this reconfiguration and take necessary care at the system level.

    Try this out and let me know if it works out well for you.

    I confirm that the DLC configuration isn't done correctly for mailbox 5.

    The MB 5 DLC configuration got incorrectly routed to MB 3 . Changing the MB3 DLC is changing the MB5 DLC.

    Regards, Pratip

     

  • Hello,

    thank You for Your answer/instructions. I prepared a new functions for dynamically change of the DLC and ID - it is working.

    Thank

    Istvan