ESP32-P4 USBs

JohnnyZ
Posts: 36
Joined: Thu Jan 11, 2024 10:24 am

ESP32-P4 USBs

Postby JohnnyZ » Sun Oct 05, 2025 4:27 pm

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).

tore-espressif
Espressif staff
Espressif staff
Posts: 28
Joined: Thu Oct 07, 2021 8:11 am

Re: ESP32-P4 USBs

Postby tore-espressif » Mon Oct 13, 2025 8:48 am

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

Who is online

Users browsing this forum: No registered users and 4 guests