I don't want to use the SDK function MCAN_TransferSendNonBlocking() which is not working anyway if used in combination with below receive handler code. Initialization done as per SDK example.
Can I have an example just like receive interrupt provided in the SDK -
void CAN0_IRQ0_IRQHandler(void)
{
MCAN_ClearStatusFlag(EXAMPLE_MCAN, CAN_IR_RF0N_MASK);
MCAN_ReadRxFifo(EXAMPLE_MCAN, 0, &rxFrame);
rxComplete = true;
/* Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F Store immediate overlapping
exception return operation might vector to incorrect interrupt */
#if defined __CORTEX_M && (__CORTEX_M == 4U)
__DSB();
#endif
}
Above code is working perfectly for receive interrupt. I can't find a similar one for transmission!
Thanks for reading. Looking for a solution.