How to change USB Vendor ID and Product ID programmatically?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
didi_4657011
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello,

I want to release board with vendor ID purchased from USB.org.

Each board must have the same USB Vendor ID but different Product ID.

I don’t want to change manually the Product ID and rebuild the project for each board separately.

My board based on psoc5LP CY8C5868LTI-LP038. It conations fast speed USB (USBFS).

I think of writing the Product ID into the EEPROM and then set the value to usb Product ID…

I it possible to change USB Vendor ID and Product ID programmatically (not via dialog)?

If the answer is yes , how can it be done?

Best regards,

Dima

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

Yes, that's possible.

The Product ID is part of the descriptor. It is located in USBFS_descr.c file generated by the USBFS component. If you want to modify the descriptor, you can set the macro USER_SUPPLIED_DESCRIPTORS and define your own descriptor, including the Product ID.

View solution in original post

0 Likes
2 Replies