cancel
Showing results for 
Search instead for 
Did you mean: 

"HAL_FDCAN_GetRxMessage" function on STM32H5

DAUSILI
Associate III

Good morning,
I have a doubt regarding the behavior of the "HAL_FDCAN_GetRxMessage" routine of the HAL for the FDCAN peripheral.
I am using an STM32H563VGT6 microcontroller.
From what I can observe by inspecting the code, it seems that when overwrite is enabled and the FIFO is full, the first element in the FIFO is discarded.
This happens without first checking if an actual overwrite has occurred via the RF0L/RF1L bits of the FDCAN_RXF0S/FDCAN_RXF1S registers.
As a result, it might occur that no overwrite has taken place, but messages are still discarded and therefore lost.
Am I missing something?

0 REPLIES 0