The Starterkit STKaRZG2x consisting of the TQMaRZG2x module and MBaRZG2x mainboard is intended as evaluation platform for the TQMaRZG2x. To bring up the board a comprehensive set of accessories is supplied with the kit. The STKaRZG2x is delivered preconfigured to boot the latest released Linux BSP revision at the time of delivery, so only the Host Computer has to be set up properly to bring the STKaRZG2x up. This page guides through the first steps with the STKaRZG2x Starterkit.

The TQMaRZG2x debug UART is connected via a Silicon Labs USB-to-Serial converter to X9 (micro-USB) on the MBaRZG2x. A micro-USB/USB-A cable is part of the STKaRZG2x accessory set. Depending on the host operating system, a driver may need to be installed.

Linux

The driver is maintained in the Linux Mainline Kernel, please check that the following options are activated in the Linux Kernel configuration.

  • CONFIG_USB_SERIAL
  • CONFIG_USB_SERIAL_CP210X

Windows

The driver can be downloaded from the Vendor website:
https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

Linux

Minicom

Minicom is a command line based serial terminal for serial communication with hardware like our starterkits.

Install Minicom using APT(Debian/Ubuntu)
$ sudo apt install minicom

In order for the terminal to work properly with full rights you need to add your user to the dialout group:

$ sudo usermod -a -G dialout $USER


Connect Starterkit to Host

To determine the serial device name under linux you can use dmesg. Just run the command below and then plug in the starter kit to see the new detected interface names:

$ dmesg -w

once the interface name is clear you can abort dmesg with ctrl + c.
Now you can start minicom via the command line interface:

$ minicom -D /dev/ttySx
Make sure to replace /dev/ttySx with the serial interface you found out before with dmesg.
Configure minicom

The serial configuration should be correct by default. However, hardware flow control must be disabled for some starter kits, otherwise the communication works only in one direction.

  1. Press CTRL + A, then press O to open the configuration menu
  2. Go to Serial port setup
  3. Press F to change Hardware Flow Control to No
  4. Hit Return key
  5. Select Save setup as dfl to save this configuration as default
  6. Press ESC to exit the menu

Now you should be able to communicate with the starter kit

Windows

TeraTerm

TeraTerm is an open source terminal emulator for windows. it can be downloaded here.

Configure TeraTerm
  1. Download and install TeraTerm
  2. Start TeraTerm and open the Serial Port Settings
  3. select your serial port and configure it with the values defined in the chapter Serial Configuration
  4. after passing the values click on the button new Setting

Now TeraTerm should be ready for use with our starter kits.

The serial port which connects the STKaRZG2x to the Host PC must be configured as follows:

Bautrate: 115200
Data bits: 8
Parity: none
Stop bits: 1
Handshake : XON/XOFF

Please follow the quick start guide delivered with the kit, or open it from the following link: Quick start guide


As soon as logging in on the Linux shell for the first time, the question about the login credential comes up.
By default the user root is used to log into the Linux shell, no password is set for user root.

tqmaxx-mbaxx login: root

To get familiar with the interfaces of the STKaRZG2x we recommend to work through the interface tutorials first.

The Board Support Packages provided by TQ may not contain all software packages to evaluate the STKaRZG2x, therefore TQ provides some guides how to build the BSP and customize it for your needs,

In addition to the BSP documentation, the Yocto SDK build and Eclipse IDE setup for the STKaRZG2x is also documented.

The STKaRZG2x can be setup to boot from different sources please see the DIP switch settings below to change the boot source.

Boot Mode DIP Switch Settings

Default positions of DIP switches S2, S3, S4 and S5 when using a TQMaRZG2x:

eMMC Boot

S2

S3

S4

S5

QSPI Boot

S2

S3

S4

S5

Detailed DIP Switch Settings

S2

DIP Function default position
1 Cortex Type selection OFF
2 OFF
3 Normal Boot Mode ON
4 Boot Device Config
5
6
7
8 Reserved OFF

S3

DIP Function default position
1 AArch selection:
OFF: AArch32
ON: AArch64
ON
2 EXTAL Frequency ON
3 OFF
4 Function select:
OFF: PCIe
ON: SATA
RZ/G2M = OFF
RZ/G2H or N = not used
5 JTAG (see Reference Manual) not used
6
7 Clock Source:
OFF: External Clock input
ON: use Crystal resonator
ON
8 EXBUS Data Bus Width not used

S4

DIP Function default position
1 Reserved OFF
2 LPDDR4 Dip 2 OFF
3 JTAG (see Reference Manual) not used
4 JTAG (see Reference Manual) not used
5 DDR Frequency DIP 1 OFF
6 Division Ratio of PLL1 OFF
7 DDR Frequency DIP 2 OFF
8 Reserved ON

S5

DIP Function default position
1 Not Connected not used
2
3 JTAG (see Reference Manual) not used
4 JTAG (see Reference Manual) not used
5 RCLK Source ON
6 LPDDR4 Dip 1 OFF
7 Reserved OFF
8

S10

DIP OFF ON
S10-1 PCIe SATA
S10-2 MSIOF2 on MicroBus (D12) MSIOF2 on RGB Display (X12)
S10-3 5V Fan (x30) 12V Fan (x30)
S10-4 UART0: Pin Header (x33)
UART2: Not Connected
UART0: microUSB (x9)
UART2: microUSB (x9)

CAN configuration (S1)


DIP switch S1 is used to configure the CAN interfaces CAN1 and CAN2.

DIP OFF (default) ON
S1-1 CAN1 not terminated CAN1 interface terminated (120Ω)
S1-2 CAN2 not terminated CAN2 interface terminated (120Ω)