<?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>No SOURCES given to Zephyr library: drivers__usb__device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93014/no-sources-given-to-zephyr-library-drivers__usb__device</link><description>I want to use USB MSC MODE in my custom nRF5340 board 
 
 i define macro in file .conf to enable MSC below 
 
 
 
 CONFIG_USB_DEVICE_DRIVER =y 
 CONFIG_USB_DEVICE_STACK =y 
 CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Zephyr MSC sample&amp;quot; 
 CONFIG_USB_DEVICE_LOG_LEVEL_ERR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Feb 2024 08:31:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93014/no-sources-given-to-zephyr-library-drivers__usb__device" /><item><title>RE: No SOURCES given to Zephyr library: drivers__usb__device</title><link>https://devzone.nordicsemi.com/thread/468326?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2024 08:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98be420e-f3e6-4126-a3b4-8a8a3e9dc71c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you still have issues, I would recommend that you open up a new thread.&lt;/p&gt;
&lt;p&gt;As mentioned in the comments here, you will need an overlay, similar to this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.4.99-ncs1-2/samples/subsys/usb/cdc_acm/app.overlay#L0-L1"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.4.99-ncs1-2/samples/subsys/usb/cdc_acm/app.overlay#L0-L1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you can also route the console to cdc_acm, like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,console = &amp;amp;cdc_acm_uart0;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library: drivers__usb__device</title><link>https://devzone.nordicsemi.com/thread/468296?ContentTypeID=1</link><pubDate>Sun, 11 Feb 2024 03:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c77b0a-2e89-4f27-9437-e8ad9a241a32</guid><dc:creator>CktDesigner</dc:creator><description>&lt;p&gt;Hi...&amp;nbsp; &amp;nbsp;I&amp;#39;m trying to include USB in my application and getting the same result using v2.5.2&lt;/p&gt;
&lt;p&gt;My USB configs are:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_STACK&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_PRODUCT&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;My App USB&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_PID&lt;/span&gt;&lt;span&gt;=0x0001&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DRIVER_LOG_LEVEL_ERR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_LOG_LEVEL_ERR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;m attempting to follow the CDC-ACM example and expect that I&amp;#39;ve left out some CONFIG which causes the driver code to be included...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;How did you get your problem resolved?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks!!&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No SOURCES given to Zephyr library: drivers__usb__device</title><link>https://devzone.nordicsemi.com/thread/391431?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2022 12:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d24d60c0-17c4-4cea-8ff7-6a0f8b716af3</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You might have to enable the USB device in the board dts or overlay file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>