Hello Vinicius,
- Please check whether the interrupt vector for CAN_receive configured correctly.
- Also there is sample code , please right click CAN component -> choose "Help on component"->

Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------