CDC serialnumber USB‚Ì usb_descriptors.c ›modify const USB_DEVICE_DESCRIPTOR device_dsc= { 0x12, // Size of this descriptor in bytes USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type 0x0200, // USB Spec Release Number in BCD format CDC_DEVICE, // Class Code 0x00, // Subclass code 0x00, // Protocol code USB_EP0_BUFF_SIZE, // Max packet size for EP0, see usb_config.h 0x04D8, // Vendor ID 0x000A, // Product ID: CDC RS-232 Emulation Demo 0x0100, // Device release number in BCD format 0x01, // Manufacturer string index 0x02, // Product string index 0x03, // Device serial number string indexA <---------- from 0x00 to 0x03 0x01 // Number of possible configurations }; ›add const struct{uint8_t bLength;uint8_t bDscType;uint16_t string[10];}sd003={ sizeof(sd003),USB_DESCRIPTOR_STRING, '0','1','2','3','4','5','6','7','8','9'}; ›uncomment //Array of string descriptors const uint8_t *const USB_SD_Ptr[USB_NUM_STRING_DESCRIPTORS]= { (const uint8_t *const)&sd000, (const uint8_t *const)&sd001, (const uint8_t *const)&sd002, (const uint8_t *const)&sd003 //(const uint8_t *const)&sd003 //uncomment if implementing a serial number string descriptor named sd003 }; usb_config.h ›modify #define USB_NUM_STRING_DESCRIPTORS 4 //Set this number to match the total number of string descriptors that are implemented in the usb_descriptors.c file