<?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>Can I enter DFU from WDT ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23063/can-i-enter-dfu-from-wdt</link><description>Is it possible to enter DFU / OTA from a DWT 
 i.e if the code crashes, and I can&amp;#39;t trigger DFU mode by writing to a characteristic, can the WDT jump straight to the DFU / OTA ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jun 2017 11:15:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23063/can-i-enter-dfu-from-wdt" /><item><title>RE: Can I enter DFU from WDT ?</title><link>https://devzone.nordicsemi.com/thread/90765?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 11:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371bdb38-fbe0-4d75-a99d-61db35912935</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;OK
Thanks.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK 11 SD132, I can probably switch to SDK 12. I&amp;#39;m not sure about 13 I think it still has some problems&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I enter DFU from WDT ?</title><link>https://devzone.nordicsemi.com/thread/90763?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 10:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90da7f30-7e47-4a94-98dc-a17bc44763d6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Roger,&lt;/p&gt;
&lt;p&gt;You may need to write to flash before you let the WDT trigger a reset. The retained register GPREGRET is reset when WDT. If you have a look at the buttonless example in SDK v12, we write to flash before we trigger a reset, you can use that example and WDT to enter DFU bootloader. In SDK v13, we switch to GPREGRET instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I enter DFU from WDT ?</title><link>https://devzone.nordicsemi.com/thread/90764?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 04:24:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:863fb12b-5057-45da-8b42-b7dace61cb9c</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;OK.&lt;/p&gt;
&lt;p&gt;I have a button, but I was hoping to have some sort of buttonless method, as it may not be easy to get to the device to press the button.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll need to read the buttonless source code and see how it manages.&lt;/p&gt;
&lt;p&gt;(On other processors I use, they have some internal registers that survive a reset, which can be used to lock the code into upload mode, but I don&amp;#39;t know if the nRF52 does it that way, or some other way)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I enter DFU from WDT ?</title><link>https://devzone.nordicsemi.com/thread/90762?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 03:50:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09831354-1cf0-463d-ace3-7aaa241a78b6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;DFU always get executed at reset so technically yes. The thing is dfu will check for valid App and jump right to it immediately so you&amp;#39;ll end up in a jumping loop.  You can have the DFU stay in DFU mode by holding a button when DFU is booting.  If you don&amp;#39;t have a button then you need to modify the DFU code to stay in DFU for a certain amount of seconds before booting the App.  That would give a chance to reflash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>