<?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>Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63204/simple-secure-dfu-setup-fails-to-start---received-a-fault-id-0x00004002-pc-0x00000000-info-0x2000ff30</link><description>I’ve not yet been able to successfully get an application (in this case Blinky) to complete a BLE DFU load and then execute. I’ve tried all the suggestions I’ve found in the DevZone and on YouTube with no success. 
 DFU Setup Specifics: 
 
 Bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Jul 2020 16:03:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63204/simple-secure-dfu-setup-fails-to-start---received-a-fault-id-0x00004002-pc-0x00000000-info-0x2000ff30" /><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257927?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 16:03:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d72eb4e-07a0-4cac-b638-28a6fe2c42c4</guid><dc:creator>PeterInStillwater</dc:creator><description>&lt;div style="background-color:#ffffff;color:#000000;font-family:&amp;#39;Consolas&amp;#39;;font-size:9.0pt;font-style:normal;font-weight:normal;text-decoration:none;"&gt;
&lt;pre&gt;Hung - &lt;br /&gt;&lt;br /&gt;I&amp;#39;m at a loss as to what happened here.  I used your string: &lt;/pre&gt;
&lt;pre&gt;nrfutil pkg generate --hw-version &lt;span&gt;52&lt;/span&gt; --application-version &lt;span&gt;0&lt;/span&gt; --application ble_app_blinky_pca10040_s132.hex --sd-req &lt;span&gt;0&lt;/span&gt;xCB --key-file private.key app_dfu_package.zip&lt;/pre&gt;
&lt;pre&gt;modified --sd-req &lt;span&gt;0&lt;/span&gt;xCB for SD package&lt;br /&gt;&lt;br /&gt;And programmed the bootloader via Segger IDE, after erasing memory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It worked two times in a row.  &lt;br /&gt;&lt;br /&gt;Here&amp;#39;s the log file and app zip file.&lt;br /&gt;&lt;br /&gt;Have you seen this before - I swear I went through your example at least a half dozen times with no success.&lt;br /&gt;That&amp;#39;s why I tried the second approach.&lt;br /&gt;&lt;br /&gt;Anyway - thanks for your assistance on this.  I have to noodle this out and see what I&amp;#39;m doing different. &lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/DFU_5F00_070120.log"&gt;devzone.nordicsemi.com/.../DFU_5F00_070120.log&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_blinky_5F00_pca10040_5F00_s132.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_blinky_5F00_pca10040_5F00_s132.zip&lt;/a&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257922?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 15:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08fe860f-bd45-423f-94ed-6e998b11291f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Petter,&amp;nbsp;&lt;br /&gt;I&amp;#39;m not sure why you generate bootloader setting ? You don&amp;#39;t really need to generate bootloader setting if you don&amp;#39;t do DFU with bonding. And that requires modification in the application as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try to test without bootloader setting. Please follow my blog as linked in the earlier reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In addition, you are using &amp;quot;--family NRF5240 &amp;quot; this is wrong. You are working on nRF52832 QFAA chip. You should use NRF52 in this case. (but you don&amp;#39;t need to generate bootloader setting if you don&amp;#39;t have a special need, for example combine application and bootloader, or do DFU with bonding)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257904?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 14:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d138c333-f408-4853-b33f-9d62825c1d92</guid><dc:creator>PeterInStillwater</dc:creator><description>&lt;p&gt;I&amp;#39;m using &lt;span&gt;nrfjprog&amp;nbsp;&amp;nbsp;&lt;/span&gt;version 10.9.0&amp;nbsp; -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The family version was with respect to nrfUti&lt;/strong&gt;l&lt;/p&gt;
&lt;p&gt;Here are the files you requested:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3618.app_5F00_dfu_5F00_package.zip"&gt;devzone.nordicsemi.com/.../3618.app_5F00_dfu_5F00_package.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0131.settings.hex"&gt;devzone.nordicsemi.com/.../0131.settings.hex&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/MDFU.bat"&gt;devzone.nordicsemi.com/.../MDFU.bat&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1256.s132_5F00_nrf52_5F00_7.0.1_5F00_softdevice.hex"&gt;devzone.nordicsemi.com/.../1256.s132_5F00_nrf52_5F00_7.0.1_5F00_softdevice.hex&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/my_5F00_bootloader.hex"&gt;devzone.nordicsemi.com/.../my_5F00_bootloader.hex&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_blinky_5F00_pca10040_5F00_s132.hex"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_blinky_5F00_pca10040_5F00_s132.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257884?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 14:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9d7fdd-c9d1-4dec-9613-04a8f771b587</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I assume the family argument you quoted was from nrfjprog ? Which version are you using ? The current version is v10.9.0 and you don&amp;#39;t have to select NRF52840, you only have 4 options NRF51, NRF52, NRF53 and NRF91. I&amp;#39;m not sure why you used &amp;quot;NRF52QFAB&amp;quot; but not &amp;quot;NRF52QFAA&amp;quot; ?&lt;/p&gt;
&lt;p&gt;Could you send us your hexes you used (softdevice, bootloader, application) and the .zip file you used for testing ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257844?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 12:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2978111a-5e16-40b9-9d48-9b49d807320d</guid><dc:creator>PeterInStillwater</dc:creator><description>&lt;p&gt;Thank You Hung -&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I just checked out your link and that is actually where I started my learning process.&amp;nbsp; Those were the steps I followed in my first post.&lt;/p&gt;
&lt;p&gt;The second post are steps I followed off of a different link (see link above)&lt;/p&gt;
&lt;p&gt;Both yielded the same results.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that I have tried this on three nrf52DKs.&amp;nbsp; All have nrf52832 QFAA&amp;nbsp; micros.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I&amp;#39;m only running the example code provided with SDK16 - the only contribution I&amp;#39;ve made to the process is to run nrftuil, merghex and nrfproj.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll look into your last paragraph this afternoon.&lt;/p&gt;
&lt;p&gt;Could it be related to the:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;--family: Device family, match with your chip. If you have nRF52840 you have to use NRF52840 instead of NRF52.&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I used&amp;nbsp;--family NRF52QFAB&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks Again!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257817?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 12:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0245019d-7bac-47b7-bc6d-6d93c3c961d9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Peter,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for very detailed description.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;From the log I can find that the image has been transferred successfully and the hash has been verified correctly so it&amp;#39;s not the issue with the init packet. However, there is something strange is that when it&amp;#39;s rebooting it&amp;#39;s trying to erase the bootloader setting at address&amp;nbsp;0x00000002 (you can see that in the log). This is definitely wrong. The bootloader setting should be at address&amp;nbsp;&lt;span&gt;0x7E000. Erasing address 0x0000002 will clear the MBR and brick the application/bootloader.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is quite strange. I have made a blog &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;here &lt;/a&gt;with step by step instruction to test DFU. It&amp;#39;s for SDK v15 but should work in newer SDK as well.&amp;nbsp;&lt;br /&gt;Please try to test using a fresh copy of the SDK.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In the last log by the softdevice it&amp;#39;s also crashed when trying to write to the bootloader setting, I suspect there could be something wrong there. Please try to test on a different board as well.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error 0x00004002 means&amp;nbsp;NRF_FAULT_ID_SDK_ASSERT. But it doesn&amp;#39;t explain much if you don&amp;#39;t build the softdevice with debug mode. You can change the optimization level to 0 and add DEBUG into the preprocessor symbol. You may need to move the softdevice down in the flash to make more space for it, build with no optimization and debug make the bootloader bigger.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple, Secure DFU setup Fails to start -  Received a fault id: 0x00004002, pc: 0x00000000, info: 0x2000FF30</title><link>https://devzone.nordicsemi.com/thread/257660?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 17:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bffe7e2d-43d1-4b79-89b3-d2ce0b73654f</guid><dc:creator>PeterInStillwater</dc:creator><description>&lt;p&gt;P.S.&amp;nbsp; As part of my exercise I did perform the steps outlined in this post:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/53662/secure-dfu-successful-but-application-not-loading?tempkey=17317c1d-ed9d-426c-b0f9-c2ad74347be1"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/53662/secure-dfu-successful-but-application-not-loading?tempkey=17317c1d-ed9d-426c-b0f9-c2ad74347be1&lt;/a&gt;&lt;/p&gt;
&lt;div style="background-color:#ffffff;color:#000000;font-family:&amp;#39;Consolas&amp;#39;;font-size:9.0pt;font-style:normal;font-weight:normal;text-decoration:none;"&gt;
&lt;pre&gt;nrfutil settings generate --family NRF52QFAB --application ble_app_blinky_pca10040_s132.hex --application-version &lt;span&gt;1&lt;/span&gt; --bootloader-version &lt;span&gt;1&lt;/span&gt; --bl-settings-version &lt;span&gt;1&lt;/span&gt; settings.hex

mergehex.exe --merge settings.hex secure_bootloader_ble_s132_pca10040_debug.hex --output my_bootloader.hex

nrfutil pkg generate --hw-version &lt;span&gt;52&lt;/span&gt; --application-version &lt;span&gt;3&lt;/span&gt; --application ble_app_blinky_pca10040_s132.hex --sd-req &lt;span&gt;0&lt;/span&gt;xCB --key-file private.key app_dfu_package.zip

nrfjprog.exe -e

nrfjprog.exe --program s132_nrf52_7.0.1_softdevice.hex --verify

nrfjprog.exe --program my_bootloader.hex --verify -r&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And received the exact same RTT results as in my original post.  &lt;br /&gt;&lt;br /&gt;&amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2000FF30&lt;br /&gt;&lt;br /&gt;Just in case anyone thought I should try that out.&lt;br /&gt;&lt;br /&gt;THANKS AGAIN - &lt;br /&gt;If it wasn&amp;#39;t for this forum I (and I suspect many others) would not be able to work with these devices.  &lt;br /&gt;&lt;br /&gt;Peter&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>