There was a problem when I implemented an interrupt handler. As shown below.
The Processor expert function ISR(Cpu_Interrupt) is called from each unimplemented interrupt to catch the unexpected
event. The example below can be useful to identify the unimplemented interrupt.
Could you please check the "126.96.36.199 Error Code Register (MMCECH, MMCECL)"?
Also, in the RM rev. 2.11 in the section "188.8.131.52 MSCAN Receiver Flag Register (CANRFLG)" we can see that RSTAT[1:0] and TSTAT[1:0] flags are read-only.
I hope it helps you.