s32k312 flex can send data

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

s32k312 flex can send data

跳至解决方案
960 次查看
fengba_360
Contributor III

hi,If I periodically and simultaneously call the flexcan transmit function to send two different ID messages consecutively using the same Message Buffer (MB), the second message frame is lost. Can you suggest a solution for this?

if(delay_10ms_flag == 1){

FlexCAN_Ip_Send(0, 10,&CAN_NODE_0_TX_STD_Config,0x55, &mb_data ) ;

FlexCAN_Ip_Send(0, 10,&CAN_NODE_0_TX_STD_Config,0x54, &mb_data ) ;}

thanks!

0 项奖励
回复
1 解答
951 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you want to use same MB for transmission of more messages, you need to check if previous transfer is finished, otherwise next messages can be lost. You can do it by using GetTransferStatus function, or use SendBlocking function instead.
Other option is to use more MBs for transmission.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
1 回复
952 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if you want to use same MB for transmission of more messages, you need to check if previous transfer is finished, otherwise next messages can be lost. You can do it by using GetTransferStatus function, or use SendBlocking function instead.
Other option is to use more MBs for transmission.

BR, Petr

0 项奖励
回复