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.

TMS470MF06607: Message id and Mask of DCAN -- I want to send and receive all the messages

Part Number: TMS470MF06607
Other Parts Discussed in Thread: HALCOGEN

Hello,

Am trying to develop a CAN sniffer using the hercules board. For that I want to configure a perticular message box to recieve all the messages and transmit all the messages. How do I do this? What is the effective way to use all the available message box for this purpose? I am trying to sniff an extended ID (29 bit)

Regards,

Shankar

  • Here is what I suggest:

    Start with a HalCoGen project (HalCoGen intends DCAN to use unique Message Boxes for various DLC and ID, but there are user code changes that can be made).

    Create two Message Boxes (one for TX with DLC:0 and on for RX with DLC:8 and Mask:0) with extended ID (since Ext-ID is what you want).

    When you transmit, modify the DLC and CAN-ID to the values you want before the call to canTransmit.

    For RX, in canNotification, call canIsRxMessageArrived and test for DLC value and CAN-ID after calling canGetData.

  • Dear Parker,

    Thanks a lot for the lead. I will test this and verify the answer. Thanks again.

    Regards,
    Shankar