使用SPI 转CAN 芯片转出的can 节点号不确定,可通过排除法确定哪个是SPI 转CAN 的节点; 原生CAN 节点有中断“Interrupt”,原生CAN1 中断值为31,原生CAN2 中断值为32,没有 中断的即为2515 SPI 转CAN。 可以通过下面方法固定can的加载顺序: 1:cd /etc/modprobe.d/ 2:vi can.conf 在can.conf中输入下面内容:install mcp251x /sbin/modprobe
--ignore-install flexcan && /sbin/modprobe --ignore-install mcp251x 3:sync 重启后新生成的can会固定在can2的位置上。 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2025-2-6 01:09
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.