I added code from the FlexCAN loopback project and it looks to me like I have the registers setup for correct bitrate, Message Box interrupt setup, Extended CAN ID, etc.
PE added code to install the CAN interrupt handler as shown below:
void canCom1_MbHandler(void)
{
FLEXCAN_DRV_IRQHandler(canCom1_IDX);
}
The problem is when I receive a CAN message, I get to the interrupt handler, but the DLC count is wrong and the data in the MB is wrong. I think something is not setup correctly.
Anyone have a tip, suggestion or example code for me?
Thanks,
David