Thanks for your reply, Daniel.
I can successfully run the flexcan_uart_twrk64f120m demo, but when I copy that code to my project I get a strange error. In my project I have several tasks, and I use the same code from the demo for this CAN_TASK.
In my project, as soon as the can message sends, and I know it sends because I have a CAN analyzer, I then get a mesage that reads "No source available for "0x410"". Or, It it will say, "No source availabe for "0x530"".
However, if I put a breakpoint in the fsl_flexcan_driver.c file, in the function FLEXCAN_DRV_SEND, at the line
if (result == kStatus_FLEXCAN_Success)
then my program will continue to work without errors.
If I take the breakpoint off, the "no source available" message appears and the device resets.
Any ideas on to the cause of this error?