Tool/software:
HI,
I can use MCAN_TXBTO to confirm the successful sending of the message. What register should be used to confirm the failure of message sending? If only MCAN_TXBTO is used, if no message is sent, MCAN_TXBTO is also 0. Therefore, MCAN_TXBTO cannot be used alone. I tried to combine MCAN_TXBAR and MCAN_TXBTO. MCAN_TXBAR is not equal to 0 and MCAN_TXBTO is equal to 0 as the conditions for sending failure. However, after testing, it was found that MCAN_TXBAR has always been equal to 0? May I ask what plans there are?
Part of the code is as follows:
if(0u != (MCAN_getTxBufTransmissionStatus(MCANA_DRIVER_BASE) & (basepos << i)))
{
u8CANFDMsgTxResult[i] = TX_OK;
}
else if((0u != (HW_RD_REG32(MCANA_DRIVER_BASE + MCAN_TXBAR) & (basepos << i))) &&
(0u == (MCAN_getTxBufTransmissionStatus(MCANA_DRIVER_BASE) & (basepos << i))))
{
u8CANFDMsgTxResult[i] = TX_NOT_OK;
}