Bus fault reading RXIMR on RT1064

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

Bus fault reading RXIMR on RT1064

859 次查看
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 回复数

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

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