<?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>Not able to enter to DFU mode sometimes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107968/not-able-to-enter-to-dfu-mode-sometimes</link><description>Hello, 
 
 We have a product which uses nRF52840 chip. Now some users report that they are unable to update firmware of the device because it won&amp;#39;t enter to DFU mode. Problem goes away when flashed with J-flash but customers need to send devices back</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 13:12:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107968/not-able-to-enter-to-dfu-mode-sometimes" /><item><title>RE: Not able to enter to DFU mode sometimes</title><link>https://devzone.nordicsemi.com/thread/467174?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 13:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04532226-9e34-4c4f-8a11-3b9665208163</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I don&amp;#39;t think it could be, especially if it works for most of devices and that you don&amp;#39;t&amp;nbsp;write to&amp;nbsp;the GPREGRET in your application for other purpose.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to enter to DFU mode sometimes</title><link>https://devzone.nordicsemi.com/thread/467163?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 12:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1baaaac2-55dd-4267-8b7e-df9b0fbfb67e</guid><dc:creator>aniskane</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your feedback. It seems that&amp;nbsp;&lt;span&gt;GPREGRET&amp;nbsp;is not cleared before writing it. Could this be the culprit?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Br,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Antti&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to enter to DFU mode sometimes</title><link>https://devzone.nordicsemi.com/thread/467156?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 12:29:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b987508-0488-4416-bc4f-f0c10b31650e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Antti,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you have cleared the GPREGRET before writing. The same as what we did in&amp;nbsp;ble_dfu_buttonless_bootloader_start_finalize() function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There could be a chance that the device may not be able to retain in DFU mode when you switch from the application.&amp;nbsp;If the power supply doesn&amp;#39;t sustainable for the bootloader to run and enter DFU mode, if there is a reset before the bootloader can enter DFU then it will reset back to the application.&amp;nbsp;&lt;br /&gt;The same applied if you have WDT on the application and if you don&amp;#39;t feed it quick enough in the bootloader, it may reset the bootloader before the bootloader can feed the WDT causing the device to boot back to the application.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s important that when you receive the defect item, could you try to debug and check why it doesn&amp;#39;t want to jump to bootloader. You can put a breakpoint at the beginning of the bootloader to check the value of GPREGRET before the bootloader start.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to enter to DFU mode sometimes</title><link>https://devzone.nordicsemi.com/thread/467126?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 10:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc9cf1c9-9f34-4512-b118-aaf505ded485</guid><dc:creator>aniskane</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SDK version is nRF5 SDK v15.2.0. I&amp;#39;m not sure about protocol used for DFU (original developer has left the company). To enter DFU mode these commands are issued:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Enter DFU&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;sd_power_gpregret_set&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0xB1&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;span&gt; // Set the retention register flag&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;NVIC_SystemReset&lt;/span&gt;&lt;span&gt;();&lt;/span&gt;&lt;span&gt; // Soft reset. Device should boot in bootloader mode&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 haven&amp;#39;t been able to reproduce the issue myself but I&amp;#39;ve seen it happening.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Br,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Antti&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to enter to DFU mode sometimes</title><link>https://devzone.nordicsemi.com/thread/467103?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 10:03:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36b05e96-671a-4aba-9994-165e75ca1221</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which version SDK do you use?&lt;/p&gt;
&lt;p&gt;hWhat is the protocol used for DFU?&lt;/p&gt;
&lt;p&gt;How does the device normally enter DFU mode?&lt;/p&gt;
&lt;p&gt;Have you been able to reproduce the issue on a test device?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>