<?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 enable and disable USB connection when using nrf52840 DK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57873/how-to-enable-and-disable-usb-connection-when-using-nrf52840-dk</link><description>Hello Nordic Support, 
 I am working on an application that logs data to SD card when disconnected from USB and appears as USB Mass Storage Class on host PC when connected to USB. Currently, this is how I am testing the application. During logging phase</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Mar 2020 09:22:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57873/how-to-enable-and-disable-usb-connection-when-using-nrf52840-dk" /><item><title>RE: How to enable and disable USB connection when using nrf52840 DK?</title><link>https://devzone.nordicsemi.com/thread/241302?ContentTypeID=1</link><pubDate>Tue, 24 Mar 2020 09:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b65c4c-dc27-4aba-8819-471bf6a3495c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, just open a new ticket if the issue is a bit on the side of the previous one. These cases get a bit hard to navigate if they cover multiple topics.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable and disable USB connection when using nrf52840 DK?</title><link>https://devzone.nordicsemi.com/thread/241140?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 13:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1054fc87-3e08-4841-961c-bea6b4c97560</guid><dc:creator>anusha</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for the example. I was able to dynamically enable/disable the USB using this example as a reference. One issue that I&amp;#39;m facing though is related to initializing SD card and writing to it after USB is disabled. I will try to debug this and if needed, will raise another question.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable and disable USB connection when using nrf52840 DK?</title><link>https://devzone.nordicsemi.com/thread/235778?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 16:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9feffca7-e01b-4047-9151-1dc720b9fb08</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Anunsha&lt;/p&gt;
&lt;p&gt;I finally found the example, but realized it was written for a really old version of the SDK (v12.2.0).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This was a training that showed how you could dynamically disable and enable the USB connection without requiring you to remove the USB cable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will attach it anyway in case you can find it useful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7a6d409eda024f999a85587cc2a9964f/training_5F00_usbd_5F00_msc_5F00_cdc_5F00_01.zip"&gt;devzone.nordicsemi.com/.../training_5F00_usbd_5F00_msc_5F00_cdc_5F00_01.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7a6d409eda024f999a85587cc2a9964f/training_5F00_usbd_5F00_msc_5F00_cdc_5F00_02.zip"&gt;devzone.nordicsemi.com/.../training_5F00_usbd_5F00_msc_5F00_cdc_5F00_02.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7a6d409eda024f999a85587cc2a9964f/training_5F00_usbd_5F00_msc_5F00_cdc_5F00_02_5F00_solution.zip"&gt;devzone.nordicsemi.com/.../training_5F00_usbd_5F00_msc_5F00_cdc_5F00_02_5F00_solution.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you can figure out the example, if not I will do my best to help next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable and disable USB connection when using nrf52840 DK?</title><link>https://devzone.nordicsemi.com/thread/235048?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 04:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c6af630-22ac-4737-99cb-2e122a31de50</guid><dc:creator>anusha</dc:creator><description>&lt;p&gt;Thanks,&amp;nbsp;&lt;span&gt;Torbj&amp;oslash;rn. Looking forward to your suggestion.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable and disable USB connection when using nrf52840 DK?</title><link>https://devzone.nordicsemi.com/thread/234727?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 15:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1fe38e-c17d-4546-9a19-b6ccb6cc6664</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Anusha&lt;/p&gt;
&lt;p&gt;I assume what you need is&amp;nbsp;to disable the USBD driver so that you can freely access the SD card again?&lt;/p&gt;
&lt;p&gt;I should have an old example somewhere showing how to do this, but I need some more time to find it. With some luck I can provide some code for you later in the week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>