Flexcan TX confirmation

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

Flexcan TX confirmation

Jump to solution
2,244 Views
BillWen
Contributor III

Hi NXP :

My platform is s32k358. I have a problem that when I use Can_43_FLEXCAN_Write to send can message, I can't get tx confirmation automatic. I think the process is that canif will call "CanIf_TxConfirmation" --> "UserTxConfirmation(for my project is eCan_TxConfirmation)" and check tx send successful. The following is my MCAL setting. I print log inside the CanIf_TxConfirmation but no any response, please help me to check if I have any wrong on configuration, thanks.

BillWen_1-1761724503562.png

BillWen_0-1761724444161.png

BillWen_2-1761724530873.png

Thanks

BR, BillWen

 

0 Kudos
Reply
1 Solution
2,225 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@BillWen

I tested the project you provided earlier, and it works fine.

Senlent_0-1761728490628.png

 

View solution in original post

0 Kudos
Reply
5 Replies
2,226 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@BillWen

I tested the project you provided earlier, and it works fine.

Senlent_0-1761728490628.png

 

0 Kudos
Reply
2,136 Views
BillWen
Contributor III

Hi Senlent:

Sorry for late reply.

The following is my can tx confirmation setting

BillWen_0-1762316486913.pngBillWen_1-1762316501944.png

and the following is my iCan_TxConfirmation function

void iCan_TxConfirmation(PduIdType CanIfTxPduId, Std_ReturnType result)
{
Printf("CanIfTxPduId = %d\r\n", CanIfTxPduId);
}
 
I send extended can ID message every 100 ms, but I can't get any print log, it seems weird. 
 
Thanks
BR, BillWen
0 Kudos
Reply
2,130 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@BillWen

Please provide a test project and remove unnecessary code.

0 Kudos
Reply
2,115 Views
BillWen
Contributor III
Hi Senlent:

I figure out that I set wrong swPduHandle make tx confirmation no response.

swPduHandle need corresponds the CanIfTxPduId, right?

Thanks
BR, BillWen
0 Kudos
Reply
2,096 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@BillWen

yes

0 Kudos
Reply