Dynamically Changing Descriptor | Cypress Semiconductor
Dynamically Changing Descriptor
Discussing the issue of multiple devices with my customer. They suggested that we could put jumpers or DIP switches on the board and change something in the descriptor to reflect the switch settings.
I experimented trying to change the device descriptor in code at start up, but it didn't appear to show up in the descriptor received by the PC. In main() after TD_Init(), I did the following:
*((BYTE *)DeviceDscr+16) = 0x55;
This should have changed the Serial Number. I tried changing other offsets with no results on the PC side. I also tried changing it in a couple of other places in the code.
I'm probably missing something obvious.