AM62 Verdin CAN problem

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Hartmut,

I’m sorry to hear about the CAN communication issues you’re experiencing with your Verdin AM62 boards. Let’s explore some potential causes and solutions:

  1. SocketCAN Layer and Task Priorities:

    • The latency might be related to task scheduling priorities in the Linux kernel. You can adjust these priorities using the chrt command to set real-time priorities for CAN-related tasks. This adjustment can help ensure that CAN messages are processed with higher priority, potentially reducing latency.
    • It’s also important to monitor CPU load to ensure other processes aren’t consuming excessive resources, which could impact CAN message handling.
  2. Changing Priorities in the Linux Kernel:

    • Use the chrt command to set the scheduling policy and priority of processes. For example, you can assign a higher priority to the CAN interface process:
      sudo chrt -f -p 99 <pid_of_can_process>
      
    • Ensure the CAN interface driver is configured correctly and that the system isn’t experiencing CPU throttling or other resource constraints.
  3. Potential Hardware Issue (Errata #4: HAR-10889):

    • The errata you mentioned might affect your module’s functionality. Verify if your hardware version is impacted and consult the errata documentation for any recommended workarounds.
  4. Additional Troubleshooting Steps:

    • Check system logs (dmesg and /var/log/syslog) for any error messages related to CAN communication.
    • Test CAN communication under different conditions to identify patterns or specific triggers for latency.
    • Consider using a different CAN interface or hardware setup temporarily to rule out hardware-specific issues.

By addressing these areas, you should be able to identify and mitigate the causes of the CAN communication disruptions. I hope this helps you move forward with your production plans.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Verdin AM62 | Toradex Developer Center.