Hi Lijo,
please, have you tried KSDK example for FlexCAN?
FlexCAN example application demonstrates the SDK Peripheral drivers working with different methods.
There are two provided examples:
• CAN network: transfers data through the CAN interface. On node 1, the user inputs characters by
using the UART debug terminal and sends the data with the FlexCAN interface. On the other node,
the FlexCAN receives the data and prints it to the UART terminal.
• CAN loop-back: transfers data through the CAN loop-back interface. On one node, one 8-byte
buffer stream transmitter output is internally sent back to the receiver input.
The board transfers and receives characters through the FlexCAN-UART interface. Type the characters
on the keyboard and the board receives and displays them on the terminal screen.
Hope this helps.
Iva