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: Configuring & using CAN RTR frames, using HalCoGen

Expert 2095 points

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

I'm trying to configure the board to receive  CAN read request (Remote Frame Request, RTR).   And I'm not sure how to properly set it up.

1.  For a message box,  is it supposed to be configured in TX or RX mode, with RTR set? 
I observe here, is that if I set it to RX & RTR on, then  when host sends an RTR request, then no frame /callback is received by the device. Same ID without RTR gets received fine, by same message box.

If  message box is in TX  & RTR on, then an RTR frame is received,  but, as soon as my device receives it and sends first reply it never stops - just keeps continuously looping/sending non stop same reply.

2.  Does ID mask work when RTR is enabled?  I was using a range of ID's for this same message box, to receive CAN frames. Now, if I have this message box set as TX with RTR on, then I have seems trouble getting proper request ID from received message into the CAN box : i get the ID configured into HalCoGen message box , not the actual request ID from frame.

3.  When I send reply back, on RTR request,  same issue with ID : the message ID is not equal to ID of the RTR request, it's the ID of the configured message box before the mask  ;  The message box is configured to grab range of ID's, not just one ..

So how to set this up properly?  I also would like to keep one  message box to handle RTR and normal frames for the same range of CAN IDs. Is that possible, I'm not sure here.