CAN IS BUSY

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CAN IS BUSY

765件の閲覧回数
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 返答(返信)

751件の閲覧回数
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 件の賞賛
返信

726件の閲覧回数
wutengyouxi555
Contributor II

Thank for your help. Problem has been sloved.

0 件の賞賛
返信