MPC5748G RXIMR can receive multiple CAN id?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5748G RXIMR can receive multiple CAN id?

1,042 Views
Ada_Lovelace
Contributor IV

Hi,all

I have use the chip by CAN FD mode.

Then IRMQ = 1, I use RXIMR to receive id,  I want to receive 0x120~0x12F,

So I set the code:

    for(i=0;i<96;i++)
    {
        CAN_1.RXIMR[i].R = 0x1FFFFFFF;
    }

    CAN_1.MB[41].CS.B.IDE = 0;       
    CAN_1.MB[41].ID.B.ID_STD = 0x120;  
    
    CAN_1.RXIMR[41] = 0x3F0<<18;
   CAN_1.MB[41].CS.B.CODE = 4;     
 
But It can only receive 0x120, what shoule I change to sovle it?

 

0 Kudos
Reply
3 Replies

1,035 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

code looks fine, but do you really have IRMQ=1 and set RXIMR in Freeze mode?
You can check within debugger, when module is put in Freeze mode, a setting of the MB and RXIMR.

BR, Petr 

0 Kudos
Reply

1,022 Views
Ada_Lovelace
Contributor IV

Hi,Petr 

I debug the project, IRMQ=1,RXIMR[41]= 0xFC00000,

But when I send 0x122, flag could not be set.

 

 

Ada_Lovelace_0-1646181456307.pngAda_Lovelace_1-1646181493534.png

Ada_Lovelace_3-1646181668325.png

 

 

 

0 Kudos
Reply

1,010 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

for test, try to clear that RXIMR, does it receive all IDs?
Or share your project.

BR, Petr

0 Kudos
Reply