<?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>Set USB Device Name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111065/set-usb-device-name</link><description>Hello folks, 
 I&amp;#39;m working on a device that needs a USB storage connection capability. I have put the &amp;quot;mass&amp;quot; sample into my application, and it works as expected except for one thing -- I can&amp;#39;t seem to change the displayed name of the mounted drive. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Feb 2025 11:17:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111065/set-usb-device-name" /><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/523024?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 11:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e8708f1-b4c4-4caf-ad26-21d4efdc1cab</guid><dc:creator>Ben_Squar3d</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry to hijack the post, I have the exact same issue. The provided link is not valid because :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) There is no such&amp;nbsp;&lt;span&gt;_USE_LABEL in ffconf.h, but it is&amp;nbsp;FF_USE_LABEL (ncs v2.7.0)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) I think it is a bad practice to modify the SDK files directly for an industrial sized project. One have to maintain it (with a fork or something)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;On my side, when I click on the bottom right of my screen to see my USB devices and I click on my device, the name is the right one, But &amp;quot;USB Drive&amp;quot; is displayed everywhere else.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;On a PC that never seen any nordic device, it shows as SDCH.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Help is appreciated&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;[EDIT] I tried to use&amp;nbsp;f_setlabel anyway (just to see), and it didn&amp;#39;t worked for me. Still &amp;quot;USB Drive&amp;quot; displayed.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/485505?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 20:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a61242e-2080-43c0-9939-255ddef0d85d</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;Helpful pointer! I can set those values without getting an error, but I have some config options expanding memory that&amp;#39;s available, which may be helpful.&lt;/p&gt;
&lt;p&gt;In particular, `CONFIG_MAIN_STACK_SIZE` may need an increase.&lt;/p&gt;
&lt;p&gt;Unfortunately, the additions from the linked post don&amp;#39;t change the behavior of the USB connections. It&amp;#39;s an interesting direction though, and I&amp;#39;ll let you know if I find something while poking around the ffconf.h file or similar.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/485402?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 12:20:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:296cce72-ef9c-4c12-91dc-284908153b4c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Finn,&lt;/p&gt;
&lt;p&gt;I am onto something, but I have not yet succeeded.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The USB mass storage device name is not set by the USB driver at all. It is part of the fatfs file system (or whatever file system you are using). Please see:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/72280/msc-disk-name?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/72280/msc-disk-name?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However, I only get the return value 12 when trying to do this, so it suggests that I have not found the correct place to do so in Zephyr (the answer in the ticket above is for the nRF5 SDK).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have time for more digging today, but perhaps you can experiment with this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/484576?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 18:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18c30cbe-c978-42af-b887-c8d01c5cf54d</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;I&amp;#39;m using both ports -- I&amp;#39;m routing Serial and Power through J2, but the USB Drive is set up through the J3 (nrf USB) port.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/483491?ContentTypeID=1</link><pubDate>Wed, 15 May 2024 11:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e25292-0fdc-4a7b-b835-ddc9b1ca045c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What USB port on the DK are you using when you see this?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715774320394v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is it the J2 port or the J3 (nRF USB)?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/483352?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 18:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f91da85d-0c98-45d3-9b2b-b37758870ca1</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi -- the DevKit shows up in Two places. One for the JLink UART Port, one for the nRF USB Connection.&lt;/p&gt;
&lt;p&gt;On the USB Connection&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715712763839v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and on JLINK UART&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715712804807v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Neither place shows my customizations.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having the device show up as &amp;quot;Auli_Desktop&amp;quot; -- and I&amp;#39;ve even tried uninstalling the drivers for both the JLink device and the USB connection from the device manager page to no effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/482987?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 10:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe01bda-a75b-47f0-88d2-cc4a222194af</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Finn,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you open device manager in windows, and check the device under the details view:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715595770105v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;(Just an old DK as an example).&lt;/p&gt;
&lt;p&gt;Are your customizations present there?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/482866?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 19:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b52fa0a2-4e11-4cfc-bd7d-4a684597a103</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Breakthrough!&lt;/p&gt;
&lt;p&gt;I checked autoconf.h&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715370009132v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;nRF Desktop defaults override VID PID, Manufacturer, and SN user settings.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715370239825v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If I set the Desktop options, but comment the standard usb options, the standard options are still overwritten by the default desktop options.&lt;/p&gt;
&lt;p&gt;If I set the Desktop options AND THEN set the USB options, then I can change the values in auto conf&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_VID&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0x0102&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_PID&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#b5cea8;"&gt;0x0102&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_MANUFACTURER&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;ZEPHYR&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#c586c0;"&gt;#define&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_PRODUCT&lt;/span&gt;&lt;span style="color:#569cd6;"&gt; &lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;NAME_05&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I was really hopeful about this since it&amp;#39;s new VID, PID, and name.&lt;/p&gt;
&lt;p&gt;However -&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1715370725809v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re still a USB drive.&lt;/p&gt;
&lt;p&gt;Switching to a MacBook ----&lt;/p&gt;
&lt;p&gt;That same device connects as &amp;quot;NO NAME&amp;quot;&lt;/p&gt;
&lt;p&gt;I would be grateful for advice on what to try next.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Finn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/482863?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 19:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9323cf0-0bc4-4ac9-911f-51c0f2997b4a</guid><dc:creator>FinnBiggs</dc:creator><description>&lt;p&gt;Hi Edvin&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I&amp;#39;ve got for now.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:129px;max-width:311px;" alt=" " height="129" src="https://devzone.nordicsemi.com/resized-image/__size/622x258/__key/communityserver-discussions-components-files/4/pastedimage1715369123385v1.png" width="311" /&gt;&lt;/p&gt;
&lt;p&gt;The device is showing up as &amp;quot;USB Drive (E:)&amp;quot;&lt;/p&gt;
&lt;p&gt;On a pristine build, I use these options&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Mounting Options&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_STACK&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_PRODUCT&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;NAME_01&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_VID&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=0x0006&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_PID&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=0x0006&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;and it reconnects still named USB Drive&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:84px;max-width:304px;" alt=" " height="84" src="https://devzone.nordicsemi.com/resized-image/__size/608x168/__key/communityserver-discussions-components-files/4/pastedimage1715369307078v2.png" width="304" /&gt;&lt;/p&gt;
&lt;p&gt;So I run another pristine build with these options&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# Mounting Options&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_STACK&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_PRODUCT&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=&lt;/span&gt;&lt;span style="color:#ce9178;"&gt;&amp;quot;NAME_02&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_VID&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=0x0007&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_USB_DEVICE_PID&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=0x0007&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Flash, and the behavior is the same&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:118px;max-width:311px;" alt=" " height="118" src="https://devzone.nordicsemi.com/resized-image/__size/622x236/__key/communityserver-discussions-components-files/4/pastedimage1715369442474v3.png" width="311" /&gt;&lt;/p&gt;
&lt;p&gt;The same is true of different, duplicate boards running the same code. E.g. on my nRF52840dk, and on two different Xiao BLE Sense boards that hadn&amp;#39;t been connected to the computer before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set USB Device Name</title><link>https://devzone.nordicsemi.com/thread/482827?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 13:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e59c527-892b-470b-bac8-1e2e6c79cd90</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you try to set it using CONFIG_USB_DEVICE_PRODUCT before you connect it to the computer for the first time? Does it appear with your name if you connect it to a new computer after setting this Kconfig? If you don&amp;#39;t have any other computer to test on, you can try modifying the PID/VID to make the computer think it is in fact a new device, and that it needs to check it&amp;#39;s name again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>