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.

TMS570ls3137 CAN

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

DEAR TI,

                     I am using TMS570LS3137 HDK board,code composer 6,Halcogen 4.02.I did not understand why CAN has 64 message .What is the use of 64 differnet message with ID and Mask.pls guide

  • There are a lot of use cases for all the mailboxes. Foe example, you can initialize some of the mailboxes as FIFO-buffer to receive an Identifier multiple times. Or, you can use some of the mailboxes to listen for different Identifiers. Your question is too generic to be answered more in detail, it is more a general CAN question.
  • Hi,

    In simple terms, the CAN implements a mailbox system. You can write a message into the mailbox to transmit(and set the appropriate flags), and the CAN controller will read it and send the message over the bus. There are 64 mailboxes(aka. message objects) available on the TMS570LS3137 with unique IDs(and priorities). One of the advantages of having 64 mailboxes is that it reduces the waiting time. If only one mailbox was available, different tasks would be competing to get it. Receiving CAN messages is also done via mailboxes. The CAN controller loads the Rx messages into the assigned mailbox which can then be read by the application. Also, note that the mailboxes cannot be accessed directly; they can be accessed only via the CAN IF(interface) registers. You can find more information about this in the TRM.

    It is fine to use just one mailbox. This will probably be simpler and won’t affect performance too much(unless you’re sending CAN messages too frequently). You can try out some of the examples given in HALCoGen.

    Regards,

    Vineeth

     

  • Thank you Frank Borman.
  • Thank you vineeth for the detail explaination.