Multiple USB Devices on one development board?

I’m developing a PCB that will include an FPGA and an ESP32, and I’d like to add a USB to JTAG as well as a USB to UART for programming both the FPGA and the ESP. I’m assuming I’m going to also need a usb switch, basically just a usb hub controller if I want to route the usb from the JTAG chip and the UART chip to the same female usb port on the board. I’m wondering if something like this would be good practice, or if there’s some limitations or something I’m not considering.

I’d assume it’s technically identical to having two separate boards each plugged into a USB hub. Would there be potential problems with them sharing a port?

I’m just wondering if this is an ok idea, or if there’ll be problems with it.

Posted Nov 28, 2022, 7:47 PM UTC

47
duskwuff•

You don't need multiple devices. FTDI has a number of parts (like FT232H) which can handle both of those requirements.

5
TylerTimojOP•

That looks promising, and would significantly reduce my BOM. Do you know it’s MPSSE can be both a UART and JTAG at the same time? Ideally I’d like my computer to see two separate devices for UART and JTAG.

1
duskwuff•

MPSSE on one channel (typically channel A) handles JTAG, and the other channel handles UART. They're both part of a single USB device, but the FTDI drivers will expose the UART channel to your operating system as a serial device; you don't need to interact with the USB interface directly.

This is a fairly common configuration on development boards, and there's a good chance that the software you're using will recognize a FT232 JTAG programmer out of the box.

5
p-rimes•

Do you mean FT2232H? (FT232H only has one channel / MPSSE, FT2232H has two channels / MPSSEs. So one can be JTAG and the other can be UART)

1
duskwuff•

You're right, I'm thinking of the FT2232 series. Either way, they've got a bunch of single-chip solutions which will be much more elegant than an embedded USB hub.

1
duane11583•

look at the digilent usb programmers (for xilinx)

you want to clone that on your board (xilinx understands that setup)

ultimately you want to clone the dual channel one channel A = jtag, B=serial port.

1