[quote userid="638648" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1492730/tms320f28335-how-to-configure-ecan-mail-box-id-for-tms320f2833x/5766377#5766377"]But I don't have the function, you mentioned in your reply.[/quote] CAN_setupMessageObject() is a CAN API defined in can.c. [quote userid="638648" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1492730/tms320f28335-how-to-configure-ecan-mail-box-id-for-tms320f2833x/5766377#5766377"]Query 1: How to mask any sent message ID, so that it will go to one particular mail box only (which we select).[/quote] You can not mask the sent message ID. Each mailbox has one dedicated ID and a mask, which allows a designer to match all IDs that have desired bits set in the ID. Example: example 1 example 2 example 3 example 4 ID of mailbox 11b 001 0010 1111 11b 001 0010 1111 11b 001 0010 1111 11b 000 Mask of mailbox 11b 000 1111 1111 11b 000 1111 1111 11b 000 1110 1111 11b 111 1111 1111 ID of received MSG: 11b 001 0001 1111 11b 001 0010 1111 11b 001 0011 1111 Result not match Match match "0" in mask corresponds to a "Don't Care", and a 1 signifies that the bit must match the value of the ID or filter. Because the mask in your mailbox 1 is 0x7FFF, only the message match the ID of this mailbox (for example 0x1) can be stored in this mailbox. If the mask is 0x7FA (11b111 1111 1010), the received messages with ID=1,4, 5 will be stored in mailbox0 [quote userid="638648" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1492730/tms320f28335-how-to-configure-ecan-mail-box-id-for-tms320f2833x/5766377#5766377"]Query 2: Mail box0 and Mail Box4, both having same LAM, then how 1800000 is going to Mail box0 and 2000000 is going to Mail box4?[/quote] The message will be stored to the first matched mailbox (from mailbox 0 to mailbox n). [quote userid="638648" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1492730/tms320f28335-how-to-configure-ecan-mail-box-id-for-tms320f2833x/5766377#5766377"]query 3: I have all 13 Rx packets( 13 handlers) corresponding to 13 Rx mail box, but I need to create more Rx messages to different handlers. How to do that[/quote] You can use mask to group the received messages.
↧