BBB CAN cape - how to enable CAN interface

396 views
Skip to first unread message

William

unread,
Oct 23, 2017, 8:10:43 AM10/23/17
to BeagleBoard

Hello,

I want to use BBB with a CAN cape to parse some messages received on CAN bus.
For beginning, I want to see the CAN messages in a terminal with can-utils package.

I use the last image available at this time: Debian 9.2 2017-10-10 4GB SD IoT

I need to configure device tree to be able to see CAN interface.
I want to use UART1 for CAN communication.
First step was to download and install bb.org-overlays. 

Since I could not find any useful information on internet for this Debian Stretch, can you please tell my how to start doing this configuration?

Thank you.

William

unread,
Oct 25, 2017, 6:44:30 AM10/25/17
to BeagleBoard
I return with a remark. 
The CAN cape was detected after installing bb.org-overlays. 
So candump and cansend commands can be used as expected.
The problem I had before was regarding to another LCD cape that is attached to beaglebone.

For what dmesg output returns, seem to be a pin conflict between capes.
[    3.557591] bone_capemgr bone_capemgr: slot #4: BB-CAN1 conflict P9.26 (#0:BB-BONE-4D4R-01)
[    3.566124] bone_capemgr bone_capemgr: slot #4: Failed verification
[    3.586720] bone_capemgr bone_capemgr: loader: failed to load slot-4 BB-CAN1:00A0 (prio 0)

Also, trying to use the overlay, won't work.
echo BB-CAN1 > /sys/devices/platform/bone_capemgr/slots
-bash: echo: write error: File exists

From HW schematic doesn't seem to be a problem, only UART5 is used by LCD
Do you have any idea on how can I resolve this conflict?

Reply all
Reply to author
Forward
0 new messages