2025-02-14 04:46 AM
Hello everyone,
we are using the STM32MPU Ecosystem v6.0.1 - scarthgap with the provided linux kernel version 6.6.48.
We encountered the problem that sometimes after setting up the can0 interface we are not able to send or receive CAN frames. Rebooting the system solves the problem, if it does not appear again when setting up the interface.
We mostly encountered the problem on high traffic CAN buses. Resetting the interface with ip link set up/down doesn´t work in most cases. When the setup works we are able to send and receive data normally.
Solved! Go to Solution.
2025-02-14 04:56 AM
We were able to presumably locate the problem (tests are still running). It seems that a bug in the M_CAN driver is causing the problem, when the interface is brought up under traffic.
We applied the fix from https://github.com/torvalds/linux/commit/801ad2f87b0c6d0c34a75a4efd6bfd3a2d9f9298 and after first tests it seemst that the problem no longer appears.
2025-02-14 04:56 AM
We were able to presumably locate the problem (tests are still running). It seems that a bug in the M_CAN driver is causing the problem, when the interface is brought up under traffic.
We applied the fix from https://github.com/torvalds/linux/commit/801ad2f87b0c6d0c34a75a4efd6bfd3a2d9f9298 and after first tests it seemst that the problem no longer appears.