STM32MP1 FDCAN issues
Hello,
I have the stm32mp157c-dk2 board and have connected two CAN Bus transceivers to it.
FDCAN1 is assigned to the A7 CPU and the FDCAN2 is assigned to the M4 CPU.
Both transmitters are connected to the same CAN bus. There is also a 3rd device connected to the same can bus.
When there is very low traffic on the can bus everything is fine.
All messages from all 3 CAN nodes can be received correctly everywhere.
When there gets little more traffic on the bus then the FDCAN2 on the M4 CPU starts to transmit wrong frames.
Also when the traffic goes low again the problem stays the same until reboot of the M4 CPU.
It is also hard to reproduce the issue. It sometimes takes a few hours or days for the issue to happen.
Here is the data on the bus when everything is ok:
# candump can0
can0 10000681 [3] 0A 00 05 <- Data from M4 CPU
can0 10000682 [3] 0A 00 19 <- Data from M4 CPU
can0 1810A080 [8] 80 00 00 18 00 01 00 00 <- Data from 3rd device
can0 18E050E5 [8] 00 00 00 00 08 00 00 00 <- Data from 3rd device
can0 02200000 [8] 10 04 00 00 00 00 00 00 <- Data from A7 CPU
can0 02200000 [8] 12 00 00 00 00 00 00 00 <- Data from A7 CPU
Here is the data on the bus when the M4 CPU gets a problem (all devices are still sending exactly the same frames):
# candump can0
can0 1F080681 [3] remote request <- Data from M4 CPU
can0 1F080682 [3] remote request <- Data from M4 CPU
can0 1810A080 [8] 80 00 00 18 00 01 00 00 <- Data from 3rd device
can0 18E050E5 [8] 00 00 00 00 08 00 00 00 <- Data from 3rd device
can0 02200000 [8] 10 04 00 00 00 00 00 00 <- Data from A7 CPU
can0 02200000 [8] 12 00 00 00 00 00 00 00 <- Data from A7 CPU
So the CAN ID 0x10000681 is getting to 0x1F080681 and also the payload is lost.
It looks like something goes wrong in the M4 can bus memory.
Any ideas?
