Welcome to Firefly
English
Firefly Docsss
Last Updated: 2026-11-23 15:34:50

Debug Usage

If you are doing U-Boot or kernel development, the USB serial adapter (short for USB to serial TTL adapter) is very useful for checking the system startup log, especially when there is no graphical desktop display.

Hardware Connection

Serial port to USB adapter, there are four pins:

  • 3.3V Power, no need to connect.
  • GND, Ground, connect to GND pin of the board.
  • TXD, Transmit, connect to TX pin of the board.
  • RXD, Receive, connect to RX pin of the board.

Note

If you encounter the problem that TX and RX cannot input and output when using other serial adapters, you can try to exchange TX and RX connections.

AIO-1126BQ38 serial port connection diagram:

Serial Parameters

AIO-1126BQ38 uses the following serial parameters:

  • Baud rate: 1500000
  • Data bit: 8
  • Stop bit: 1
  • Parity check: none
  • Flow control: none

Using Serial Debug

Install Driver

Download driver and install:

After the adapter is inserted, the system will prompt for the discovery of new hardware and initialization, and then the corresponding COM port can be found in the device manager:

Install Software

Putty or SecureCRT is generally used on Windows; the free version of MobaXterm is recommended. It is a powerful terminal software, and its usage is similar to the tools above.

Download MobaXterm:

  1. Select session as Serial.
  2. Modify Serial port to the COM port found in the device manager.
  3. Set Speed (bsp) to 1500000.
  4. Click OK button.

There are many options available on Ubuntu:

  • minicom
  • picocom
  • kermit

The following shows how to use minicom.

Install minicom

sudo apt-get install minicom

After connecting the serial port line, check the serial port device file. The following example is /dev/ttyUSB0:

$ ls /dev/ttyUSB*
/dev/ttyUSB0

Run:

$ sudo minicom
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Jan  1 2014, 17:13:19.
Port /dev/ttyUSB0, 15:57:00
Press CTRL-A Z for help on special keys

Based on the above tips: Press Ctrl-a and then press Z again to bring up the help menu.

Press O to enter the setting interface, select Serial port setup, then enter the letter prompted earlier, and set it as follows:

   E -    Bps/Par/Bits       : 1500000 8N1
   F - Hardware Flow Control : No
   G - Software Flow Control : No

Note

Hardware Flow Control and Software Flow Control should be set to No, otherwise you may not be able to input.

After finishing the setting, go back to the previous menu and select Save setup as dfl to save as the default configuration, which will be used by default later.

On this page