I have configured the FlexCAN in the GUI with SDK 3.0, the details as the attachment. And when I initial the flexcan channle0, use the follow code:
Hi,
first init driver then prepare RXMB and start reception. Interrupt need not to be enabled, it is done within driver.
You can refer to below example, it adds RXFIFO and DMA as well but you can see how interrupt callback is installed and used.
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-FlexCAN-RXFIFO-DMA-SDK303-S32DS...
BR, Petr
Hi,
TX MB/RX MB interrupts are enabled/disabled by driver. So you should not to manage this along with the flexcan driver. Upon successful message transmission the MB interrupt is called, callback (if installed) is called within interrupt with FLEXCAN_EVENT_TX_COMPLETE event.
BR, Petr