cancel
Showing results for 
Search instead for 
Did you mean: 

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

czr
Associate II

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

 

2 REPLIES 2
mƎALLEm
ST Employee

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.

Hello, mEAllenm

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