Skip to main content
Associate
April 17, 2025
Solved

How to increase STM32G473 FDCAN Tx Buffer Size and RX Buffer size

  • April 17, 2025
  • 1 reply
  • 755 views

Hello every

I want to increase STM32G473 FDCAN Tx buffer and Rx buffer size,

In STM32G473 datasheet    >> "A 3-Kbyte message RAM memory implements filters, receive FIFOs, receive buffers, transmit event FIFOs, transmit buffers. This message RAM is shared between the threeFDCAN modules."

In my project, I used three FDCAN(FDCAN1 FDCAN2 FDCAN3),However, after testing, if there is no delay, each FDCAN can only send a maximum of 3 data.This seems to match the SRAMCAN_TFQ_NBR parameter.But when I modified this parameter, the data sent became very strange, and the CAN analyzer could not receive normal data. 

Does anyone know how to increase the tx buffer size of FDcan? Besides this, I would also like to know how to increase the size of the rx buffer

If you have any questions, please feel free to discuss with us,Thanks!

czr_0-1744858835021.png

 

Best answer by mƎALLEm

Hello,

I don't think you are allowed to modify the parameters in the driver (stm32g4xx_hal_fdcan.c).

Meanwhile please refer to the AN5348 "Introduction to FDCAN peripherals for STM32 MCUs" / section: 4.2 RAM management.

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
April 21, 2025

Hello,

I don't think you are allowed to modify the parameters in the driver (stm32g4xx_hal_fdcan.c).

Meanwhile please refer to the AN5348 "Introduction to FDCAN peripherals for STM32 MCUs" / section: 4.2 RAM management.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
czrAuthor
Associate
April 22, 2025

Hello, mEAllenm

Thanks for your advice, I'll check out the manual again, keep in touch.