I'm using MCAN module in LPC54616 MCU in a very unstable environment, which causes assertion in MCAN_ReadRxFifo function when receiving null frames (rxFrame = NULL).
fsl_mcan.c
[...]
status_t MCAN_ReadRxFifo(CAN_Type *base, uint8_t fifoBlock, mcan_rx_buffer_frame_t *rxFrame)
{
/* Assertion. */
assert((0U == fifoBlock) || (1U == fifoBlock));
assert(NULL != rxFrame);
[...]
leading into MCU continiously stalling.
Is this a real assertion reason or could it be sorted out by skipping that reading?
Perhaps it's already been solved in later versions of SDK, can anyone confirm this? My SDK version is 2.10.
Thank you!