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: Is it possible to import CAN message format into HALCoGen from a .dbc file

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello,

I would like to be able to import my CAN message list (as dbc, or csv) into HALCoGen, and have all the canMESSAGEBOXx IDs populated for each CAN Channel. Is this possible?

If I decide to swap my CAN1 and CAN3 nodes at the transceiver/physical layer, I want to be able to reassign/copy my CAN1 config to the CAN3 config, and vice versa. Is this possible?

Thank You

  • Hello,
    I will move this post to the Hercules forum. The experts there can help you best.

    Thanks
    ki
  • Hello Joseph,

    HALCoGen cannot import anything from external files like this. However, you could manually update the .hcg and .dil files to copy the configuration information from CAN1 to CAN3 or vice versa. The easiest way to do this is to a global swap of items labeled as CAN_1_ and those labeled CAN_2_. Once done and you re-open the project, the former message object definitions from CAN1 will be in CAN2 and those from CAN2 will be in CAN1. I did a quick check on this and it seemed to work but proceed with caution and make sure you back up your original project.
  • Hello Chuck,

    Thanks for looking into this.

    I was hoping there was something like this available, but it seems the dil file is quite chaotic; each selection item has its own line input, but there is no organization to it.

    I am sorting it in excel, parsing it, and updating it, and smashing it all back together. I'll definitely make backups before attempting!

    Incidentally, I have 41 distinct messages I am receiving on CAN1, and then transmitting onto CAN2.

    I also have 37 distinct messages I am receiving on CAN2, and then transmitting on CAN1.

    Some of the messages are 1sec period, while others are 10ms or 20ms cyclic messages.

    Is there a way to easily send and receive this many messages using just CAN1/CAN2 and their respective canMESSAGE_BOXn-64? or do I need to keep a separate tracking function operational for the low frequency messages?

    Is there an example or guide that shows how to receive messages with any ID into a range of CAN message boxes?

    I can set aside a group of message boxes dedicated to the high criticality messages, and then I'd like to use a smaller set of message boxes to receive CAN frames with a range of IDs between 400-600.

    Is it possible to set a message box to receive any can frame as long as the mask bits pass?

    Also, is there a simple example for changing the ID & Data in a message box and sending it out for transmission?

    Thanks for the guidance, I'll let you know if the excel swap was successful.