Question about RTR error in FlexCAN TX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Question about RTR error in FlexCAN TX

381 次查看
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 项奖励
1 回复

365 次查看
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 项奖励