hi,ventury
Thank you for your reply.
Why do you want to get the error frame? The error frame will be abandoned in the normal usage scenarios.
If the protocol level frame occurs error, the S32G can get the frame and operate it. For flexcan, the relevant states register will be changed when S32G receive the error frame.
I think you should consider the kind of error frame. such as, it is the error of CRC on one frame, you can try to check the memory for the frame ID and payload.
Hope it can help you.
BR
Joey