CAN IS BUSY

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

CAN IS BUSY

733 Views
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 Kudos
Reply
2 Replies

719 Views
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 Kudos
Reply

694 Views
wutengyouxi555
Contributor II

Thank for your help. Problem has been sloved.

0 Kudos
Reply