This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1453027/am625-am62x-canbus
器件型号:AM625工具与软件:
您好!
我正在尝试使用 AM6254处理器在定制硬件上测试 CAN 总线端口。 我正在使用 https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/10_00_07_04/exports/docs/linux/Foundational_Components 内核/Kernel/MCAN/MCAN.html#mcan 页面中的控制台命令 Kernel_Drivers
我能够测试 main_mcan0、但 mcu_mcan0和 mcu_mcan1会停止 CPU。 我的第一个问题是、我们是否能够使用 MCU 域中的 CAN 总线。 因为上面的页面对 MCU_CAN0使用 candump。 如果允许我们使用、那么 CPU 卡住的原因可能是什么
您可以在下面找到 mcu_mcan0和 main_mcan0的结果:
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。
您好!
这是 SDK 10.0中的已知错误
此致、
Aparna
TI-PROCESSOR-SDK-LINUX-AM62xx-EVM-10.01.10.04、我已尝试了该版本、现在它可以正常运行。 THX。