2025-02-25 4:06 AM - last edited on 2025-02-26 5:33 AM by Amel NASRI
Hi,
I am using 2 FDCAN ports on my custom board with STM32G0B1x MCU. As per application note AN5348, I can set message RAM offset for second port. But I don't see this setting in STM32Cube MX.
As per reference manual, I got following details:
But I am not sure where to set start and end addresses.
Please help.
Thanks,
Pradeep
2025-02-28 12:54 AM - edited 2025-02-28 1:49 AM
Hi,
Referring to 'FDCAN_HandleTypeDef' structure details, i got its member variable 'msgRam'. Using information given in reference manual, I did following settings in initialization code of both CAN ports:
FDCAN1 port:
hfdcan1.msgRam.StandardFilterSA = 0x0000;
hfdcan1.msgRam.ExtendedFilterSA = 0x0070;
hfdcan1.msgRam.RxFIFO0SA = 0x00B0;
hfdcan1.msgRam.RxFIFO1SA = 0x0188;
hfdcan1.msgRam.TxEventFIFOSA = 0x0260;
hfdcan1.msgRam.TxFIFOQSA = 0x0278;
FDCAN2 Port:
hfdcan2.msgRam.StandardFilterSA = 0x0350;
hfdcan2.msgRam.ExtendedFilterSA = 0x03C0;
hfdcan2.msgRam.RxFIFO0SA = 0x0400;
hfdcan2.msgRam.RxFIFO1SA = 0x04D8;
hfdcan2.msgRam.TxEventFIFOSA = 0x05B0;
hfdcan2.msgRam.TxFIFOQSA = 0x05C8;
Can anyone confirm if this is the way it can be done?
Thanks,
pradeep
2025-02-28 1:04 AM
Hello @PPate.1 ,
First let me thank you for posting.
Your request is under investigation, and I will get back to you ASAP.
Thanks.
Mahmoud
2025-02-28 2:37 AM
Hello @PPate.1 ,
Thank you for bringing this issue.
It has been reported to STM32CubeMX development team.
Internal ticket number: 204224 (This is an internal tracking number and is not accessible or usable by customer)
Thanks.
Mahmoud