How to add USB Serial port to XMOS Reference Audio project ?
-
- Newbie
- Posts: 1
- Joined: Sun Sep 28, 2025 4:44 pm
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.
-
Verified
- XCore Legend
- Posts: 1177
- Joined: Thu May 27, 2010 10:08 am
Do you have an xcore.ai multichannel audio board?
If so you can spin up the code here:
In a fresh sandbox:
The files that have been added are:
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.
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
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
I'll talk internally about making this an appnote.
Engineer at XMOS