<?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>app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90679/app-received-a-fault-after-doing-nrf52832-dfu</link><description>I use iOS nRF Connect APP to do nRF52832 device DFU. DFU is completed successfully. But the following error occur. 
 &amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2000C160 
 00&amp;gt; &amp;lt;info&amp;gt; app: Inside main 00&amp;gt; 00&amp;gt; &amp;lt;debug&amp;gt; app: In</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Aug 2022 09:31:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90679/app-received-a-fault-after-doing-nrf52832-dfu" /><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380319?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 09:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81814a77-c73a-4e72-935d-45221bcadaa8</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Thanks for your suggestion! I have merged the code and app doesn&amp;#39;t received a fault.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380283?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 07:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea27f4a5-5511-4eed-bede-0039fc7d78d2</guid><dc:creator>Sigurd</dc:creator><description>[quote user="snowuyl"]Do I need to upgrade to SDK 17.0.0 for this issue or just merge code you list?[/quote]
&lt;p&gt;Just merge the code, and see if it fixes the problem you are having.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380236?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 00:27:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cbe1f49-594d-4e7f-a00d-042ea7299ed8</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;Do I need to upgrade to SDK 17.0.0 for this issue or just merge code you list?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380235?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 00:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fc43246-a294-44d0-ac2e-f1c684085f75</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;SDK v16.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380187?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 14:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ac1e483-f893-4e90-8d6e-b46d17d40ce0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version is this?&lt;/p&gt;
&lt;p&gt;Might be that you are encountering a bug which which we fixed in nRF5 SDK v17. It was quite briefly mentioned in the release notes:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- Fixed a false positive assert that could sometimes happen after a reset&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; during an upgrade.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;But you can see the fix implemented here in SDK v17.0.0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;diff --git a/../../../../nRF5_SDK_15.2.0_9412b96/components/libraries/bootloader/nrf_bootloader_fw_activation.c b/nrf_bootloader_fw_activation.c
index bf7ac87..5892b98 100644
--- a/../../../../nRF5_SDK_15.2.0_9412b96/components/libraries/bootloader/nrf_bootloader_fw_activation.c
+++ b/nrf_bootloader_fw_activation.c
@@ -1,5 +1,5 @@
 /**
- * Copyright (c) 2016 - 2018, Nordic Semiconductor ASA
+ * Copyright (c) 2016 - 2020, Nordic Semiconductor ASA
  *
  * All rights reserved.
  *
@@ -72,13 +72,16 @@ static uint32_t image_copy(uint32_t dst_addr,
 {
     if (src_addr == dst_addr)
     {
-        NRF_LOG_DEBUG(&amp;quot;No copy needed src_addr: 0x%x, dst_addr: 0x%x&amp;quot;, src_addr, dst_addr);
+        NRF_LOG_DEBUG(&amp;quot;No copy needed&amp;quot;);
         return NRF_SUCCESS;
     }
 
     ASSERT(src_addr &amp;gt;= dst_addr);
     ASSERT(progress_update_step &amp;gt; 0);
-    ASSERT((dst_addr % CODE_PAGE_SIZE) == 0);
+    if (size != 0)
+    {
+        ASSERT((dst_addr % CODE_PAGE_SIZE) == 0);
+    }
 
     uint32_t max_safe_progress_upd_step = (src_addr - dst_addr)/CODE_PAGE_SIZE;
     ASSERT(max_safe_progress_upd_step &amp;gt; 0);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you can see from the &amp;#39;diff&amp;#39;, the solution is to ignore the assert when size is 0 (size should always be &amp;#39;0&amp;#39; after an unexpected reset). The copy routine will then continue the copy routine and complete the FW activation.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380048?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 07:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91861f8d-3524-4113-8c65-4ad02358c8ca</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3515.DFU_5F00_successfully.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app: Received a fault after doing nRF52832 DFU</title><link>https://devzone.nordicsemi.com/thread/380047?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 07:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0810c12e-1f48-45a5-a7fe-016270fef97e</guid><dc:creator>snowuyl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2620.app_5F00_dfu_5F00_package.zip"&gt;devzone.nordicsemi.com/.../2620.app_5F00_dfu_5F00_package.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3301.secure_5F00_bootloader.rar"&gt;devzone.nordicsemi.com/.../3301.secure_5F00_bootloader.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>