- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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