<?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 initialize and uninitialize USBD dynamically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93619/how-to-initialize-and-uninitialize-usbd-dynamically</link><description>Hello there 
 I need to dynamically initialize and uninitialize the USB HID in my application. Because there is a condition on which I don&amp;#39;t want any PC to recognize my device as a USB HID. 
 If I initialize the USB in Startup and uninitialize it at the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 18 Dec 2022 13:32:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93619/how-to-initialize-and-uninitialize-usbd-dynamically" /><item><title>RE: How to initialize and uninitialize USBD dynamically</title><link>https://devzone.nordicsemi.com/thread/401150?ContentTypeID=1</link><pubDate>Sun, 18 Dec 2022 13:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eb51d92-8b3c-40e4-9529-05ac8a1dd86d</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;Sorry for the late answer. You might have solved your issue but I just wanted to say that for implementing the dynamic initialization, it looks like you need to reset the microcontroller.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If I wanted to implement&amp;nbsp;the dynamic initialization and did not mind microcontroller reset, I would use the fds functions to save the desired mode and check it on startup.&lt;br /&gt;Anytime I wanted to reinitialize the USBD in a different way (different HID config&amp;nbsp;for instance) I would save the desired initialization flag in flash and reset the microcontroller by software.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to initialize and uninitialize USBD dynamically</title><link>https://devzone.nordicsemi.com/thread/395014?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 01:10:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8845f40-1f90-48d2-bdb4-290a515e89bb</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;I have the same question,&lt;/p&gt;
&lt;p&gt;i want to&lt;/p&gt;
&lt;h1 class="name"&gt;initialize and uninitialize USBD dynamically&lt;/h1&gt;
&lt;p&gt;beasuse some times i start USB audio, and other time start USB uart(nRF5_SDK17\examples\peripheral\ADC)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to initialize and uninitialize USBD dynamically</title><link>https://devzone.nordicsemi.com/thread/394307?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 06:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:968d1b24-fcdc-4af0-bc85-5eb335ecee61</guid><dc:creator>Vahidreza</dc:creator><description>&lt;p&gt;I did not need to uninitialize the USB HID. app_usbd_stop() and app_usbd_disable() were enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>