How to add USB Serial port to XMOS Reference Audio project ?

If you have a simple question and just want an answer.
networkaudio
Newbie
Posts: 1
Joined: Sun Sep 28, 2025 4:44 pm

Post by networkaudio »

Would love to see this on the newer platform. Have been tasked with doing USB to 8 analog bidirectional line level audio channels and 8 bidirectional RS422 and doing this all in one device would solve so many issues.
User avatar
infiniteimprobability
Verified
XCore Legend
Posts: 1177
Joined: Thu May 27, 2010 10:08 am

Post by infiniteimprobability »

Do you have an xcore.ai multichannel audio board?

If so you can spin up the code here:

In a fresh sandbox:​
  • git clone -b feature/cdc git@github.com:ed-xmos/sw_usb_audio.git​

    cd sw_usb_audio/app_usb_aud_xk_316_mc/​

    cmake -G "Unix Makefiles" -B build​

    xmake –j –C build 2AMi8o8xxxxxx_cdc​

    xrun --xscope bin/2AMi8o8xxxxxx_cdc/app_usb_aud_xk_316_mc_2AMi8o8xxxxxx_cdc.xe
From linux you can then run minicom -D /dev/ttyACM0 (or whatever your device is) or spin up Putty and add the new com port (you can identify it in device manager)

The files that have been added are:

Code: Select all

├── app_virtual_com_extended.h ​
├── app_virtual_com_extended.xc ​
├── cdc_descriptor_defs.h ​
├── xud_cdc.h ​
└── xud_cdc.xc 
But a few small changes were needed to lib_xua to get the endpoints connected up.

I'll talk internally about making this an appnote.
Engineer at XMOS