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.

TMS320F280049: How to deal with remote frame.

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

As in F28069 with ECAN, MSGID and RTR can be got easily.

But in the F280049 with DCAN is different.

How could I set my MSGID and RTR bit like F28069?

I need to deal with the remote frame in the next situations:

1、interrupt same as a data frame, and there is an RTR bit to indicate that a remote frame is received, and then I will answer the message with a data frame manually.

2、I need to trasmit an remote frame to slave node, how to deal with it. In TRM, just said 

27.11.2 Configuration of a Transmit Object for Remote Frames
It is not necessary to configure transmit objects for the transmission of remote frames. Setting TxRqst for
a receive object will cause the transmission of a remote frame with the same identifier as the data frame
for which this receive object is configured.

My main quetions are:

How to get/set a RTR bit? How to transmit a remote frame?

  • Hi Tao,

    Prior to transmission, you can set the message for a remote frame object type.  There is a support file in C2000Ware for the F280049 device to set up message objects.  The function is called CAN_setuoMessageObject(); Make sure to have the CAN_MsgObjType argument to CAN_MSG_OBJ_TYPE_RXTX_REMOTE, then send the message object.  This should initiate transmission of remote frame request to your slave node.

    Regards,

    Joseph