MPC5748G RXIMR can receive multiple CAN id?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5748G RXIMR can receive multiple CAN id?

795 次查看
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 项奖励
回复
3 回复数

788 次查看
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 项奖励
回复

775 次查看
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 项奖励
回复

763 次查看
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 项奖励
回复