<?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>DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88275/dfu-bootloader-issues</link><description>Hi there, 
 
 I&amp;#39;m currently using SDK 17.1.0 with the NRF52832 Development Board. This is pretty new to me, but the examples helped me get an application going pretty quickly. I am now at the point where I&amp;#39;d like to start testing with a bootloader. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jun 2022 09:23:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88275/dfu-bootloader-issues" /><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/371812?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 09:23:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65b6bee-24c3-407b-b0eb-422a12a683b3</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am happy to hear that changing toolchain solved the issue. Please consider accepting the answer (should be a button on my answer from two days ago.) It will make it easier to find for others with similar questions in the future.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/371496?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 18:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b5526a-7bd0-41e1-a569-9290880f7add</guid><dc:creator>kentorth</dc:creator><description>&lt;p&gt;Thank you for your prompt response.&amp;nbsp; I changed my toolchain to the version provided and I got it working.&amp;nbsp; I appreciate your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Kenny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/371401?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b84843-8803-464a-bb95-8aa2c1d505fe</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;While error code of 7 may or may not have the same root cause, an error of 9 (as you described earlier) may indicate issues with the toolchain. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/85677/sdk-17-1-0-secure-bootloader-runtime-failure-when-compiled-with-current-gcc-11-2-0"&gt;SDK 17.1.0: secure bootloader runtime failure when compiled with current gcc (11.2.0)&lt;/a&gt;. Please check that you use the toolchain that was used for testing and verifying the SDK, which according to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Findex.html"&gt;nRF5 SDK 17.1.0 release notes&lt;/a&gt; was:&lt;/p&gt;
&lt;pre&gt;The following toolchains/devices have been used for testing and verification:
 
 - ARM: MDK-ARM version 5.25   
 - GCC: GCC ARM Embedded 9.2020-q2.major
 - IAR: IAR Workbench 7.80.4
 - SES: SES 5.42a&lt;/pre&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/371231?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 17:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e03317c1-5c86-4517-b6e2-bcd3452f2f2f</guid><dc:creator>kentorth</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still following the&amp;nbsp;Testing section but using the debug example.&amp;nbsp; Here is the&amp;nbsp;log.&amp;nbsp; I can&amp;#39;t seem to get past this part to the DfuTarg section.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Inside main&lt;br /&gt;&amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;&amp;lt;warning&amp;gt; nrf_dfu_settings: Resetting bootloader settings since neither the settings page nor the backup are valid (CRC error).&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007F000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007F000, len=1 pages), queue usage: 0&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007F000, pending 0&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007F000, src=0x200096C8, len=896 bytes), queue usage: 1&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007F000, pending 0&lt;br /&gt;&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x7E000.&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0007E000&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0007E000, len=1 pages), queue usage: 1&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0007E000, pending 0&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0007E000, src=0x20009348, len=896 bytes), queue usage: 1&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0007E000, pending 0&lt;br /&gt;&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;&amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;&amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.&lt;br /&gt;&amp;lt;debug&amp;gt; app: DFU mode because app is not valid.&lt;br /&gt;&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;br /&gt;&amp;lt;debug&amp;gt; app: timer_stop (0x20005984)&lt;br /&gt;&amp;lt;debug&amp;gt; app: timer_activate (0x20005984)&lt;br /&gt;&amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;&amp;lt;debug&amp;gt; app: Initializing transports (found: 1)&lt;br /&gt;&amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport&lt;br /&gt;&amp;lt;debug&amp;gt; app: Failed to initialize transport 0, error 7&lt;br /&gt;&amp;lt;error&amp;gt; app: Could not initalize DFU transport: 0x00000007&lt;br /&gt;&amp;lt;error&amp;gt; app: Received an error: 0x00000003!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/369828?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 18:31:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9515636a-95a5-4ebc-8752-d5deca6691a5</guid><dc:creator>kentorth</dc:creator><description>&lt;p&gt;Following the&amp;nbsp;example, it looks like I am failing here in nrf_bootloader.c every time with a ret_val of 9.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_bootloader_dfu_inactivity_timer_restart(initial_timeout, inactivity_timeout);

        ret_val = nrf_dfu_init(dfu_observer);
        if (ret_val != NRF_SUCCESS)
        {
            return NRF_ERROR_INTERNAL;
        }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kenny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/369818?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 15:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26279e05-1284-4ad7-8bcb-8e59107351d4</guid><dc:creator>kentorth</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for&amp;nbsp;your response.&amp;nbsp; I&amp;#39;m getting a better grasp now of how the Dev Board works.&amp;nbsp; I will check out the Testing section and see if I can get it running.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kenny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU / Bootloader Issues</title><link>https://devzone.nordicsemi.com/thread/369591?ContentTypeID=1</link><pubDate>Wed, 25 May 2022 15:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d39ad8ea-c412-47fe-a214-d74309bad468</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1. How do I get the&amp;nbsp;&lt;span&gt;secure_bootloader/&lt;/span&gt;&lt;span&gt;pca10040_s132_ble example working so I can perform DFU over BLE.&lt;/span&gt;[/quote]
