Repository navigation
V-USB 2026-11-23
This is the first release since 2012-12-06. It collects the driver improvements and fixes made since then, moves the host-side tools to libusb-1.0, and changes how V-USB is licensed and how USB IDs are documented.
License and USB IDs
- GPL only. V-USB is no longer offered under a commercial license.
CommercialLicense.txthas been removed, and V-USB is now available under the GNU GPL v2 or v3 only. - New USB ID documentation.
USB-ID-FAQ.txthas been rewritten. It explains how to choose USB IDs for hobby projects and what to consider technically. - Shared ID pairs clarified.
USB-IDs-for-free.txtand the source code comments now state clearly that the shared VID/PID pairs are not assigned to anybody, not authorized by the USB-IF, and not guaranteed to be free of conflicts. The rules for using them have not changed. - More shared pairs. Shared pairs for Mass Storage, Audio, CDC-ECM and MTP class devices were added. These classes require bulk endpoints, which low-speed devices are not allowed to use, so they cannot be implemented with V-USB in a standards-compliant way.
Driver
- New 18 MHz module without CRC check (
usbdrvasm18.inc, contributed by Lukas Schrittwieser). It is smaller than the CRC-checking 18 MHz module, which makes it useful for boot loaders on 18 MHz boards. - Faster CRC. The fast CRC routine is now shorter and faster.
- Large HID descriptors. HID report descriptors larger than 255 bytes now work, for example for Windows 8 Sensor API devices. This requires
USB_CFG_LONG_TRANSFERS. (Pat Thoyts) - C++.
usbdrv.hcan now be included from C++ code. usbMsgFlagsis now public. Set it toUSB_FLG_MSGPTR_IS_ROMto pointusbMsgPtrat flash memory.USB_CFG_DESCR_PROPS_UNKNOWNnow honors theUSB_PROP_IS_RAMflag.- Remote Wake. Bus-powered devices now set the "Remote Wake" attribute in the configuration descriptor.
usbSetInterrupt()now accepts zero-length blocks.usbMsgPtr_tdefaults tochar *again, so existing projects compile without warnings.
Fixes
- 15 MHz module: the terminating SE0 was 3 CPU cycles longer than intended.
- Interrupt edge: the default for
USB_INTR_CFG_SETis now correct whenUSB_COUNT_SOFis defined as 0. Previously the interrupt was configured for the falling edge instead of the rising edge. (Andrey Zonov) - 20 MHz module: corrected the cycle counts in comments.
Libraries and examples
- libusb-1.0. The host-side libraries (
opendevice,hiddata) and the example tools (usbtool,hidtool,set-led,runtest) now use libusb-1.0 on all platforms, including Windows. If your own host software builds on these libraries, update your build to link against libusb-1.0. (tickelton) osctune.hnow handlesF_CPUvalues withULorLsuffixes, such as12000000UL, and is better commented. (Jamie Montgomerie)- Build fixes: the drivertest example now builds on Linux, and the example
make-files.shscripts now work on Windows. (Vladimir Dronnikov)
Documentation and repository
- PlatformIO:
README.mdnow explains how to use V-USB in a PlatformIO project. - Circuit diagrams: they are now included as PNG files, so Eagle is no longer needed to view them. (brewmanz)
- Housekeeping: spelling fixes, and the size reference tests now use avr-gcc 9.