Hi Junkie,
The MCR[SUPV]=1 by default(FlexCAN is in Supervisor mode). Did you change the bit in Freeze mode?
MCR[SUPV].png
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
Second breakpoint: access the IMASK1 when MCR[SUPV]=0 did not cause BusFault.
flexcan_hw_access.c [line 1272].png
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.
-------------------------------------------------------------------------------