Hello,
there are some examples in software example list, which are created for MPC5748G, but those are also usable for MPC5746C. Please check the links below:
Example MPC5748G FlexCAN DMA ISR
Example MPC5748G-FlexCAN_with_interrupts S32DS
https://community.nxp.com/docs/DOC-333556
Regards,
Martin