Bus fault reading RXIMR on RT1064

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

Bus fault reading RXIMR on RT1064

1,180件の閲覧回数
Ahlan
Contributor III

Although I can write to the individual mask registers (FLEXCAN1_RXIMRn) a bus fault is raised when I attempt to read them. I have tried setting Frz and then Halt to place the controller into freeze mode and I have also tried disabling the Fifo by clearing Rfen.

Has anyone any idea why I might not be able to read back what I have written?

ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,123件の閲覧回数
Ahlan
Contributor III

To answer my own question.

You need to be in Freeze mode. Although I set Frz and Halt I forgot to wait for the controller to enter freeze mode.

However if you do, and the controller is in Freeze mode, then you can read RXIMR.

I think that it is ugly and highly inconvenient that one needs to be in freeze mode to read these masks but there you are, we live in an imperfect world but at least I have a workaround for the problem.

0 件の賞賛
返信

1,123件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

Hello Ahlan,

 

Thank you for sharing your solution with the community! Certainly, it could help other people in the future.

 

Have a great day,

Felipe

0 件の賞賛
返信