lpcware

USB ROM - String Descriptor for Serial Number populated from UniqueID

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by mathseng on Mon Dec 30 02:39:23 MST 2013
Hi,
Does anyone have an elegant solution for creating a String Descriptor for the USB Serial Number when using USB ROM on LPC1347 or similar?

Currently, I create a String Descriptor in RAM for all of my strings, and I think this is a little wasteful of limited resources, also fragile because my string table size is manually hard-coded.

I cannot find the hooks to anything like
-             USE_INTERNAL_SERIAL   in http://www.lpcware.com/system/files/Descriptors.c
-             CALLBACK_USB_GetDescriptor   in http://www.lpcware.com/content/forum/usb-serial-number

Bill

Outcomes