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.

RTOS/TMS320F280049C: How get CAN message identifier while receiving CAN with C2000ware

Part Number: TMS320F280049C
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: TI-RTOS

Hi,
I'm migrating F28075 to F280049C on custom project.
I used controlSUITE on F28075 project and I used CANMessageGet API when receiving CAN message.  CANMessageGet API returns CAN Message identifier and with data.
However. CAN driver was changed on C2000ware and CANMessageGet API does not supported. 
Instead I use CAN_readMessage API but it return only data field.
I need to know Message identifiers when receiving CAN message because I would like to setup Message Object which accept several type of message identifiers.
Are there API  on C2000ware and method to get the message identifier from Message Object ?
Best Regards,
JY

  • Hi Jae,

    You can setup the CAN Message Object using the CAN_setupMessageObject API. For eg. for Rx it will be something like CAN_setupMessageObject(CANA_BASE, RX_MSG_OBJ_ID, 0x95555555, CAN_MSG_FRAME_EXT, CAN_MSG_OBJ_TYPE_RX, 0, CAN_MSG_OBJ_RX_INT_ENABLE, MSG_DATA_LENGTH);

    You can refer to Examples for CAN for more clarity.

    What do you mean when you say get the message identifier from Message Object?
    If you want to get the value you have configured values then you have to mask and get it, it is not done in the API.

    Thanks and Regards
    Harshmeet
  • Hi Harshmeet,

    As I mentioned, I'm migrating custom project from F28075 to F280049C.
    On F28075 project(based on controlSUITE), I setup Message Objects with using none-zero of Message ID Mask field for receiving different CAN messages from several nodes.
    I can get message ID & Data with calling CANMessageGet API of controlSUITE so that I distinguished the messages by using the message ID.

    I would like to use the same method on previous project but I'm in trouble to read message ID when reading Message Objects which configured RX Can message.

    Best Regards,
    JY
  • I've decided to use the library of controlSUITE.

    BR

    JY