CAN IS BUSY

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

CAN IS BUSY

764 次查看
wutengyouxi555
Contributor II

IC : S32K144

 

here is my code:

wutengyouxi555_0-1690441203452.png

I want to send 496byte data at once, it should sendout 62 frames.

if I don,t compare the value of radar_send_status and decide whether to resend or not.

it only sendout 61 frames, case the sending function (FlexCANSendData) returns BUSY once when it is sent.

Isn't the MCU going to reissue on its own?  Why did he miss one frame?

0 项奖励
回复
2 回复数

750 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you want to reuse same MB for next message you have to be sure previous one is transmitted and MB can be written. Is the FlexCANSendData your written function? What is the driver used?
Assuming e.g SDK driver is used then use either SendBlocking function or test if message is already sent using FLEXCAN_DRV_GetTransferStatus function.

BR, Petr

0 项奖励
回复

725 次查看
wutengyouxi555
Contributor II

Thank for your help. Problem has been sloved.

0 项奖励
回复