MPC5634M FlexCAN Individual Rx Mask Register Can not write

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5634M FlexCAN Individual Rx Mask Register Can not write

772件の閲覧回数
413515651
Contributor I

 I do that:

CAN_A.MCR.B.MBFEN =1; //Use Individual Rx Mask Register

CAN_A.RXIMR[4].B.MI = 0x00001000;

but:CAN_A.RXIMR[4].R  is Always Read 0x00000000;

1.bmp

2.bmp

MPC5634M datasheet

3.bmp

0 件の賞賛
2 返答(返信)

543件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

The Individual Rx Mask Registers can only be accessed by the CPU while the module is in Freeze Mode and MBFEN is set. Out of Freeze Mode, write accesses are blocked and read accesses will return “all zeros”.

So be sure the FlexCAN is allowed to enter Freeze mode (MCR[FRZ] set) and Freeze mode is really entered once you break debugger (FRZACK and NOTRDY flags set).

BR, Petr

543件の閲覧回数
413515651
Contributor I

Thank you!! I solved it.

0 件の賞賛