Open main menu

DAVE Developer's Wiki β

Changes

DESK-XZ7-L/Peripherals/CAN

119 bytes added, 26 January
CAN
<section begin=Body/>
== Peripheral CAN ==
CAN is available on the <code>J24</code> connector. This device is routed through the PLusing the ''xxxxxxxxxx'' Vivado project.
{| class="wikitable"|-! Physical device !! Processor's resource !! Connector !! Type !! Notes|-| CAN BUS || CAN0|| J24 || differential CAN bus |||-|}==Accessing the peripheral ===
The following commands can be issued from command line in order to send and receive CAN frames: ====Linux messages at boot time====
<pre class="workstation-terminal">
[ 0.768236] can: netlink gateway - max_hops=1
</pre>
 
====Enable the interface and check status====
 
The following commands can be issued from command line in order to send and receive CAN frames:
<pre class="workstation-terminal">
[1] 298
root@bora:~# interface = can0, family = 29, type = 3, proto = 1
</pre>
==== Usage with [https://github.com/linux-can/can-utils/tree/master can-utils] ====
<pre class="workstation-terminal">
root@bora:~# cansend can0 -i 0x7ff 00 01 02 03 04 05 06 07
interface = can0, family = 29, type = 3, proto = 1
<section end=Body/>
---- [[Category:BORA]] [[Category:BORA Xpress]] [[Category:BORA Lite]]
8,226
edits