Debugging Intermittent CAN Bus Communication Failures on AVR128DA48

Hey guys, During integration testing, I’ve noticed intermittent failures in CAN Bus communication between nodes. Some messages are dropped, and errors are logged on the AVR128DA48. I’ve already checked for electrical noise and verified the hardware setup. I also added the following debug code to catch errors:
if (can_receive(can_dev, &rx_frame, K_MSEC(100)) == -EIO) {
    printk("CAN receive error\n");
}

Despite this, the communication still fails occasionally. What further steps can I take to debug and ensure reliable communication on the CAN Bus network, especially with intermittent errors?
Was this page helpful?