<?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>Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98058/dual-bank-update-failing-until-first-successful-dfu</link><description>I&amp;#39;m running a device that implements the NRF52832, and when I follow these steps, the device goes into a state where it is completely unresponsive and must be flashed with from its SWD interface: 
 
 Compile a hex file that contains the app, bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jun 2023 13:11:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98058/dual-bank-update-failing-until-first-successful-dfu" /><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/432332?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 13:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65cf708-26a4-424f-b628-bb6048f777ef</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please create a new support case for your own issue and upload the log from the bootloader with debug version.&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/432167?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 03:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b72e614b-670b-48d5-ae95-5e24b9a58407</guid><dc:creator>mort809</dc:creator><description>&lt;p&gt;Did you ever find a solution to this issue? I have just begun to notice the same thing.&lt;/p&gt;
&lt;p&gt;I am using the iOS nRF Connect application.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I use the nRF Connect desktop programmer application to flash a hex file that contains the softdevice, bootloader, bootloader settings, and initial application hex.&lt;/li&gt;
&lt;li&gt;I start the DFU process to upgrade to a later version of the application.&lt;/li&gt;
&lt;li&gt;I cancel the update and it bricks the device. No bootloader or application is advertising, and power cycling doesn&amp;#39;t bring it back.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If I allow the first update to succeed, and then start and cancel another update, it will correctly revert to the firmware version as I would expect.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/419291?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2023 13:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e802ee-750e-4a65-9191-0bd2b3089c26</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I would suggest you refer to this&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output"&gt;Easy way to merge bootloader and application RTT output&lt;/a&gt;&amp;nbsp; to get the bootloader and application log together.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/419115?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2023 20:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc6cf0fd-7ef4-475d-9226-24fb52424616</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;I don&amp;#39;t see a log from the app after the device enters DFU mode. The last line I see is this:&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; [00:03:21.866,607] &amp;lt;info&amp;gt; app_dfu: Power management wants to reset to DFU mode.
00&amp;gt; 
00&amp;gt; [00:03:21.866,607] &amp;lt;info&amp;gt; app_dfu: Power management allowed to reset to DFU mode.
00&amp;gt; &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/418894?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 15:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e66b224c-eb62-44a8-abe4-21b40a41d7b3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jdtoby_pa"]However the app is still logging to RTT. [/quote]
&lt;p&gt;What is the log from the app?&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/418678?ContentTypeID=1</link><pubDate>Fri, 31 Mar 2023 18:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0abb7df6-9b9b-4aa8-9814-4be44a7425a8</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to get UART logging working. I set&amp;nbsp;NRF_LOG_BACKEND_UART_ENABLED to 1, the buffer size to 64, the proper Tx pin, and the baudrate to 115200. I also set&amp;nbsp;&lt;span&gt;NRF_LOG_BACKEND_RTT_ENABLED&amp;nbsp;to 0 for both the app and bootloader. However the app is still logging to RTT. When I print out&amp;nbsp;NRF_LOG_BACKEND_UART_ENABLED, it says 0, and when I print out&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED, it says 1. Any advice here?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/418159?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 15:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a983fea-2d47-47c5-a1e7-7730fd4855e7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Seems correct to me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417980?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 21:29:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee283dbf-73a5-4165-9018-f67bed8ab407</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;Ok thanks, I&amp;#39;ll try having the app log to UART and the bootloader log to RTT. In the meantime, do you think there&amp;#39;s a way to build the initial hex file that contains the SD, bootloader, settings, and app in such a way that this error never happens? Here&amp;#39;s the command that builds that file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Build app and create full hex version (app + sd + bootloader)
build_full: build_app
	@echo Generating bootloader + SoftDevice
	make $(MODEL) TARGET_CONFIG=$(TARGET_CONFIG) -C ./bootloader
	mkdir -p $(OUTPUT_DIRECTORY)
	$(NRFUTIL) settings generate --family $(TARGET_FAMILY) \
  --application-version $(APP_VERSION_INT) \
  --bootloader-version $(BL_VERSION) \
  --bl-settings-version 1 $(OUTPUT_DIRECTORY)/settings.hex
	@echo Merging settings with bootloader
	mergehex -m $(OUTPUT_DIRECTORY)/settings.hex $(BL_DIRECTORY)/$(BL_HEX) \
  -o $(OUTPUT_DIRECTORY)/$(BL_HEX)
	@echo Merging with app
	mkdir -p $(DFU_DIRECTORY)
	mergehex -m $(OUTPUT_DIRECTORY)/$(BL_HEX) $(OUTPUT_DIRECTORY)/$(PROJECT_NAME).hex -o \
	$(DFU_DIRECTORY)/$(FULL_HEX)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417948?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 16:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feafe0ef-afb2-44a8-aadf-c7f84ec92510</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="jdtoby_pa"]PC: 0x000262DE[/quote]
