cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving duplicated FDCAN messages STM32N6

guillerminaborrazas
Associate II

Hello,

 

I am working with the FDCAN peripheral on the STM32N6 Nucleo Board. While logging all received and transmitted messages, I noticed that some messages are received twice.

 

Is there a specific reason for this behavior? Should I introduce a delay before reading the RxFIFO again?

 

Thank you in advance for your support.

 

Best regards,

Guillermina

1 ACCEPTED SOLUTION

Accepted Solutions
guillerminaborrazas
Associate II

Hello @mƎALLEm, I changed the APB clocks frequency to match the SYS clk, and the issue dissapeared.

 

View solution in original post

3 REPLIES 3
mƎALLEm
ST Employee

Hello,

Are you sure the message are not physically duplicated on the bus? did you check that with a CAN analyzer or an oscilloscope?

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.

Hi @mƎALLEm ! Thank you for your quick response.

I checked and the message is sent twice indeed.

The slave is a STM32H563VIT6. In the code the message is only sent once.

IMG_0295.jpeg

I also checked the article : 

https://community.st.com/t5/stm32-mcus/faq-fixing-stm32-fdcan-communication-disruptions-apb-bus-kernel/ta-p/730298

But the quanta clock is below the APB clock in both master and slave.

Any ideas of what can be happening?

Thank you!

guillerminaborrazas
Associate II

Hello @mƎALLEm, I changed the APB clocks frequency to match the SYS clk, and the issue dissapeared.