AM625: am62x canbus

Part Number: AM625

Tool/software:

Hi,

    I am trying to test CAN Bus ports on my custom hardware with AM6254 processor. I am using the console commands from this page https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/10_00_07_04/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/MCAN.html#mcan

   I am able to test main_mcan0, but mcu_mcan0 and mcu_mcan1 halts the CPU. My first question is that are we able to use can busses which are in MCU domain. Because the page above uses candump with mcu_can0. If we are allowed to use, what might be the reason for CPU stuck

   You can find results for mcu_mcan0 and main_mcan0 below:

root@am62xx-evm:~# ip link set mcu_mcan0 type can bitrate 500000 dbitrate 1000000 fd on
root@am62xx-evm:~# ip link set mcu_mcan0 up
root@am62xx-evm:~# candump mcu_mcan0
[  253.256652] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
[  253.262766] rcu: 2-...0: (6 ticks this GP) idle=3c0c/1/0x4000000000000002 softirq=6991/6992 fqs=2625
[  253.271981] rcu: (detected by 3, t=5255 jiffies, g=6301, q=812 ncpus=4)
[  253.278669] Task dump for CPU 2:
[  253.281888] task:swapper/2       state:R  running task     stack:0     pid:0     ppid:1      flags:0x0000000a
[  253.291792] Call trace:
[  253.294229]  __switch_to+0xcc/0x12c
[  253.297725]  0x0
[  270.620622] omap_i2c 20020000.i2c: controller timed out
[  270.625903] ili210x_i2c 2-0041: ili251x_read_reg_common failed: -110
[  270.632265] ili210x_i2c 2-0041: Unable to get touch data: -110
[  271.676619] omap_i2c 20020000.i2c: controller timed out
[  271.681889] ili210x_i2c 2-0041: ili251x_read_reg_common failed: -110
[  271.688260] ili210x_i2c 2-0041: Unable to get touch data: -110
[  272.732599] omap_i2c 20020000.i2c: controller timed out
[  272.737846] ili210x_i2c 2-0041: ili251x_read_reg_common failed: -110
[  272.744197] ili210x_i2c 2-0041: Unable to get touch data: -110

root@am62xx-evm:~# ip link set main_mcan0 type can bitrate 500000 dbitrate 1000000 fd on
root@am62xx-evm:~# ip link set main_mcan0 up
root@am62xx-evm:~# candump main_mcan0
[  172.201623] can: controller area network core
[  172.206120] NET: Registered PF_CAN protocol family
[  172.221811] can: raw protocol
  main_mcan0  12345678  [01]  DD
  main_mcan0  12345678  [01]  DD
  main_mcan0  12345678  [01]  DD
  main_mcan0  12345678  [01]  DD
  main_mcan0  12345678  [01]  DD

Thx.