Hi
It need to enable the FlexCAN module clock at SIM_SCGC6[FLEXCAN0] bit or SIM_SCGC3[FLEXCAN1] bit at first.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------