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.

TMS320F28335: eCAN message sending priority

Part Number: TMS320F28335


Hi All,

I have a question regarding the eCAN sending message priority.

Assume following scenario:

10 mailboxes a configured as output box. If their TRS bits are set at the same time, the message sending out sequence shall based on their tpl bits (if we are in the eCAN mode).  However, what will happen if their TRS bis are set one by one in a for loop?

I did a test myself, and see following:

By end of the for loop, non messages has been send out yet. So, all the TRS bits are still 1.  After that, the messages are send out randomly. The sequence are based neither on the order that the TRS bis are set, nor the TPL value.

Ideally, I thought it shall based on the TPL value. Because the TRS bits are set so fast, there is no difference comparing with setting them to 1 at the same time. The message in the mailboxes shall not go to buffer yet while all the TRS bits are set. So, when CPU decide which message shall go to the buffer, TPL value shall be used.

Any idea?

Thanks,

Shao