This function is canerr callback function from s32k144 SDK 4.0.2
How CAN I know what kind of err has happened on the CAN bus from this Function.
Hi,
calling FLEXCAN_DRV_GetErrorStatus (reading ESR1) you clears status error bits. So read it into some status variable and mask/check as needed. You can refer to https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-TX-RX-Error-ISR-test-S32DS2...
BR, Petr
Hi,
no, you have no such info about faulty message. Module does not store received CRC and moreover if error is detected a message is not moved-in into given MB. Just error free messages are stored, but without CRC info.
BR, Petr