<?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>nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91429/nrf52-dfu-does-not-start</link><description>Hi everyone, 
 I am in the process of programming a DFU via UART. I currently have in memory only the softdevice including the MBR and the bootloader. If I enter in nrfutil 
 nrfutil dfu serial -pkg app_dfu_package_blinky.zip -p COM5 -b 57600 
 I get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Sep 2022 08:46:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91429/nrf52-dfu-does-not-start" /><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/384282?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 08:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c2d1149-fe05-44bd-8201-40684641876b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know you fix the issue. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/384276?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 08:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6128ba04-f496-4c69-9dce-115d9890f8ed</guid><dc:creator>Louis_263</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I figured out the problem. The problem was not with the firmware, but with the command of nrfutil. As soon as I add&lt;/p&gt;
&lt;p&gt;-prn 1&lt;/p&gt;
&lt;p&gt;as argument, the DFU works.&lt;br /&gt;Thanks anyway for your help :-)&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/384133?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 12:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68008344-f049-4898-92d2-65fd6530c4d8</guid><dc:creator>Louis_263</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I changed the flash settings so the log could fit into the memory. This is the output of the log:&lt;/p&gt;
&lt;p&gt;00&amp;gt; &amp;lt;info&amp;gt; Inside main&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: In nrf_bootloader_init&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;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;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0003F000&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0003F000, len=1 pages), queue usage: 0&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0003F000, pending 0&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0003F000, src=0x20004744, len=896 bytes), queue usage: 1&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0003F000, pending 0&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0x3E000.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x0003E000&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x0003E000, len=1 pages), queue usage: 1&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x0003E000, pending 0&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x0003E000, src=0x200043C4, len=896 bytes), queue usage: 1&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x0003E000, pending 0&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: No firmware to activate.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: DFU mode because app is not valid.&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: timer_stop (0x20002A58)&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: timer_activate (0x20002A58)&lt;br /&gt;00&amp;gt; &amp;lt;info&amp;gt; app: Entering DFU mode.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Initializing transports (found: 1)&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial_uart: serial_dfu_transport_init()&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_serial_uart: serial_dfu_transport_init() completed&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.&lt;br /&gt;00&amp;gt; &amp;lt;debug&amp;gt; app: Enter main loop&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/384112?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 11:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcdb86d1-5fc9-4b25-a10e-b607859f8a25</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="Louis_263"]I only have the softdevice and the bootloader in the flash memory, so the device should be in DFU mode anyway, right?[/quote]
&lt;p&gt;Yes, it is supposed to.&lt;/p&gt;
&lt;p&gt;Is your uart bootloader able to update the other application without SD like the peripheral\blinky? Without the debug log, how do you know it can work or not? Did you try to&amp;nbsp;&lt;span&gt;adjust the flash start address of the bootloader to fix the FLASH overflowed?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/384098?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 10:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:333d1dfe-c919-4765-b810-e3321b148341</guid><dc:creator>Louis_263</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;I only have the softdevice and the bootloader in the flash memory, so the device should be in DFU mode anyway, right? I have also added the following code at the beginning of the main:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_power_gpregret_set(BOOTLOADER_DFU_START);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But that didn&amp;#39;t help either.&lt;br /&gt;I have attached a logic analyzer to the RX pin of the nRF and I noticed that when I start the DFU from the PC, nothing arrives at the PX pin.&lt;br /&gt;But if I send bytes to the nRF via a tool like Realterm, then I can see these bytes via the logic analyzer. The problem seems very strange to me.&lt;br /&gt;&lt;br /&gt;BR&lt;br /&gt;&lt;br /&gt;Louis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/384075?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 08:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582a0014-8c79-4375-a675-0792ddd76287</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]When I flash the application and bootloader together, the application is also called directly by the bootloader. Only the firmware update does not seem to work.[/quote]
&lt;p&gt;Seems your device doesn&amp;#39;t get into DFU mode.&amp;nbsp;In our serial bootloader examples,&amp;nbsp;&lt;span&gt;DFU mode is indicated by LED 3 being lit. If a valid application is installed on the device, hold Button 4 during startup to prevent the bootloader from starting the application and force it to enter DFU mode instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a title="DFU mode" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=8_1_3_5_0_2#lib_bootloader_dfu_mode"&gt;DFU mode&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Entering DFU mode is triggered by one of the optional sources:
&lt;ul&gt;
&lt;li&gt;Button (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#ga2a0043889d40d5b09e524cc701f93fbf"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Pin reset (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#gaa89bea64482f2c4d83919922e5e84bc3"&gt;NRF_BL_DFU_ENTER_METHOD_PINRESET&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Special value in GPREGRET register (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#ga4e1297da5d25948277b4323a6fb87659"&gt;NRF_BL_DFU_ENTER_METHOD_GPREGRET&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Request from the application written to the settings page (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#gab540083b75cd50e020bbd166198476c4"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTONLESS&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Make sure that the device enters DFU mode, then starts to update with the package.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/383962?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 14:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2698e43-0386-4616-bbfa-0cf2b7b1e78f</guid><dc:creator>Louis_263</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately, I work with Eclipse and not with uVision, but I can provide you with the most important files of the project, since I did not change anything else in the source code and only used the SDK. In the attachment you will find the main.c, the linker script of the bootloader, and the preprocessor symbols I used.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52820_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../nrf52820_5F00_dfu.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/383941?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 13:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f5260f-0345-4e65-a1fd-2e039e2b52d8</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Louis_263"]I have tried to get the log to run, but the required libraries do not fit in the flash memory (when I try, I get the error message: &amp;quot;region `FLASH&amp;#39; overflowed by 6504 bytes&amp;quot;)[/quote]
&lt;p&gt;Maybe you could adjust the flash start address of the bootloader. Could you share the bootloader project?&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/383841?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 09:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a822f42-f93c-4e06-a0d6-094c7e2806e5</guid><dc:creator>Louis_263</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I use SDK version 17.1.0&lt;/li&gt;
&lt;li&gt;I use the softdevice S140 7.2.0&lt;/li&gt;
&lt;li&gt;
&lt;pre class="pre codeblock"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="pre codeblock"&gt;&lt;code&gt;nrfutil pkg generate --hw-version 52 --sd-req 0x100 --application-version 1 --application app.hex --key-file key.pem app_dfu_package.zip&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;I have tried to get the log to run, but the required libraries do not fit in the flash memory (when I try, I get the error message: &amp;quot;region `FLASH&amp;#39; overflowed by 6504 bytes&amp;quot;)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I have attached the linker script I used.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Louis&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4628.secure_5F00_bootloader_5F00_gcc_5F00_nrf52.ld"&gt;devzone.nordicsemi.com/.../4628.secure_5F00_bootloader_5F00_gcc_5F00_nrf52.ld&lt;/a&gt;&lt;/p&gt;
&lt;pre class="pre codeblock"&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="pre codeblock"&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 DFU does not start</title><link>https://devzone.nordicsemi.com/thread/383714?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 13:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c2003b-b2f2-4f59-b8cf-f81162b49a5c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What SDK version are you using?&lt;/p&gt;
&lt;p&gt;What is the SD version on the device?&lt;/p&gt;
&lt;p&gt;What is the command you used to generate the package? Please post the completed command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you provide the log from the device? You can use the&amp;nbsp;&lt;span&gt;bootloader debug version to get the log.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>