Difference between revisions of "ORCA SOM/ORCA Evaluation Kit/Interfaces and Connectors/CAN"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:EVB_Interfaces_and_Connectors | nome-som=ORCA SOM | nome-peripheral = CAN}}")
 
Line 1: Line 1:
<section begin=History/>
+
<section begin="History" />
 
{| style="border-collapse:collapse; "
 
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
+
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
 
|-  
 
|-  
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Version
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Issue Date
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|X.Y.Z
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |1.0.0
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |Sep 2021
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |First release
 
|-
 
|-
|-
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|[TBD_link X.Y.Z]
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD
 
|-
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|...
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|...
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|...
 
 
|-
 
|-
 
|}
 
|}
<section end=History/>
+
<section end="History" />
<section begin=Body/>
+
<section begin="Body" />
  
 
==CAN interface ==
 
==CAN interface ==
  
''TBD: sostituire le sezioni con le informazioni sull'uso della periferica e del suo connettore''
+
=== Description  ===
''Nell'esempio di seguito c'è la descrizione dell'interfaccia UART/console''
 
  
=== Description  ===
+
The CAN interfaces are available on the Evaluation Kit at the connector J8.
  
The CAN interface available on the Evaluation Kit at the connector ''TBD:Jxxx''.  
+
J8 is a 20x2x2.54mm pin header expansion connector that delivers many interfaces unused on board and can provide up to two CAN ports.
  
''Jxx'' is a ''TBD:connector-type'' header connector for the RS232 two-wires UART3 port, used for debug purposes (bootloader and operating system serial console).
+
The CAN bus ports are compatible with the Flexible Data rate (CAN FD) and CAN 2.0B protocols specification.
  
  
Line 41: Line 32:
  
 
The following table describes the interface signals:
 
The following table describes the interface signals:
 
+
{| class="wikitable"
{| class="wikitable"  
+
!Pin#
! latexfontsize="scriptsize"| Pin#
+
!SOM Pin#
! latexfontsize="scriptsize"| SOM Pin#
+
!Pin name
! latexfontsize="scriptsize"| Pin name
+
!Pin function
! latexfontsize="scriptsize"| Pin function
+
!Pin Notes
! latexfontsize="scriptsize"| Pin Notes
+
|-
 +
|10
 +
|J15.140
 +
|SAI2_RXC
 +
|CAN1_TX
 +
|
 +
|-
 +
|12
 +
|J15.146
 +
|SAI2_TXC
 +
|CAN1_RX
 +
|
 +
|-
 +
|16
 +
|J15.148
 +
|SAI2_TXD0
 +
|CAN2_TX
 +
|
 +
|-
 +
|18
 +
|J15.138
 +
|SAI2_MCLK
 +
|CAN2_RX
 +
|
 +
|-
 +
|22
 +
|J15.166
 +
|SAI5_MCLK
 +
|CAN2_RX
 +
|
 +
|-
 +
|35
 +
|J15.176
 +
|SAI5_RXD3
 +
|CAN2_TX
 +
|
 +
|-
 +
|36
 +
|J15.174
 +
|SAI5_RXD2
 +
|CAN1_RX
 +
|
 +
|-
 +
|37
 +
|J15.172
 +
|SAI5_RXD1
 +
|CAN1_TX
 +
|
 
|-
 
|-
|1,2,4,6,,7,8,10
+
|2, 4
 
| -
 
| -
| N.A.
+
|5V_VIN
| N.C.
+
|Power output for transceiver supply
| Not connected
+
|Always ON rail
 
|-
 
|-
| 3
+
|1, 17
| J1.189
+
| -
| RS232_RX
+
|3V3_CB
| Receive line
+
|Power output for transceiver supply
|
+
|BOARD_PGOOD driven rail
|-
 
| 3
 
| J1.187
 
| RS232_TX
 
| Transmit line
 
|  
 
 
|-
 
|-
| 9
+
|6, 9, 14, 20, 25, 30, 34, 39
 
| -
 
| -
| DGND
+
|DGND
| Ground
+
|Ground
|  
+
|
 
|}
 
|}
 +
Please note that all the CAN signals are 0-3.3V level. If a 5V powered transceiver is used, a level shifting is needed to interface to the Evaluation Kit connector.
  
 
=== Device mapping ===
 
=== Device mapping ===
UART3 is mapped to <code>/dev/ttymxc2</code> device in Linux. The peripheral is used as the default serial console, both for the bootloader and the kernel.
+
CAN devices are mapped to <code>/dev/can<X></code> device in Linux. The device mapping depends on the device tree configuration.
  
 
=== Device usage ===
 
=== Device usage ===
  
To connect to the debug serial port:
+
The Evaluation Kit doesn't implement any CAN transceiver, these are needed to mediate between the CAN bus and the CPU module.
  
# connect the DB9 adapter bracket to the J22 connector on the SBCX board
+
The peripheral can be configured using <code>ifconfig</code> and <code>ip link</code> utilities and can be tested with the <code>can-utils</code> utilities.
# connect a serial cable between DB9 connector and PC COM port through a NULL-modem cable (not provided)
 
# start your favorite terminal emulator software on PC (eg: PuTTY); communication parameters are: 115200,N,8,1
 
  
 
----
 
----
  
 
[[Category:ORCA SOM]]
 
[[Category:ORCA SOM]]

Revision as of 10:22, 16 September 2021

History
Version Issue Date Notes
1.0.0 Sep 2021 First release


CAN interface[edit | edit source]

Description[edit | edit source]

The CAN interfaces are available on the Evaluation Kit at the connector J8.

J8 is a 20x2x2.54mm pin header expansion connector that delivers many interfaces unused on board and can provide up to two CAN ports.

The CAN bus ports are compatible with the Flexible Data rate (CAN FD) and CAN 2.0B protocols specification.


[[File:{Template:Nome-som-EVB-CAN-connector.png|thumb|center|500px|CAN connector]]

Signals[edit | edit source]

The following table describes the interface signals:

Pin# SOM Pin# Pin name Pin function Pin Notes
10 J15.140 SAI2_RXC CAN1_TX
12 J15.146 SAI2_TXC CAN1_RX
16 J15.148 SAI2_TXD0 CAN2_TX
18 J15.138 SAI2_MCLK CAN2_RX
22 J15.166 SAI5_MCLK CAN2_RX
35 J15.176 SAI5_RXD3 CAN2_TX
36 J15.174 SAI5_RXD2 CAN1_RX
37 J15.172 SAI5_RXD1 CAN1_TX
2, 4 - 5V_VIN Power output for transceiver supply Always ON rail
1, 17 - 3V3_CB Power output for transceiver supply BOARD_PGOOD driven rail
6, 9, 14, 20, 25, 30, 34, 39 - DGND Ground

Please note that all the CAN signals are 0-3.3V level. If a 5V powered transceiver is used, a level shifting is needed to interface to the Evaluation Kit connector.

Device mapping[edit | edit source]

CAN devices are mapped to /dev/can<X> device in Linux. The device mapping depends on the device tree configuration.

Device usage[edit | edit source]

The Evaluation Kit doesn't implement any CAN transceiver, these are needed to mediate between the CAN bus and the CPU module.

The peripheral can be configured using ifconfig and ip link utilities and can be tested with the can-utils utilities.