Skip to content

V-USB 2026-11-23

Latest

Choose a tag to compare

@starkjohann starkjohann released this 23 Nov 19:11

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.txt has been removed, and V-USB is now available under the GNU GPL v2 or v3 only.
  • New USB ID documentation. USB-ID-FAQ.txt has 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.txt and 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.h can now be included from C++ code.
  • usbMsgFlags is now public. Set it to USB_FLG_MSGPTR_IS_ROM to point usbMsgPtr at flash memory.
  • USB_CFG_DESCR_PROPS_UNKNOWN now honors the USB_PROP_IS_RAM flag.
  • Remote Wake. Bus-powered devices now set the "Remote Wake" attribute in the configuration descriptor.
  • usbSetInterrupt() now accepts zero-length blocks.
  • usbMsgPtr_t defaults to char * 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_SET is now correct when USB_COUNT_SOF is 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.h now handles F_CPU values with UL or L suffixes, such as 12000000UL, and is better commented. (Jamie Montgomerie)
  • Build fixes: the drivertest example now builds on Linux, and the example make-files.sh scripts now work on Windows. (Vladimir Dronnikov)

Documentation and repository

  • PlatformIO: README.md now 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.