Question about RTR error in FlexCAN TX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question about RTR error in FlexCAN TX

358 Views
kimdukyu
Contributor II

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.

kimdukyu_0-1667221795972.png

The code below was written by me. Please review to see if there are any mistakes.

1) FlexCAN component setting

kimdukyu_4-1667222262753.png

2) CAN initialization code.

kimdukyu_1-1667221915973.png

3) FlexCAN Send code.

kimdukyu_2-1667221971445.png

4) Send code.

kimdukyu_3-1667222018824.png

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.

0 Kudos
1 Reply

342 Views
PetrS
NXP TechSupport
NXP TechSupport

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

0 Kudos