Hello,
We try to implement CAN-FD in interrupt mode based on the example “FlexCAN_Ip_Example_S32K344” which is not that useful since it use loopback and no interrupts.
What we tried to do is :
Create interrupt in IntCtrl_IP : FlexCAN0_1_IRQn , handler : CAN0_ORED_0_31_MB_IRQHandler
Kazarian_0-1732099187138.png
In FlexCan modul add callback function : flexcan0_Callback
Kazarian_1-1732099200155.png
Install the interrupts (please refere to attached file function FlexCan_Init_Config)
Implement the Callback function : flexcan0_Callback
Modul can send the frames, but the reception is not triggering, can you please verify attached code and let me know what is you thought.
We want to receive Ids from 0x100 to 0x7FF. only STD ids not extended ones
const Flexcan_Ip_EnhancedIdTableType CAN0_EnhanceFIFO_IdFilterTable[1] =
{
{
.filterType = FLEXCAN_IP_ENHANCED_RX_FIFO_RANGE_ID_FILTER,
.isExtendedFrame = false,
.id1 = 0x7FF , // STD ID From
.id2 = 0x100, // STD ID To
.rtr2 = FALSE, // RTR filter
.rtr1 = FALSE, // RTR mask
},
};
Best regards.