&lt;p&gt;Seems the&amp;nbsp;&lt;span&gt;device has gotten stuck in the application since the app started at&amp;nbsp;0x26000 in s132v6.1.1.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the application? Is it an nRF5 example or your application? I would suggest getting the log from the app to debug.&amp;nbsp;&lt;/span&gt;&lt;span&gt;It can be tricky to get RTT logging working with both a bootloader and app running on the same device:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30310/easy-way-to-merge-bootloader-and-application-rtt-output&lt;/a&gt;. I would suggest to enable UART logging in the app if that&amp;#39;s an option.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417746?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 18:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:581b4e2b-db22-4008-b678-2b9b25060817</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m using s132 v6.1.1. Here is the command I&amp;#39;m using to build the DFU package:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Build app and generate DFU zip
build_dfu: build_app
	@echo Generating DFU scriplean
	mkdir -p $(DFU_DIRECTORY)
	$(NRFUTIL) pkg generate --hw-version $(DFU_HW_ID) \
  --application-version $(APP_VERSION_INT) \
  --application $(OUTPUT_DIRECTORY)/$(PROJECT_NAME).hex \
  --sd-req $(SD_REQ) \
  --key-file $(KEY_DIRECTORY)/private.key \
  $(DFU_DIRECTORY)/$(DFU_ZIP)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;SD_REQ is 0xB7. I believe all the other variables are just file/folder/version names specific to the project.&lt;/p&gt;
&lt;p&gt;I got the device stuck again and read the registers, and this was the result. However, I didn&amp;#39;t see any RTT outputs after entering into DFU mode this time:&lt;/p&gt;
&lt;p&gt;R0: 0x00000004&lt;br /&gt;R1: 0x00031E3C&lt;br /&gt;R2: 0x00026000&lt;br /&gt;R3: 0x000262DF&lt;br /&gt;R4: 0x00001000&lt;br /&gt;R5: 0x200080B4&lt;br /&gt;R6: 0x2000A094&lt;br /&gt;R7: 0x00000004&lt;br /&gt;R8: 0x00000000&lt;br /&gt;R9: 0x00000000&lt;br /&gt;R10: 0x20000000&lt;br /&gt;R11: 0x00000000&lt;br /&gt;R12: 0x00000000&lt;br /&gt;SP: 0x2000FFD0&lt;br /&gt;LR: 0xFFFFFFF9&lt;br /&gt;PC: 0x000262DE&lt;br /&gt;xPSR: 0x21000003&lt;br /&gt;MSP: 0x2000FFD0&lt;br /&gt;PSP: 0x00000000&lt;/p&gt;
&lt;p&gt;I reset the device by pulling the reset pin low, and then I was able to see the &amp;quot;Disabling interrupts&amp;quot; RTT printout. I then read the registers again after that:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;R0: 0x00000004&lt;br /&gt;R1: 0x00000000&lt;br /&gt;R2: 0x00026000&lt;br /&gt;R3: 0x000262DF&lt;br /&gt;R4: 0x00001000&lt;br /&gt;R5: 0x200080B4&lt;br /&gt;R6: 0x2000A094&lt;br /&gt;R7: 0x00000715&lt;br /&gt;R8: 0x00000000&lt;br /&gt;R9: 0x00000000&lt;br /&gt;R10: 0x20000000&lt;br /&gt;R11: 0x00000000&lt;br /&gt;R12: 0x00000000&lt;br /&gt;SP: 0x00000010&lt;br /&gt;LR: 0x0003A703&lt;br /&gt;PC: 0x000262DE&lt;br /&gt;xPSR: 0x21000000&lt;br /&gt;MSP: 0x00000010&lt;br /&gt;PSP: 0x00000000&lt;/p&gt;
&lt;p&gt;Thanks and hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417742?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 16:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddbbeccf-d6d0-4b2a-be85-0c9128059e0b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using s132 v&lt;span&gt;6.1.1?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What is the command you are using to generate the updated package? Please post the command.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you run &amp;quot;nrfjprog --readregs&amp;quot; when the device has gotten stuck in this state? I.e. after the &amp;quot;00&amp;gt; &amp;lt;debug&amp;gt; app: Disabling interrupts. NVIC-&amp;gt;ICER[0]: 0x120000&amp;quot; line is printed. The Program Counter (PC) should tell us exactly where it hangs.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417481?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 15:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793ca1c4-84bf-4970-bc04-1bbe5a690468</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_failure_5F00_log.txt"&gt;devzone.nordicsemi.com/.../dfu_5F00_failure_5F00_log.txt&lt;/a&gt;I&amp;#39;ve attached a file that contains the RTT viewer output while the DFU failure was occurring (i.e. DFU is aborted midway through, then gets stuck in bootloader mode). Is this what you&amp;#39;re looking for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417459?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 14:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:170098dc-1b8b-43a0-8c91-9b073c01e047</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Connect with J-Link RTT view to get the log from&amp;nbsp;&lt;span&gt;the bootloader debug version.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417455?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 14:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c66761-aec7-4624-9c0e-a8efa9b08b06</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure where to find that, what would the file be named?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417445?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 14:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b21838a8-18c9-4d48-bf9c-f1e90e481389</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is it possible to provide the log with the bootloader debug version for the issues? Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417235?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 20:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62814962-4304-41b9-976e-d683f9810354</guid><dc:creator>jdtoby_pa</dc:creator><description>&lt;p&gt;Mine are ~80KB when compiling in release mode and ~160KB when compiling in debug mode&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dual bank update failing until first successful DFU</title><link>https://devzone.nordicsemi.com/thread/417160?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 15:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93162293-86f9-4dce-b6ab-21b489aa9134</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;Out of curiosity how big are your updates?, I have found that the nrf52832 flash size is too small for Dual bank without external flash for my needs.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>