<?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>Keep USB enabled while in bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71543/keep-usb-enabled-while-in-bootloader</link><description>Hi, 
 
 I am using SDK_15.2.0 and softdevice S140_v6_1_1. 
 Host communicate with 52840 via USB (CDC UART). Doing firmware update with proprietary message format. 
 Stored new image in flash (Bank_1) and change bootloader setting and reset device to update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Mar 2021 13:04:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71543/keep-usb-enabled-while-in-bootloader" /><item><title>RE: Keep USB enabled while in bootloader</title><link>https://devzone.nordicsemi.com/thread/300137?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 13:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b26455-7c0c-49bb-b683-826b1576432a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Since the bootloader resets the device, the USB will also be reset. I don&amp;#39;t think it&amp;#39;s possible to change this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep USB enabled while in bootloader</title><link>https://devzone.nordicsemi.com/thread/297948?ContentTypeID=1</link><pubDate>Fri, 05 Mar 2021 04:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d7479d-e27b-493a-876e-6481271bf6c2</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you have any update?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nirav Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep USB enabled while in bootloader</title><link>https://devzone.nordicsemi.com/thread/295764?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 09:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07dad2b6-4b8e-4b1d-9fd9-d08b1246d594</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Thanks Sigurd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Does not facing issue what you suggest to do. Let me explain in detail.&lt;/p&gt;
&lt;p&gt;I am using application with &lt;strong&gt;BLE+USB&lt;/strong&gt; support and Bootloader with &lt;strong&gt;BLE&lt;/strong&gt; only. So what happen when I update application via BLE bootloader (Jump to bootloader using&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_GPREGRET = 1), USB getting disabled when bootloader start running. To keep USB active I have added USB driver in BLE supported bootloader so I able to keep USB active while advertising in bootloader.&lt;/p&gt;
&lt;p&gt;Problem is after receiving image of new firmware, bootloader reset the device to copy new image from BANK1 --&amp;gt; Bank_0 at that time bootloader will not activate any transport layer just copying new image and reset device again to boot new image from BANK_0.&lt;/p&gt;
&lt;p&gt;I want to make USB enabled for whole the time like while in application and bootloader.&lt;/p&gt;
&lt;p&gt;Step_1: In application (USB is active)&lt;/p&gt;
&lt;p&gt;Step_2: Bootloader with BLE+USB (USB is active (As I added USB driver in BL)&lt;/p&gt;
&lt;p&gt;Step_3: After receiving image via BLE bootloader device reset to apply new image (USB is active till reset)&lt;/p&gt;
&lt;p&gt;Step_4: Bootloader copying image (&lt;strong&gt;USB is disabled&lt;/strong&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I will mange to enabled USB in step_4 my issue will be resolved.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1614073371100v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nirav Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep USB enabled while in bootloader</title><link>https://devzone.nordicsemi.com/thread/294318?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 08:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6db2173-fd96-409c-8d1f-7b2dfda95bd5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The USB would need to re-enumerate when you reset or jump to from/to application/bootloader. If you are having issues with re-enumerating, then maybe you could try to call&amp;nbsp;&lt;span&gt;nrf_drv_usbd_disable() before you reset/jump.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>