Kernel version: 4.19.31-ti-r19
OS: Ubuntu 18.04.2 LTS
BB Board: Beaglebone Black Enhanced (Sancloud)

Hello,

I am trying to use P9_24 and P9_26 for CAN (controller area network).  The 
following are the steps I am taking to enable the pins and attempt to send 
messages over CAN:

config-pin P9_24 can 
config-pin P9_26 can 
sudo ip link set can0 up type can bitrate 500000 
sudo ifconfig can0 up
cangen can0 -i -g 100 -v

cangen shows that it is generating messages, but when I view the voltage 
levels of P9_24 and P9_26 under and oscilloscope, there is no change in 
voltage.  The voltage remains at 3.1V-3.2V.

When I query the pins, the configuration is correct:

config-pin -q P9_24
P9_24 Mode: can
config-pin -q P9_26
P9_26 Mode: can


If I change the pin configuration to "gpio" for example, I can see a 
voltage change in the oscilloscope for both pins accordingly.  I have tried 
to configure P9_19 and P9_20 for CAN as well and I have the same results.

Does anyone have any idea tips on how to get the BB to send CAN messages?  
Do I need to configure anything else before it works?

(I do have a CAN transceiver which will interface on the CAN bus, but I was 
not able to see messages from the BB on the CAN bus, which lead me to debug 
the voltage at the BB I/O pins first before debugging it over to the 
transceiver.  It appears my issue is that the BB pins are not transmitting 
anything currently.)

Thanks for the help!

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/40731718-2780-4657-b392-1de12721fb0f%40googlegroups.com.

Reply via email to