Difference between revisions of "iMX6 TinyRex Ultra Accessing and Testing Peripherals"

From Voipac Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
<div style="float:right">__TOC__</div>
 
<div style="float:right">__TOC__</div>
  
Elemental operations of iMX6 TinyRex Development board ports in Ultra configuration are shown on this page. For more detailed information such as HDMI input interface or Wireless operation refer to dedicated [[iMX6_TinyRex_Ultra#Peripherals|Peripheral sections]].
+
Elemental operations of iMX6 TinyRex Development board ports in Ultra configuration are shown on this page. For more detailed information such as HDMI input interface or Wireless operation refer to the dedicated [[iMX6_TinyRex_Ultra#Peripherals|Peripheral sections]].
  
 
== Prerequisites ==
 
== Prerequisites ==
Line 26: Line 26:
 
* HDMI cable
 
* HDMI cable
 
* Micro HDMI cable
 
* Micro HDMI cable
* Micro Usb cable
+
* Micro USB cable
* UART cable
+
* USB to UART cable
 +
 
 +
== User button ==
 +
'''''Input:''''' Press the USER button<br />
 +
'''''Output:''''' Button events 1 and 0 are generated
 +
 
 +
<syntaxhighlight lang="bash">
 +
root@imx6-tinyrexultra:~# evtest /dev/input/by-path/platform-gpio-keys*-event
 +
Input driver version is 1.0.1
 +
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100pio-keys.16-event .
 +
Input device name: "gpio-keys.16"
 +
Supported events:
 +
  Event type 0 (EV_SYN)
 +
  Event type 1 (EV_KEY)
 +
    Event code 116 (KEY_POWER)
 +
Properties:
 +
Testing ... (interrupt to exit)
 +
Event: time 1453240251.571826, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
 +
Event: time 1453240251.571826, -------------- EV_SYN ------------
 +
Event: time 1453240251.711820, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
 +
Event: time 1453240251.711820, -------------- EV_SYN ------------
 +
</syntaxhighlight>
 +
 
 +
== Reset button ==
 +
'''''Input:'''''  Press the RESET button<br />
 +
'''''Output:''''' Module will execute bootloader immediately with "Reset cause: POR"<br />
 +
'''''Note:''''' Module should never freeze or hang after the reset button was pressed. Testing the operations 10 times gives a reliable result
 +
 
 +
<syntaxhighlight lang="bash">
 +
U-Boot 2014.10 (Jan 19 2016 - 20:37:48)
 +
 
 +
CPU:  Freescale i.MX6SOLO rev1.1 at 792 MHz
 +
Reset cause: POR
 +
Board: MX6 TinyRex - basic
 +
I2C:  ready
 +
DRAM:  512 MiB
 +
MMC:  FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
 +
*** Warning - bad CRC, using default environment
 +
 
 +
In:    serial
 +
Out:  serial
 +
Err:  serial
 +
Net:  FEC [PRIME]
 +
Hit any key to stop autoboot:  0
 +
</syntaxhighlight>
 +
 
 +
== CAN ==
 +
'''''Input:'''''  None<br />
 +
'''''Output:''''' Device driver is available
 +
 
 +
<syntaxhighlight lang="bash">
 +
root@imx6-tinyrexbasic:~# ip addr show dev can0
 +
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
 +
    link/can
 +
</syntaxhighlight>
 +
 
 +
'''''Note:''''' Enhanced testing can be performed with a pair of iMX6 TinyRex Development boards and a couple of dedicated [https://www.ti.com/tool/TCAN332EVM CAN evaluation modules]<br /><br/>
 +
 
 +
Board 1 (receiver) commands and outputs:
 +
<syntaxhighlight lang="bash">
 +
root@imx6-tinyrexmax:~# ip link set can0 type can bitrate 1000000
 +
root@imx6-tinyrexmax:~# ip link set can0 up
 +
flexcan 2090000.flexcan can0: writing ctrl=0x01232054
 +
root@imx6-tinyrexmax:~# candump can0 &
 +
[1] 833
 +
root@imx6-tinyrexmax:~#  can0  123  [4]  DE AD BE EF
 +
</syntaxhighlight><br/>
 +
 
 +
Board 2 (transmitter) commands and outputs:
 +
<syntaxhighlight lang="bash">
 +
root@imx6-tinyrexpro:~# ip link set can0 type can bitrate 1000000
 +
root@imx6-tinyrexpro:~# ip link set can0 up
 +
flexcan 2090000.flexcan can0: writing ctrl=0x01232054
 +
root@imx6-tinyrexpro:~# candump can0 &
 +
[1] 847
 +
root@imx6-tinyrexpro:~# cansend can0 123#DEADBEEF
 +
root@imx6-tinyrexpro:~#  can0  123  [4]  DE AD BE EF
 +
</syntaxhighlight>
 +
 
 +
 
 +
<syntaxhighlight lang="bash">
 +
</syntaxhighlight>
 +
 
 +
<syntaxhighlight lang="bash">
 +
</syntaxhighlight>
 +
 
 +
<syntaxhighlight lang="bash">
 +
</syntaxhighlight>
 +
 
 +
<syntaxhighlight lang="bash">
 +
</syntaxhighlight>

Revision as of 10:29, 12 March 2021

Elemental operations of iMX6 TinyRex Development board ports in Ultra configuration are shown on this page. For more detailed information such as HDMI input interface or Wireless operation refer to the dedicated Peripheral sections.

Prerequisites

Hardware

  • DC power supply (5V 2A)
  • iMX6 TinyRex Module Ultra
  • iMX6 TinyRex Baseboard

Peripherals and Accessories

  • 1x FullHD monitor with Audio output
  • 1x HD signal generator
  • 1x MicroSD card
  • 1x MiniPCIe WiFi card
  • 1x RPi camera module
  • 1x SATA HDD drive
  • 2x USB FLASH drive

Cables

  • Ethernet cable
  • HDMI cable
  • Micro HDMI cable
  • Micro USB cable
  • USB to UART cable

User button

Input: Press the USER button
Output: Button events 1 and 0 are generated

root@imx6-tinyrexultra:~# evtest /dev/input/by-path/platform-gpio-keys*-event
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100pio-keys.16-event .
Input device name: "gpio-keys.16"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1453240251.571826, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1453240251.571826, -------------- EV_SYN ------------
Event: time 1453240251.711820, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1453240251.711820, -------------- EV_SYN ------------

Reset button

Input: Press the RESET button
Output: Module will execute bootloader immediately with "Reset cause: POR"
Note: Module should never freeze or hang after the reset button was pressed. Testing the operations 10 times gives a reliable result

U-Boot 2014.10 (Jan 19 2016 - 20:37:48)

CPU:   Freescale i.MX6SOLO rev1.1 at 792 MHz
Reset cause: POR
Board: MX6 TinyRex - basic
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Hit any key to stop autoboot:  0

CAN

Input: None
Output: Device driver is available

root@imx6-tinyrexbasic:~# ip addr show dev can0
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can

Note: Enhanced testing can be performed with a pair of iMX6 TinyRex Development boards and a couple of dedicated CAN evaluation modules

Board 1 (receiver) commands and outputs:

root@imx6-tinyrexmax:~# ip link set can0 type can bitrate 1000000
root@imx6-tinyrexmax:~# ip link set can0 up
flexcan 2090000.flexcan can0: writing ctrl=0x01232054
root@imx6-tinyrexmax:~# candump can0 &
[1] 833
root@imx6-tinyrexmax:~#   can0  123   [4]  DE AD BE EF


Board 2 (transmitter) commands and outputs:

root@imx6-tinyrexpro:~# ip link set can0 type can bitrate 1000000
root@imx6-tinyrexpro:~# ip link set can0 up
flexcan 2090000.flexcan can0: writing ctrl=0x01232054
root@imx6-tinyrexpro:~# candump can0 &
[1] 847
root@imx6-tinyrexpro:~# cansend can0 123#DEADBEEF
root@imx6-tinyrexpro:~#   can0  123   [4]  DE AD BE EF