Skip to content

usb.core: the ESP32-P4 needs no full_speed=True behind a high-speed hub - #746

Merged
bdbarnett merged 1 commit into
mainfrom
p4-hub-splits-docs
Nov 21, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
p4-hub-splits-docs

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

With PyDevices/omnipython-builds#624 the ESP32-P4's firmware builds the component registry's USB host library with split transactions, the same as the ESP32-S31's, so a keyboard, MIDI controller or other full-speed device works behind a high-speed hub without usb.core.start(full_speed=True). This updates what told P4 users otherwise: usb.core.start()'s docstring and the module comment, the limits row in docs/reference/usb-support.md, the hub paragraph in the USB guide, and the WIFI6 DEV-KIT board config's note on its onboard hub. full_speed=True stays documented for P4 firmware built on ESP-IDF's own host library, and the DEV-KIT's once-per-power-up speed rule is unchanged.

Checked on a Waveshare ESP32-P4-WIFI6-DEV-KIT running #624's image, on its onboard CH334F hub at high speed: an Arturia KeyStep Pro enumerated at full speed and answered 50 of 50 MIDI identity requests while a PNY flash drive at high speed read at 12.8 MB/s (12.9 MB/s on ESP-IDF's own library) and wrote and read back a 1 MiB file with a matching SHA-256. After a hard reset, full_speed=True still brought both up at full speed. tests/test_usb_core_speed_guard.py passes. Merge after #624.

The P4's firmware now builds the registry's USB host library with split
transactions, as the S31's does, so keyboards and MIDI controllers work
behind a high-speed hub. start()'s docstring, the support table, the USB
guide and the WIFI6 DEV-KIT board config say so, and keep full_speed=True
for P4 firmware on ESP-IDF's own host library. Checked on the DEV-KIT's
onboard hub: an Arturia KeyStep Pro at full speed and a flash drive at high
speed together, with no full_speed.
@bdbarnett
bdbarnett merged commit 8454111 into main Nov 21, 2026
7 checks passed
@bdbarnett
bdbarnett deleted the p4-hub-splits-docs branch November 21, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant