Hi Junkie,
The MCR[SUPV]=1 by default(FlexCAN is in Supervisor mode). Did you change the bit in Freeze mode?
![MCR[SUPV].png MCR[SUPV].png](https://community.nxp.com/t5/image/serverpage/image-id/200929i5EF6275BC489ED13/image-size/large?v=v2&px=999)
I try to debug the can_pal_s32k144 example in S32 SDK for S32K1xx RTM 4.0.2.
First breakpoint: access the IMASK1 when MCR[SUPV]=1 did not cause BusFault.
![flexcan_hw_access.c [line 505].png flexcan_hw_access.c [line 505].png](https://community.nxp.com/t5/image/serverpage/image-id/200931i6C5BC1F8CC426802/image-size/large?v=v2&px=999)
Second breakpoint: access the IMASK1 when MCR[SUPV]=0 did not cause BusFault.
![flexcan_hw_access.c [line 1272].png flexcan_hw_access.c [line 1272].png](https://community.nxp.com/t5/image/serverpage/image-id/200932iC329A8A8A3282E37/image-size/large?v=v2&px=999)
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------