<?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>usb dfu bootloader with GPREGRET entrance Cause cannot get out the bootloader mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65564/usb-dfu-bootloader-with-gpregret-entrance-cause-cannot-get-out-the-bootloader-mode</link><description>hi, 
 I am working with usb dfu bootloader for nrf52833. I set the bootloader entrance mode to GPREGRET only. before enter bootloader, I set NRF_POWER-&amp;gt;GPREGRET = 0x00000001, and I can enter the bootloader mode without problems. but after timeout reboot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Sep 2020 15:53:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65564/usb-dfu-bootloader-with-gpregret-entrance-cause-cannot-get-out-the-bootloader-mode" /><item><title>RE: usb dfu bootloader with GPREGRET entrance Cause cannot get out the bootloader mode</title><link>https://devzone.nordicsemi.com/thread/269457?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 15:53:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6e9c464-1b10-43af-bc2e-d80531591110</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;I found the issue, I must to set the flag to 0xB1 to make it work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb dfu bootloader with GPREGRET entrance Cause cannot get out the bootloader mode</title><link>https://devzone.nordicsemi.com/thread/269454?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 15:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:967321ab-7859-444a-82f5-4a8452ea92d8</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;this cause clear gpregret never happened&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (NRF_BL_DFU_ENTER_METHOD_GPREGRET &amp;amp;&amp;amp;&lt;br /&gt; ((nrf_power_gpregret_get() &amp;amp; BOOTLOADER_DFU_GPREGRET_MASK) == BOOTLOADER_DFU_GPREGRET)&lt;br /&gt; &amp;amp;&amp;amp; (nrf_power_gpregret_get() &amp;amp; BOOTLOADER_DFU_START_BIT_MASK))&lt;br /&gt; {&lt;br /&gt; // Clear DFU mark in GPREGRET register.&lt;br /&gt; nrf_power_gpregret_set(nrf_power_gpregret_get() &amp;amp; ~BOOTLOADER_DFU_START);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;I have no idea what should I set to&amp;nbsp;NRF_POWER-&amp;gt;GPREGRET, I tried 0x00000001 and 0xF8 | 0x01, and nothing changed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb dfu bootloader with GPREGRET entrance Cause cannot get out the bootloader mode</title><link>https://devzone.nordicsemi.com/thread/269445?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 14:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b153608d-b5d0-48e3-8e84-06e65db26f64</guid><dc:creator>weizhen</dc:creator><description>&lt;p&gt;&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;&amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;&amp;lt;debug&amp;gt; app: App is valid&lt;br /&gt;&amp;lt;debug&amp;gt; app: DFU mode requested via GPREGRET.&lt;br /&gt;&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;br /&gt;&amp;lt;debug&amp;gt; app: timer_stop (0x2000002C)&lt;br /&gt;&amp;lt;debug&amp;gt; app: timer_activate (0x2000002C)&lt;br /&gt;&amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;&amp;lt;info&amp;gt; app: BOOTLOADER INIT&lt;br /&gt;&amp;lt;debug&amp;gt; app: Initializing transports (found: 1)&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_serial_usb: Initializing drivers.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_serial_usb: Starting USB&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_serial_usb: USB Transport initialized&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;&amp;lt;debug&amp;gt; app: Enter main loop&lt;br /&gt;&amp;lt;info&amp;gt; nrf_dfu_serial_usb: USB power detected&lt;br /&gt;&amp;lt;info&amp;gt; nrf_dfu_serial_usb: USB ready&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;feels like the&amp;nbsp;&lt;span&gt;GPREGRET is not cleaned.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usb dfu bootloader with GPREGRET entrance Cause cannot get out the bootloader mode</title><link>https://devzone.nordicsemi.com/thread/268197?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2020 07:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f17250ab-fc42-44c9-88ba-12856a8939d8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The function dfu_enter_flags_clear() should clear the&amp;nbsp;GPREGRET&amp;nbsp;BOOTLOADER_DFU_START field. You should use the debug variant of the bootloader, debug and check why the app won&amp;#39;t start. It could be wrong CRC, wrong SoftDevice version used, etc.&lt;/p&gt;
&lt;p&gt;What nrfutil command did you use to generate the DFU package?&lt;/p&gt;
&lt;p&gt;What SDK version are you using? What SoftDevice version are you using ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>