<?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>How to change the USB iSerialNumber</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124227/how-to-change-the-usb-iserialnumber</link><description>Hi Nordic Teams: 
 
 I&amp;#39;m using Nordic Connect SDK v3.1.0 and nRF52840, I want to update USB iSerialNumber string in hid-keyboard samples. 
 I tried two methods but they didn&amp;#39;t work. One was to change the &amp;#39;CONFIG_USB_DEVICE_SN&amp;#39;, 
 and the other was to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Sep 2025 17:52:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124227/how-to-change-the-usb-iserialnumber" /><item><title>RE: How to change the USB iSerialNumber</title><link>https://devzone.nordicsemi.com/thread/549464?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 17:52:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d82f3af-bbde-4ca1-baaf-e0a00692f191</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/hid-keyboard/README.html#usb-hid-keyboard"&gt;USB HID keyboard sample&lt;/a&gt; uses a new (experimental) USB device See &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/connectivity/usb/device_next/usb_device.html"&gt;New USB device support&lt;/a&gt; for details. With that stack, by default the Serial Number is fetched from the &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52840/page/ficr.html#register.DEVICEID-0"&gt;DEVICEID register in FICR&lt;/a&gt;. There is a macro for Serial Number, &lt;a href="https://docs.nordicsemi.com/bundle/zephyr-apis-latest/page/group_usbd_api.html#ga26af7f93205dc78eeb60a3c09aa7b2d3"&gt;USBD_DESC_SERIAL_NUMBER_DEFINE&lt;/a&gt;, but it is hard wired to the DEVICEID.&lt;/p&gt;
&lt;p&gt;The methods that you tried were for the old stack. With the old stack, you can change the Serial Number by setting CONFIG_USB_DEVICE_SN or overriding usb_update_sn_string_descriptor(). Some samples, such as the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/usb/hid-mouse/README.html#usb-hid-mouse"&gt;USB HID mouse sample&lt;/a&gt;, still uses the old USB device stack, where those methods are available.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>