USB Development and Testing on Native Simulator
summary
Zephyr now ships a default USB device stack and an experimental host stack while using virtual device/host controllers and a virtual bus to emulate connectivity on native_sim. The setup builds a single Zephyr image with both host and device enabled, runs device+host loopback, and exports devices to Linux via USB/IP server. This enables CI tests on pull requests (CDC ACM and mass‑storage examples already covered), hub emulation is landing, and limitations remain: low‑level error injection, true multi‑image sims, and importing hubs over USB/IP.
AI-written summary · about
