Dear NXP support,
When sending data through FlexCAN, an RTR error occurs on the receiving side (PCAN-View). An error occurs when sending data in 10ms.
The code below was written by me. Please review to see if there are any mistakes.
1) FlexCAN component setting
2) CAN initialization code.
3) FlexCAN Send code.
4) Send code.
I implemented the program as above, but an RTR error occurs. I do not know the cause, so I ask for help with the issue. Please review the contents. I'm sorry, but I hope for a quick reply.
Thanks.
Hi,
what is your intention in fact. Send a message periodically?
I think a combination of FLEXCAN_DRV_ConfigRemoteResponseMb and FLEXCAN_DRV_SendBlocking on same message buffer makes no sense. FLEXCAN_DRV_ConfigRemoteResponseMb function is used to prepare MB for remote request response. Once remote request frame is received with configured ID a message buffer becomes TX, sends a remote response and switch back to RX one to again recognize a Remote Request Frame and transmit a Response Frame in return.
Also for FLEXCAN_DRV_SendBlocking function, try to increase timeout value.
BR, Petr