<?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>Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28956/have-to-run-dfu-ota-twice</link><description>Hi, I know there are already lots of threads around this but it seems none is like mine. 
 I&amp;#39;m running my toolchain on a Mac so I think I have a more challenging debug setup as I never found out how I can get RTT logger to log the normal app and still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jan 2018 16:06:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28956/have-to-run-dfu-ota-twice" /><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114550?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 16:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59ce4b25-6805-4e37-aef3-4489462222e7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please try to update with just the bootloader + softdevice first. No merging or manually write bootloader setting.&lt;/p&gt;
&lt;p&gt;When you update did you update a different application or same application ? Please try to test using SDK example first. I have a blog &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;here&lt;/a&gt; that you may want to follow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114549?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 16:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0189e19d-2c0a-4c58-956f-045240dce2a1</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;another datapoint: sending the device back to bootloader again via sd_power_gpregret_set(0, BOOTLOADER_DFU_START); and letting it timeout actually updates the app even after the first OTA. But that&amp;#39;s not a solution, I think...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114551?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 15:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23ab2456-cf91-4e8b-afea-7bc7c65de1e1</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I did another run, to show the output after 2nd OTA as well:&lt;/p&gt;
&lt;p&gt;Initial flash&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Family:               nRF52
CRC:                  0xB591D895
Settings Version:     0x00000001 (1)
App Version:          0x00000003 (3)
Bootloader Version:   0x00000002 (2)
Bank Layout:          0x00000000
Current Bank:         0x00000000
Application Size:     0x00015F34 (89908 bytes)
Application CRC:      0x05475C39
Bank0 Bank Code:      0x00000001
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After 1st OTA&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Family:               nRF52
CRC:                  0xCC460A3F
Settings Version:     0x00000001 (1)
App Version:          0x00000003 (3)
Bootloader Version:   0x00000002 (2)
Bank Layout:          0x00000000
Current Bank:         0x00000001
Application Size:     0x00015F34 (89908 bytes)
Application CRC:      0x05475C39
Bank0 Bank Code:      0x00000000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After 2nd OTA&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Family:               nRF52
CRC:                  0xD32C0C63
Settings Version:     0x00000001 (1)
App Version:          0x00000003 (3)
Bootloader Version:   0x00000002 (2)
Bank Layout:          0x00000000
Current Bank:         0x00000001
Application Size:     0x00015F34 (89908 bytes)
Application CRC:      0x704102E6 **&amp;lt;-- now the CRC changed**
Bank0 Bank Code:      0x00000000
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114553?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 15:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971e3e0d-dffa-4424-b1be-b9c639cba6fb</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;My testing is set up as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;flash the initial bootloader + sd + app + bl settings via nrfjprog&lt;/li&gt;
&lt;li&gt;generate a package (debug) with only the app via
&lt;code&gt;nrfutil pkg generate --application-version 3 --application app.hex --hw-version 52 --sd-req 0x9D --debug-mode --key-file private.pem package.zip&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And here&amp;#39;s the nrfutil settings display output:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;After initial flash&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Family:               nRF52
CRC:                  0x9600BC1B
Settings Version:     0x00000001 (1)
App Version:          0x00000003 (3)
Bootloader Version:   0x00000002 (2)
Bank Layout:          0x00000000
Current Bank:         0x00000000
Application Size:     0x00015F34 (89908 bytes)
Application CRC:      0x42280D65
Bank0 Bank Code:      0x00000001
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;** After OTA dfu (secure ble w/o bonding) **&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Bootloader DFU Settings:
File:                 temp.hex
Family:               nRF52
CRC:                  0x40FB9CB2
Settings Version:     0x00000001 (1)
App Version:          0x00000003 (3)
Bootloader Version:   0x00000002 (2)
Bank Layout:          0x00000000
Current Bank:         0x00000001
Application Size:     0x00015F34 (89908 bytes)
Application CRC:      0x42280D65
Bank0 Bank Code:      0x00000000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it looks like the bank was switched, but the application is still the same, right?&lt;/p&gt;
&lt;p&gt;Thanks for the hint about logging!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114552?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 15:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3329489a-04c2-4428-9bc8-93ced1ec402f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What did you use to update the firmware ? How did you update the initial application firmware ? Should it work on the initial OTA DFU ? Have you tried to update SDK examples instead of your app ?&lt;/p&gt;
&lt;p&gt;If you want RTT logging for both application and bootloader you can have a look &lt;a href="https://devzone.nordicsemi.com/question/122629/rtt-logging-from-application-started-by-bootloader/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114548?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 11:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfec6052-2e48-47e9-89b3-d757bd5d677f</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;SDK 14.1 and the softdevice is the same :(&lt;/p&gt;
&lt;p&gt;I use Ozone, but as the bootloader is a different image file (it has to be, right?) I can either debug the bootloader or the app&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Have to run DFU OTA twice</title><link>https://devzone.nordicsemi.com/thread/114547?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 11:02:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b8d38ad-ba8e-4970-ae25-7e5e1bd36d94</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;You should try &lt;a href="https://www.segger.com/products/development-tools/ozone-j-link-debugger/"&gt;Ozone&lt;/a&gt;. Its a free cross platform debugging tool from Segger. It will allow you to set breakpoints, inspect variables etc. like any IDE.&lt;/p&gt;
&lt;p&gt;Also: What SDK version are you on? If you are on 14.0.0 then there is a known bug with doing SoftDevice updates where the new SoftDevice does not have the same size as the old one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>