AnsweredAssumed Answered

MQX and CAn: Be notified when remote frame received

Question asked by arnogir on Dec 3, 2015
Latest reply on Jan 4, 2016 by arnogir

Hello

 

I'm using a K70 on MQX 4.1.

 

With the FLEXCAN MQX driver, I made the following configuration (exemple)

 

_bsp_flexcan_io_init(0);
 FLEXCAN_Softreset(0);
FLEXCAN_Initialize(0,0,0,125,FLEXCAN_IPBUS_CLK);
FLEXCAN_Select_mode(0,FLEXCAN_NORMAL_MODE);
FLEXCAN_Start(0);
FLEXCAN_Initialize_mailbox(0,9, 0x701, 2, FLEXCAN_TX, FLEXCAN_STANDARD, FLEXCAN_ENABLE);
FLEXCAN_Activate_mailbox(0, 9, FLEXCAN_MESSAGE_TRANSMIT_ONCE);
Result = FLEXCAN_Install_isr(0, 9, MyITCallBAck);

 

Then after than, wth my IXXAT I send a  remote frame with ID = 0x701. ECU response with a frame of 2 Bytes.

Isr call my callback and because I configured an Rx buffer I have the Rx notification.

But How to be notified then remote frame was sent really? (Tx confirmation)

Because I need to be notified to update frame data by calling FLEXCAN_Update_message.

 

Thank

Outcomes