2025-11-27 6:59 AM - last edited on 2025-11-27 7:06 AM by mƎALLEm
Hello, I wrote a program to test the CAN bus.
In its current version, I am using standard CAN at 1 Mb with 8-byte frames.
I transmit 16 frames with a 5 ms delay between each transmission.
To identify the last frame in the block, I send a frame with a zero data length
I am facing several issues.
When I configure the CAN bus in INTERNAL_LOOPBACK mode, if I do not enable automatic retransmission, some frames that are reported as successfully transmitted are not received.
In NORMAL mode, no frame is flagged as an error on the transmitting Nucleo board, but some frames are never received on the receiving Nucleo, while others are received multiple times.
The last issue is that I can only communicate up to 4 Mb. At 8 Mb, transmission and reception errors are reported.
2025-11-27 7:15 AM
Hello @BESNIEM and welcome to the ST community,
I think better to simplify your code and reproduce the behavior.
You can also refer to the following knowledge base articles:
STM32 FDCAN running at 8 Mb/s on NUCLEO boards
How to use FDCAN to create a simple communication with a basic filter
FAQ: Fixing STM32 FDCAN communication disruptions - APB bus, kernel, and time quanta clocks
2025-11-27 7:18 AM
thanks for your reply.
i will look at your links