<?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>GPIOs are not reset after DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27088/gpios-are-not-reset-after-dfu</link><description>Hi, 
 We had a power issue with our custom board related to DFU updates. After performing a DFU we were seeing 8mA idle current, and when we had programmed the firmware directly with the JLink Flasher, we were seeing ~500&amp;#181;A as expected. 
 This lead</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Apr 2017 11:47:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27088/gpios-are-not-reset-after-dfu" /><item><title>RE: GPIOs are not reset after DFU</title><link>https://devzone.nordicsemi.com/thread/106534?ContentTypeID=1</link><pubDate>Fri, 21 Apr 2017 11:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d92a1c64-33c5-4438-8c62-d73fa0b7a758</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Kyle,&lt;/p&gt;
&lt;p&gt;this is the expected behavior since the bootloader &lt;strong&gt;branches&lt;/strong&gt; to the application, i.e. does not reset into the application.&lt;/p&gt;
&lt;p&gt;The nRF52 will always will pass execution to the bootloader if it is present, which in turn will pass execution to the application, if it is valid. The bootloader will trigger one or several soft-resets during the DFU process, depending on the image type, but the final switch from bootloader to app is a branch operation.&lt;/p&gt;
&lt;p&gt;This means that all configurations of peripherals if you&amp;#39;ve initialized in the bootloader, e.g. the GPIO peripheral, will persist through the branch operation. So the best practice is to have to un-initalize or reset the configuration to its default values the peripherals before the branch operation.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>