Hi,
I will try to enable CAN BUS in my BeeagleBone Black but when I sent message to BBB I didn’t receive message and didn’t generate errors in CAN Interface, the system doesn’t detect message.
For enable CAN, I used these options:
Add this lines in uEnv.txt
uboot_overlay_addr5=/lib/firmware/BB-CAN1-00A0.dtbo
cape_disable=bone_capemgr.disable_partno=BB-UART1
cape_enable=bone_capemgr.enable_partno=BB-CAN1
And when start system detect drivers:
[ 47.481839] CAN device driver interface
[ 47.663340] c_can_platform 481cc000.can: c_can_platform device registered (regs=a289968a, irq=48)
[ 47.707740] c_can_platform 481d0000.can: c_can_platform device registered (regs=21010f46, irq=49)
[ 51.303945] pvrsrvkm: loading out-of-tree module taints kernel.
[ 51.519457] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.gpu on minor 1
[ 52.948525] PM: bootloader does not support rtc-only!
[ 56.650839] remoteproc remoteproc1: 4a334000.pru is available
[ 56.662793] remoteproc remoteproc2: 4a338000.pru is available
[ 144.670808] c_can_platform 481d0000.can can1: setting BTR=1c05 BRPE=0000
[ 144.685573] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 148.830311] can: controller area network core
[ 148.830511] NET: Registered protocol family 29
[ 148.886227] can: raw protocol
In terminal, I config PINs P9.24 and P9.26 with CAN:
config-pin p9.24 can
config-pin p9.26 can
And enable interface
sudo /sbin/ip link set can1 up type can bitrate 500000
After enable CAN Interface in ifconfig, I showed the interface.
can1: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 49
To read CAN BUS message, I used the installed CAN utilities in system and command candump can1 and didn’t receive something. If I try to send, I had the same problem, another device connected to CANBUS didn’t receive the message.
For test to discard a BUS problem, I configured P9.24 and P9.26 as a UART and listen by minicom /dev/ttyS1 and receive information but incorrect parse characters.
What could be the problem? Am I missing a step? The CAN speed is the same in all devices and I tested CAN0 (P9.19 / P9.20), CAN1 ( P9.24 / P9.26 ). I have installed AM335x 12.2 2023-10-07 4GB eMMC IoT Flasher
Thanks,