cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G0B1x - setting message RAM offset for using two FDCAN ports

PPate.1
Associate III

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.

PPate1_0-1740484554209.png

As per reference manual, I got following details:

PPate1_1-1740485106026.png

But I am not sure where to set start and end addresses.

Please help.

Thanks,

Pradeep

 

 

 

3 REPLIES 3
PPate.1
Associate III

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

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

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 @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

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.