uartCfg - Configure UART

Configure a UART port. This command can be used to adjust the baud rate and bit settings of a UART port. Additionally, it can be used to configure additional UART ports via USB.

Usage:

- command: uartCfg <uart_port> <speed> [<triplet>]
  [id: <usb_device_id>]
  [path: <usb_device_path>]
  [interface: <usb_device_interface>]

Argument

Description

uart_port

UART port name: UART0, UART1, UART2, etc.

speed

Baud rate.

triplet

UART configuration triplet: 8N1 or 7E1

usb_device_id

Optional: USB device identifiers: VID:PID.

usb_device_path

Optional: USB device path: port. ... .port.

usb_device_interface

Optional: USB device interface: interface_number.

External USB serial interfaces can be configured as UART ports by using the usb_device_id, usb_device_path, or usb_device_interface fields. FTDI UART adapters and USB-CDC peripherals are supported.

Note

The built-in UART ports cannot be redefined. That is, the usb_device_id, usb_device_path, and/or usb_device_interface parameters can’t be set on UART0 or UART1.

Special Test Point Usage on PLT-200A:

- command: uartCfg UART0 tp

On the PLT-200A, use the tp flag to disable UART0, and re-use its pins as DATP08, DATP09, DDTP15, and DDTP16. This functionality is not available on PLT-300A.

Examples