Bus fault reading RXIMR on RT1064

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

Bus fault reading RXIMR on RT1064

645 Views
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?

Labels (1)
Tags (1)
0 Kudos
2 Replies

588 Views
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 Kudos

588 Views
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 Kudos