s32k312 flex can send data

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

s32k312 flex can send data

ソリューションへジャンプ
990件の閲覧回数
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 解決策
981件の閲覧回数
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 返信
982件の閲覧回数
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 件の賞賛
返信