&lt;p&gt;Following the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fble_sdk_app_dfu_bootloader.html&amp;amp;anchor=ble_sdk_app_dfu_bootloader_test"&gt;Testing&lt;/a&gt; section of the example documentation should do the trick.&lt;/p&gt;
&lt;p&gt;Please note that holding the IF BOOT/RESET button is for programming the interface MCU (the programmer chip) on the board. It is not for programming the nRF SoC.&lt;/p&gt;
[quote user=""]2. At minimum, I&amp;#39;d like to use the bootloader file system to drop my own binary image for booting.&amp;nbsp; Does this need to be signed?[/quote]
&lt;p&gt;You could set &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fgroup__nrf__dfu__validation__config.html&amp;amp;anchor=gab9eb15c540219bcad7bae19be44a9cad"&gt;NRF_DFU_REQUIRE_SIGNED_APP_UPDATE&lt;/a&gt; to 0 to disable signing for the applicaiton (DFU of the bootloader itself and for the BLE stack (the SoftDevice) would then still require signing.) See also the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fble_sdk_app_open_bootloader.html"&gt;Open Bootloader with DFU&lt;/a&gt;. However, signing is always a good idea, especially for over the air DFU. The &lt;/p&gt;
[quote user=""]I&amp;nbsp;programmed the bootloader example with my own generated key, then reset with the button pressed and dropped this&amp;nbsp;j-link-ob-sam3u128-v2-nordicsemi-170724.bin I found on the internet.&amp;nbsp; It seemed to boot into the application without requiring&amp;nbsp;a signature.[/quote]
&lt;p&gt;What you did there, was programming the on-board programmer/interface MCU, over USB.&lt;/p&gt;
[quote user=""]3. If my current application doesn&amp;#39;t require BLE, but I plan to add it down the line, should I be&amp;nbsp;using the softdevice and update app later to use the BLE stack or&amp;nbsp;can I&amp;nbsp;just merge the softdevice with my app later and load that?[/quote]
&lt;p&gt;The SoftDevice, which is our BLE stack used in nRF5 SDK, is a separate binary that is not combined with the application. Each one of Bootloader, SoftDevice and application are separate binaries, and using our DFU solution they can be upgraded independently. Please note however that the bootloader cannot change in size, and you cannot change between e.g. a serial bootloader and a BLE bootloader.&lt;/p&gt;
&lt;p&gt;Please also note that we have a new SDK, the nRF Connect SDK, which is the main recommendation for new projects - also on the nRF52 series. See our &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK and nRF5 SDK statement&lt;/a&gt; for details. For a new project, it may be better to start with the &lt;a href="https://www.nordicsemi.com/Products/Development-software/nrf-connect-sdk"&gt;nRF Connect SDK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>