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?
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.
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