AnsweredAssumed Answered

How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?

Question asked by 泽乾 高 on Aug 13, 2018
Latest reply on Sep 13, 2018 by Yukun Wu

How to correctly configure CAN Rx Mailboxes Mask Register in MPC5748G?

 

I want to receive message with specific ID .For instance 0x000,0x111,0x222 and so on.

 

  • The can configuration is as follows:

  • The can_fifo_config is as follows:

can fifo config

  • I send message to my device from ID 0X000 to ID 0X7FF,while the device receives something that is not in my expectation.

As follows:


It seems that the mask highest bit is not in effect.

0 - 400:

0000 0000 0000

0100 0000 0000

 

44 - 444:

0000 0100 0100

0100 0100 0100

 

111 - 511:

0001 0001 0001

0101 0001 0001

 

Because of the RX FIFO,it is right that to configure the CAN_RXFGMASK as 0x1fffffff. [0:28]

However there are some mistakes in somewhere.

 

Then I force CAN_RXFGMASK to be configured as 0x3fffffff. It does work.

 

Is there some mistakes in my knowledge? 

where is mistake?Please inform me in detail .

 

 

 

regards.

Outcomes