Skip to content

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Dec 5, 2023

USB device VID and PID can be defined thanks:

  • boards.txt: *.build.vid or *.build.pid
  • build_opt.h: define CUSTOM_USBD_VID or CUSTOM_USBD_PID

Else if not defined or specified, default to the ST VID, with PID assigned to HID or CDC devices.

Note

if value is specified in the boards.txt then CUSTOM_USBD_* is ignored.

Fixes #2215

@fpistm fpistm added the enhancement New feature or request label Dec 5, 2023
@fpistm fpistm added this to the 2.8.0 milestone Dec 5, 2023
@fpistm fpistm merged commit b149a92 into stm32duino:main Dec 5, 2023
@fpistm fpistm deleted the USBD_PID branch December 5, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

Unable to set USBD_PID to 0 (error thrown)
1 participant