<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DK5340 Config USB Driver VID, PID and Revision</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91150/dk5340-config-usb-driver-vid-pid-and-revision</link><description>Hello, 
 I&amp;#39;m using the Sample usb/CDC_ACM on the DK5340 with VSC. I can set VID=XXXX and PID=YYYY, works fine. 
 But how can I set the REVISION=ZZZZ ? So that Windows sees the revision in the driver properties e.g. USB\VID_XXXX&amp;amp;PID_YYYY&amp;amp;REV_ZZZZ 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Aug 2022 06:49:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91150/dk5340-config-usb-driver-vid-pid-and-revision" /><item><title>RE: DK5340 Config USB Driver VID, PID and Revision</title><link>https://devzone.nordicsemi.com/thread/382566?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 06:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b044d08d-5a5e-46a0-bb4b-b1665815c939</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at usb_descriptor.c I can find that in&amp;nbsp;USBD_DEVICE_DESCR_DEFINE macro that vid, pid and bcddevice (rev) is set as:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .idVendor = sys_cpu_to_le16((uint16_t)CONFIG_USB_DEVICE_VID),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .idProduct = sys_cpu_to_le16((uint16_t)CONFIG_USB_DEVICE_PID),&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .bcdDevice = sys_cpu_to_le16(USB_BCD_DRN),&lt;/p&gt;
&lt;p&gt;From usb_ch9.c it looks like&amp;nbsp;USB_BCD_DRN is set at compile time as&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/** USB Device release number (bcdDevice Descriptor field) */&lt;br /&gt;#define USB_BCD_DRN &amp;nbsp; &amp;nbsp; (USB_DEC_TO_BCD(KERNEL_VERSION_MAJOR) &amp;lt;&amp;lt; 8 | \&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USB_DEC_TO_BCD(KERNEL_VERSION_MINOR))&lt;/p&gt;
&lt;p&gt;So I don&amp;#39;t really see any other way than to either modify the&amp;nbsp;USBD_DEVICE_DESCR_DEFINE macro with a different .bcdDevice value, alternatively you can likely&amp;nbsp;update .bcdDevice this after calling the&amp;nbsp;USBD_DEVICE_DESCR_DEFINE macro.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>