Page 1 of 1

ESP32-P4 USBs

Posted: Sun Oct 05, 2025 4:27 pm
by JohnnyZ
Is it possible to have 3 USBs at the same time on ESP32-P4?
GPIO24,25 - USB JTAG and UART (hard coded)
GPIO25,26 - USB device (eg keyboard or storage)
DP, DM - USB host or device

The best I got is 24,25 as JTAG and DP,DM as device (eg, IDF/examples/peripherals/usb/device/tusb_msc).

Re: ESP32-P4 USBs

Posted: Mon Oct 13, 2025 8:48 am
by tore-espressif
Yes, it is possible. Current software limitation is that on USB peripherals you can't have dual device or dual host. Eg. device mode on both USB Full Speed and USB High Speed ports.

The pin mapping can also differ based on P4 revision you have https://github.com/espressif/esp-idf/tr ... in-mapping