Changes

Jump to: navigation, search

Physical devices mapping (BELK/BXELK)

2,007 bytes added, 13:15, 20 December 2016
no edit summary
On PC side, BoraXEVB is detected as a common USB mass storage device.
 
==CAN==
 
See [[BoraXEVB#CAN_-_J24 | CAN Pinout]] page and [[Creating_and_building_example_Vivado_project_(BELK/BXELK) | BXELK Vivado project]] for more details.
 
{| class="wikitable"
|-
! Physical device !! Processor's resource !! Connector !! Type !! Notes
|-
| CAN BUS || can0 || J24 || differential CAN bus ||
|-
|}
 
The following commands can be issued from command line in order to send and receive CAN frames:
<pre>
root@bora:~# dmesg | grep -i can
[ 0.643798] CAN device driver interface
[ 0.997787] can: controller area network core (rev 20120528 abi 9)
[ 1.008392] can: raw protocol (rev 20120528)
[ 1.012661] can: broadcast manager protocol (rev 20120528 t)
[ 1.018294] can: netlink gateway (rev 20130117) max_hops=1
root@bora:~# canconfig can0 stop
can0 state: STOPPED
root@bora:~# canconfig can0 bitrate 500000
can0 bitrate: 500000, sample-point: 0.875
root@bora:~# canconfig can0 start
can0 state: ERROR-ACTIVE
root@bora:~# cansend can0 -i 0x77 0x33 0x88 0x33 0x88 0x33 0x88 0x33
interface = can0, family = 29, type = 3, proto = 1
root@bora:~# cansend can0 -i 0x77 0x33 0x88 0x33 0x88 0x33 0x88 0x33
interface = can0, family = 29, type = 3, proto = 1
root@bora:~# cansend can0 -i 0x77 0x33 0x88 0x33 0x88 0x33 0x88 0x33
interface = can0, family = 29, type = 3, proto = 1
root@bora:~# candump can0
interface = can0, family = 29, type = 3, proto = 1
<0x100> [8] 12 34 56 78 9a bc de ff
<0x100> [8] 12 34 56 78 9a bc de ff
<0x100> [8] 12 34 56 78 9a bc de ff
<0x100> [8] 12 34 56 78 9a bc de ff
<0x100> [8] 12 34 56 78 9a bc de ff
^C
root@bora:~#
</pre>
 
==UART0==
UART0 is a spare UART device available on the JP17 PMOD connector. This device is routed through the PL.
See [[Creating_and_building_example_Vivado_project_(BELK/BXELK) | BXELK Vivado project]] for more details.
 
{| class="wikitable"
|-
! Physical device !! Processor's resource !! Connector !! Type !! Linux device file !! Notes
|-
| UART0 || UART0 || JP17 || 2-wire LVTTL UART || <code>/dev/ttyPS1</code> ||
|-
|}
136
edits

Navigation menu