s32k312 flex can send data

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

s32k312 flex can send data

Jump to solution
381 Views
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 Kudos
Reply
1 Solution
372 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
373 Views
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 Kudos
Reply