This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM623: How to access the LAN9694 (external SoC) UART CLI (debug console) from the AM623 USB interface

Part Number: AM623

Hi Team,

We have a requirement to access the LAN9694 (external SoC) UART CLI from the AM623 USB interface. Due to hardware limitations, it is not possible to add a USB‑to‑UART bridge IC (such as the FT230x).

Therefore, we need to access the LAN9694 UART debug console from the AM623 USB port without adding any additional hardware ICs, using a software‑based solution instead.

Could you please share your inputs on how this requirement can be achieved?

Below Development environment using to test AM623 USB CLI

Evaluation Board:- AM62B-P1

SDK:- PROCESSOR-SDK-LINUX-RT-AM62X — Processor SDK RT-Linux for AM62x  Version: 11.01.05.03 

Build Environment:- Yocto build environment

 

Thanks & Regards,

Janani

  • Hi Janani,

    I am not familiar with LAN9694, but it is not possible to directly connect a USB port with a UART port, they are 2 different interfaces in electric level.

    Can you attach the LAN9694 UART port to any of the UART port on AM623?

  • Hi Bin Liu,

    For better understanding, I am attaching the picture. The AM623 UART is connected to the LAN9694 UART. In the current design, due to hardware limitations, no additional USB‑to‑UART bridge IC can be added on the AM623 side. Without adding any extra hardware, how can we receive the Ethernet switch UART data on the AM623 UART and display it over the AM623 USB interface through software routing? Kindly share your inputs.

    Thanks & Regards,

    Janani

  • Hi Janani,

    If you want the connection of UART6-to-USB1 on AM623x to be a function as USB-to-UART bridge, you can configure the AM623x USB1 to device mode, then load the kernel USB serial gadget driver (g_serial). Finally you create a Linux userspace program to read UART data from UART6 (/dev/ttySx) and write the data to USB serial port (/dev/ttyGS0) created by the g_serial driver.