Dear Dhruvit Vasavada,
> "Yes, this is normal nothing wrong with the steps, because before enabling the EnableIRQ() if one clears all the rest pending interrupts then this would work totally fine."
Good!
> "if one clears a pending interrupt and then enableIRQ then this won't stuck"
The original fsl_flexcan does _not_ clear before enableIRQ, which causes enableIRQ to not return. Do you agree that a prior clear is required?
> "... cause the priority of the interrupt is changed now"
I have no idea what you mean by that, please explain!
Regards,
stp_s