Hello,
I have an issue with the fsl_mcan drivers that I'm not sure how to fix:
In the function: MCAN_TransferSendNonBlocking
The code that checks if the tx buffer is IDLE (kMCAN_StateIdle == handle->bufferState[xfer->bufferIdx]) returns kStatus_MCAN_TxBusy even though the line is completely IDLE
Eventually the Data will get sent but messages are lost here. Deleting this line of code as a test made the code work flawlessly, however, it is likely to cause errors in the future.
How can I solve this problem? For extra information, I am sending the first type of message every 100ms, the second type of message every 150ms and a third type every 5 seconds or so.
Thanks in advance.