nRF5340 Audio DK: Auto-Switch Input Between UART (USB) and BLE

Hi,

We are working on a project using the nRF5340 Audio DK. We want to take user input either from UART or BLE, and switch between them based on the connection status.

Here’s what we want to do:

  1. If the USB is connected to a PC, the device should automatically detect it and use UART for user input.

  2. If the USB is not connected (running on battery), it should automatically switch to BLE for user input.

How can we make this work?
Can we start with the USB CDC ACM example?
Also, how can we use USBREG on the nRF5340 Audio DK?

Thanks,
Aditya

Related