Skip to content
×

Notice

Zero-Code Firmware UART Protocol Test Script Guide

The Zero-Code Firmware UART Protocol Test Script is provided by Phaten Cloud (Phaten) for the XMOS XU316 platform. It is designed for hardware/firmware and test engineers to quickly validate UART communication and control between an MCU and the audio processor. Without writing extra application code, it can cover connection, handshake, mode switching, and common control operations.

Intended Audience & Use Cases

  • Audience: Hardware/Firmware Engineers, Test Engineers
  • Use Cases: UART command interaction, parameter read/write, status query, mode switching verification
  • Platform: XMOS XU316 (flashed with firmware that supports the Zero-Code command set)

Script Download And Tools Entry

  • Zero-Code Firmware UART Test Script Download


    Get the latest script and companion tools from the Phaten (Phaten Cloud) Tools & Software Center (login required).

    Open Tools & Software Center

Prerequisites

  • Operating System: Windows
  • Hardware Connection: Connect the device to the PC via USB/UART and confirm the COM port appears in Device Manager
  • Driver: Install and confirm the UART driver opens correctly
  • UART Settings: 115200 / 8-N-1 (follow firmware documentation if different)

Quick Start

  1. Launch the script program.

  2. Select test firmware type:

    • hf83311 / hf86611 / hf87611 / hf87621
    • ph73211_lp / ph73311_lp / ph83211_lp / ph83311_lp
    • Full mode test (covers all supported modes, suitable when firmware is unknown or comprehensive verification is needed)
  3. Input device information:

    • UAC1 VID (default 20B1):
    • UAC1 PID (default 0017):
    • UAC2 VID (default 20B1):
    • UAC2 PID (default 0016):
    • Manufacturer Name (default Phaten):
    • Product Name (default XMOS XU316):
    • Serial Number (default 123456789ABCDEF):

Notes

  • For each line above, the next line will appear only after you input the corresponding content and press the Enter key. Press the Enter key directly to use the default value.
  • If you are unsure about the correct VID and PID, please use the default values first, then modify them according to the actual situation.
  • If using the default VID and PID, after modifying the product name, you must use the official driver to see the modification results. The PC side cannot directly see the modified name.
  1. Select UART port: Automatically scans available ports, select the COM port corresponding to XU316; manually refresh if the list is not updated.

  2. Power-on handshake: The program listens to device power-on data, prints received content, and automatically completes necessary responses until entering the "Firmware Selection Menu".

  3. Execute function menu: Perform media control, mode switching, MCLK switching, unmute, audio latency configuration, firmware version query, etc., in the main menu.

Observability During Execution

  • The tool prints TX/RX data in real time for troubleshooting
  • For steps that require device responses, the script waits and confirms automatically

Feature Overview

  • Boot handshake: Verifies normal startup and completes the handshake sequence
  • Firmware selection with mode mapping: Only shows input/output modes supported by the selected firmware to avoid wrong selections
  • Input/Output mode switching: Validates switching across audio paths (request → confirm → configure → result)
  • Media control: Validates the control path for volume, play/pause, previous/next, and more
  • MCLK switching: Switches between internal/external MCLK and validates clock configuration takes effect
  • Common controls: Unmute, audio format/latency configuration, firmware version query, and more

Troubleshooting

  • UART port not found: Check cables and drivers, and confirm the COM port appears in Device Manager
  • No output after selecting the port: Confirm the correct port is selected, power-cycle the device, and observe boot logs
  • Mode switching fails: Confirm the selected firmware matches the device; switch to a basic mode first and then validate other modes

Terms & Parameters

  • COM port: The UART device identifier on Windows
  • 8-N-1: 8 data bits, no parity, 1 stop bit
  • MCLK: Master Clock (MCLK)

咨询反馈

点击展开咨询反馈表单
×

Notice

Company Name:

Email Address:

Subject:

Message: