Skip to main content
Associate III
March 31, 2025
Question

"HAL_FDCAN_GetRxMessage" function on STM32H5

  • March 31, 2025
  • 1 reply
  • 618 views

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?

1 reply

Technical Moderator
May 15, 2025

Hello @DAUSILI 

Please refer to the reference manual RM0481.

Saket_Om_0-1747315542378.png

 

"In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.Saket_Om"