<?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>Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57661/blinky-application-not-executing-in-iar-when-secure-dfu-bootloader-is-present</link><description>Hi, 
 
 I am using an nrf52840 MCU, Nordic SDK 16.0.0 and IAR Workbench for ARM v8.40.1. 
 
 The MCU has the following configuration: 
 - MBR installed 
 - DFU secure bootloader (USB only) installed and functional 
 - Bootloader settings installed 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2020 09:59:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57661/blinky-application-not-executing-in-iar-when-secure-dfu-bootloader-is-present" /><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/235114?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 09:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b236ab6f-0f21-4afb-ae07-3b7f90fb3f00</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Perfect. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/235091?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 09:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b4fdd4-d26c-4bb6-9900-2327dfb0a3b6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Chibi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad that you found a workaround. Please just leave this case like this. You can come back or open a new case if there is a new question.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234996?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 16:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:507ef795-1a18-4745-8f3e-bcc9d423af56</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Just a short follow-up to say that I could not get the NRF log output to be displayed (even after erasing the whole chip) in the JLink RTT Viewer / Client. However, I did manage to get the log output redirected to the USB CDC virtual COM port instead and that works perfectly.&lt;/p&gt;
&lt;p&gt;Is there something I need to do to mark this case as to be closed / answered?&lt;/p&gt;
&lt;p&gt;Thanks again for all your help and assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234603?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 10:27:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43cda940-6286-4478-9b14-e628dbd95da1</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;I checked the sdk_config.h file and NRF_LOG_ENABLED was already set to 1. The NRF_LOG_BACKEND_RTT_ENABLED setting was also set to 1.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t erase the whole chip before so I&amp;#39;ll give that a go and report back on my findings.&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: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234214?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 14:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d48a5a6-876d-4929-851d-5474580b8157</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please check sdk_config.h file to see if NRF_LOG_ENABLED = 1 ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also make sure you erase the chip before testing with the debug bootloader as the address of the debug bootloader is different from the normal one. The chip need to be erased if you want to change bootloader address.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234204?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 14:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61146977-f958-43dc-99f7-1beffd533eb6</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Thanks for your time and clear explanations. It has been very helpful and I&amp;#39;m starting to understand what is going on.&lt;/p&gt;
&lt;p&gt;One final question, if I may:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I tried to use the _debug version of the secure DFU bootloader but I didn&amp;#39;t see any output on the JLink RTT Viewer or the JLink RTT client. Any ideas how to get the logging to appear?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234168?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 12:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fac7e84-5ede-45a1-b103-488c42ad4cc7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The documentation was an example of the BLE bootloader, not the USBD bootloader. The USB library causes the size to be increased quite a lot hence the start address moved to 0xF4000&lt;/p&gt;
&lt;p&gt;The bootloader setting as I explained is only to manually &amp;quot;tell&amp;quot; the bootloader that there already a valid application and it doesn&amp;#39;t need to enter DFU mode. If the application is programmed to the chip via the DFU process (via the bootloader) the bootloader will write to bootloader setting automatically, you don&amp;#39;t need to flash the bootloader setting.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234154?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 10:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa0cf5de-66d4-43e3-8cfb-a01e46991ad9</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;HI Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Welcome back and thanks very much for your responses.&lt;/p&gt;
&lt;p&gt;Concerning the bootloader start address, I see the following from the SDK 16.0.0 online reference:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/264x422/__key/communityserver-discussions-components-files/4/nRF52840_5F00_Mem.png" /&gt;&lt;/p&gt;
&lt;p&gt;The online documentation suggests the start of the bootloader is located at 0xF8000?&lt;/p&gt;
&lt;p&gt;As for the bootloader settings, your explanation is pretty clear. However, we might end up just regenerating it every time the main application firmware is updated.&lt;/p&gt;
&lt;p&gt;If I perform a DFU over the USB virtual COM port interface, does that mean the application firmware will need to be merged with the bootloader settings first, before creating the DFU package?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234137?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 09:40:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0568d5f-4801-4fa6-b0d2-f05be8102197</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Chibi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Sorry, I was not at the office yesterday. Regarding your questions:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- 0xF4000 is correct address. You can find the start address in&amp;nbsp;linker setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- The main purpose of the bootloader setting is to tell the bootloader that the chip has a valid application (so that the bootloader wouldn&amp;#39;t stay in DFU mode but start the application) This requires the CRC verification and this explain why when you change the application the bootloader wouldn&amp;#39;t enter the application. I have some explanation in this blog:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- For development, that you don&amp;#39;t need to update bootloader setting each time you edit your app,&amp;nbsp; you can&amp;nbsp;modify the app_is_valid() to always return true. Make sure to change it back after you done with development.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;- If you want to debug the bootloader, use the _debug version , make sure the optimization level is 0&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/234114?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 08:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:694c5318-1e81-4b4a-9993-e0b6b7e72367</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Hung Bui, are you still around? When you have time, could you please respond to my two additional queries above? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/233916?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 09:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acb8dcb2-6ab2-4562-b2ef-4a2770b01a2b</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Thanks Hung Bui - it looks like my bootloader settings is incorrect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Two of my settings were wrong:&lt;/p&gt;
&lt;p&gt;- bl-settings-version should be &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;2&lt;/strong&gt;&lt;/span&gt; (for all SDKs &amp;gt;= 15.3.0)&lt;/p&gt;
&lt;p&gt;- family should be &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;NRF52840&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did eventually track it down to the following DFU secure bootloader code (in the red box) that was failing:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x674/__key/communityserver-discussions-components-files/4/4213.app_5F00_is_5F00_valid.png" /&gt;&lt;/p&gt;
&lt;p&gt;Note that I had to temporarily comment out the &amp;quot;static&amp;quot; keyword so I can debug it within IAR.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bootloader Settings Generation:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfutil.exe settings generate --family NRF52840 --application blinky_pca10056_mbr.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 settings.hex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Note: Generating a DFU settings page with backup page included.&lt;br /&gt;This is only required for bootloaders from nRF5 SDK 15.1 and newer.&lt;br /&gt;If you want to skip backup page generation, use --no-backup option.&lt;/p&gt;
&lt;p&gt;Generated Bootloader DFU settings .hex file and stored it in: settings.hex&lt;/p&gt;
&lt;p&gt;Bootloader DFU Settings:&lt;br /&gt;* File:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.hex&lt;br /&gt;* Family:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF52840&lt;br /&gt;* Start Address:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x000FF000&lt;br /&gt;* CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x7B2ABE87&lt;br /&gt;* Settings Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000002 (2)&lt;br /&gt;* App Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* Bootloader Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* Bank Layout:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* Current Bank:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* Application Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000618 (1560 bytes)&lt;br /&gt;* Application CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x055A1126&lt;br /&gt;* Bank0 Bank Code:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;br /&gt;* Softdevice Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000 (0 bytes)&lt;br /&gt;* Boot Validation CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x74D072B7&lt;br /&gt;* SD Boot Validation Type:&amp;nbsp; 0x00000000 (0)&lt;br /&gt;* App Boot Validation Type: 0x00000001 (1)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried programming the new bootloader settings file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --program&amp;nbsp;settings.hex -f NRF52 -r&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But that failed with:&lt;/p&gt;
&lt;p&gt;Parsing hex file.&lt;br /&gt;Reading flash area to program to guarantee it is erased.&lt;br /&gt;ERROR: The area to write is not erased.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To get the programming of the bootloader settings to complete successfully, I had to do the following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Erase the entire flash&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog.exe --family NRF52 --eraseall&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Erasing user available code and UICR flash areas.&lt;br /&gt;Applying system reset.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.Program the MBR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --reset --program mbr.hex&amp;nbsp; --family NRF52 --sectoranduicrerase&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Parsing hex file.&lt;br /&gt;Erasing page at address 0x0.&lt;br /&gt;Applying system reset.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;br /&gt;Applying system reset.&lt;br /&gt;Run.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.Program the Bootloader Settings&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --program settings.hex -f NRF52 -r&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Parsing hex file.&lt;br /&gt;Reading flash area to program to guarantee it is erased.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;br /&gt;Applying system reset.&lt;br /&gt;Run.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Program the Bootloader&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --reset --program secure_bootloader_usb_mbr_pca10056.hex --family NRF52 --sectoranduicrerase&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Parsing hex file.&lt;br /&gt;Erasing page at address 0xF4000.&lt;br /&gt;Erasing page at address 0xF5000.&lt;br /&gt;Erasing page at address 0xF6000.&lt;br /&gt;Erasing page at address 0xF7000.&lt;br /&gt;Erasing page at address 0xF8000.&lt;br /&gt;Erasing page at address 0xF9000.&lt;br /&gt;Erasing page at address 0xFA000.&lt;br /&gt;Erasing page at address 0xFB000.&lt;br /&gt;Erasing page at address 0xFC000.&lt;br /&gt;Erasing page at address 0xFD000.&lt;br /&gt;Erasing UICR flash area.&lt;br /&gt;Applying system reset.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;br /&gt;Applying system reset.&lt;br /&gt;Run.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. Program Blinky App&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --reset --program blinky_pca10056_mbr.hex --family NRF52 --sectoranduicrerase&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Parsing hex file.&lt;br /&gt;Erasing page at address 0x1000.&lt;br /&gt;Applying system reset.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;br /&gt;Applying system reset.&lt;br /&gt;Run.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The above steps worked for me - the Blinky app is now up and running alongside the secure DFU bootloader!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f914.svg" title="Thinking"&gt;&amp;#x1f914;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have some further questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The bootloader starts at flash address 0xF4000, is that correct for the nRF52840?&lt;/li&gt;
&lt;li&gt;It looks like the bootloader settings file &lt;span style="text-decoration:underline;"&gt;must&lt;/span&gt; be regenerated and reprogrammed each and every time when the main application is modified / updated (e.g. in this case, Blinky), is that assumption correct?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your help is much appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/233820?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 16:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b761edf3-362e-403f-b8c0-1e40985b2ada</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;From SDK v15.3 the bootloader setting version should be 2. Please see here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=8_5_6"&gt;https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html?cp=8_5_6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If the issue persists please send us your hex files&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/233813?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 15:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c037d4c3-9dd4-43a4-aa7b-956620289d19</guid><dc:creator>Chibi</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bootloader Settings Generation:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfutil.exe settings generate --family NRF52 --application blinky_pca10056_mbr.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 settings.hex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Note: Generating a DFU settings page with backup page included.&lt;br /&gt;This is only required for bootloaders from nRF5 SDK 15.1 and newer.&lt;br /&gt;If you want to skip backup page generation, use --no-backup option.&lt;br /&gt;&lt;br /&gt;Generated Bootloader DFU settings .hex file and stored it in: settings.hex&lt;br /&gt;&lt;br /&gt;Bootloader DFU Settings:&lt;br /&gt;* File:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.hex&lt;br /&gt;* Family:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nRF52&lt;br /&gt;* Start Address:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0007F000&lt;br /&gt;* CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x836566AC&lt;br /&gt;* Settings Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* App Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* Bootloader Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;br /&gt;* Bank Layout:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* Current Bank:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* Application Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000618 (1560 bytes)&lt;br /&gt;* Application CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x055A1126&lt;br /&gt;* Bank0 Bank Code:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;br /&gt;* Softdevice Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000 (0 bytes)&lt;br /&gt;* Boot Validation CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;br /&gt;* SD Boot Validation Type:&amp;nbsp; 0x00000000 (0)&lt;br /&gt;* App Boot Validation Type: 0x00000000 (0)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Program the Bootloader Settings:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;nrfjprog --program&amp;nbsp;settings.hex -f NRF52 -r&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;Parsing hex file.&lt;br /&gt;Reading flash area to program to guarantee it is erased.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;br /&gt;Applying system reset.&lt;br /&gt;Run.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To program the blinky example, I initially tried just IAR but I&amp;#39;ve also tried via the command line, as per my original post.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not using DFU quite yet - I just wanted to get a basic setup working first before creating the encrypted DFU packages.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to enable the logging to see if I can extract more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Blinky Application Not Executing in IAR when Secure DFU Bootloader is Present</title><link>https://devzone.nordicsemi.com/thread/233807?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 15:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b9a9d2-5671-4419-a641-14afa5541416</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Chibi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please also post how you generate the bootloader setting ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the bootloader setting is not generated and flashed properly, the bootloader won&amp;#39;t jump to the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you said you programmed the blinky example and it didn&amp;#39;t work when the bootloader is flashed, how did you program the blinky example ?&amp;nbsp;&lt;br /&gt;Did you do DFU to flash the blinky example or you flash it directly ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;You can enable logging inside the bootloader to have more information.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>