<?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>Looking for a reason flash might be 0xff&amp;#39;s after OTA DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18537/looking-for-a-reason-flash-might-be-0xff-s-after-ota-dfu</link><description>Hi, I&amp;#39;m trying to install the BLE buttonless DFU template onto a nRF52 (PCA10040) eval board using the secure bootloader example (with s132, version 12.2 of the SDK) via nRF Toolbox. There&amp;#39;s no application there to begin with, but I&amp;#39;ve specified that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Dec 2016 15:35:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18537/looking-for-a-reason-flash-might-be-0xff-s-after-ota-dfu" /><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71556?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 15:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b252657b-63d9-4d68-ba97-f81656f7ee5d</guid><dc:creator>Tom Nantais</dc:creator><description>&lt;p&gt;Thanks very much Hung Bui -- flashing just the bootloader + s132 works.  Next, we&amp;#39;ll try it with our app and keys.  The example could perhaps be improved by making clearer the conditions for including bootloader settings.  The way it reads now suggests you want to include those settings anytime you&amp;#39;re making your own firmware, but people want to experiment with installing their own firmware over BLE, in which case you don&amp;#39;t want to include bootloader settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71555?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 12:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:779d3e50-748c-4277-ae7e-2911c9ad40b7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tom,&lt;/p&gt;
&lt;p&gt;The version by default will be 0 and you don&amp;#39;t really to write the bootloader setting manually. You may need one if you want to pre-configure the bootloader setting .&lt;/p&gt;
&lt;p&gt;The bootloader setting is updated after each success DFU update.&lt;/p&gt;
&lt;p&gt;Please try to use the hex file you compiled your self, not the pre provided hex (even though it should work also). If you complie the bootloader hex your self then it&amp;#39;s not included the softdevice.&lt;/p&gt;
&lt;p&gt;Please follow the instruction in &amp;quot;Testing&amp;quot; section in the link you pointed to above. Ignore step 4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71554?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 12:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0bf128b-fc51-40d8-ab77-8b35d0aed599</guid><dc:creator>Tom Nantais</dc:creator><description>&lt;p&gt;Thanks Hung Bui,  I will try it as soon as I get to the office.  I believe the bootloader hex file that I found in the SDK is already correctly compiled with the s132 embedded. About the bootloader settings, I was going by 1(e) in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Fble_sdk_app_dfu_bootloader.html"&gt;these instructions&lt;/a&gt; because we were generating our own firmware to be installed OTA. Last night, I was concerned that the problem might be that I was erasing important settings in the UICR with --eraseall and not restoring them before programming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71557?ContentTypeID=1</link><pubDate>Fri, 23 Dec 2016 08:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b484f34-c1c1-4a10-9566-26360a578ba5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tom,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why you need step 2, generating the bootloader setting ? It&amp;#39;s not in the instruction in the doc. You only genrate the bootloader setting and merge it when you want to merge the application and flash the application with the bootloader at the same time.&lt;/p&gt;
&lt;p&gt;To test with the stock .zip in the SDK, please simply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Compile the debug bootloader&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Flash the softdevice and then the bootloader&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Check if the bootloader advertising, then do DFU update from nRFToolbox or NRFConnect&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71553?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 18:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd373f1d-b070-4749-a20a-92ed0ef232d3</guid><dc:creator>Tom Nantais</dc:creator><description>&lt;p&gt;@Hung Bui: I&amp;#39;m starting to wonder if I&amp;#39;m using the DFU mechanism correctly.  I start by clearing the flash, then programming the s132 and bootloader-plus-settings hexfile using nrfjprog via J-Link.  The bootloader should start at 0x75000 because I haven&amp;#39;t changed the linker settings.  At this point, there&amp;#39;s no application (and the bootloader settings were generated with no --application specified).  Then I transfer the application via nRF Toolbox.  Please see edit 3 above for testing with SDK example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71552?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 16:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e51c7454-dcff-4b06-8e4f-314fa04e404b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Tom: the example .zip is located at \examples\dfu\ble_dfu_send_hex\test_images_update_nrf52832.&lt;/p&gt;
&lt;p&gt;I just had a look into your hex file, seems that the whole 2 banks are empty. You sure you don&amp;#39;t do any flash erasing with your application ?&lt;/p&gt;
&lt;p&gt;Besides testing with the example .zip file, you can also try to test with the example in the SDK such as the ble_app_hrs.&lt;/p&gt;
&lt;p&gt;Where did you set the start address of your bootloader ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71551?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 15:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d84e25b-b5e2-496c-9c03-9e7e933faaef</guid><dc:creator>Tom Nantais</dc:creator><description>&lt;p&gt;Thanks very much Hung Bui.  I&amp;#39;ve attached the hex dump and app package.  I&amp;#39;m sure I&amp;#39;ve just made a simple mistake.  I&amp;#39;ll try dfu_test_app_hrm_s132.zip with the default debug bootloader from the sdk?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Looking for a reason flash might be 0xff's after OTA DFU</title><link>https://devzone.nordicsemi.com/thread/71550?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2016 11:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35e64f3a-7666-4e84-a2e2-ea9a9431c17c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tom,&lt;/p&gt;
&lt;p&gt;From the log , it seems the CRC comparison returned invalid. The CRC of the image copied to 0x1f000 doesn&amp;#39;t match with the crc from bank 1. This is pretty strange. Could you read the whole hex dump after you do DFU and send me that ? You may want to include the .zip file you used .&lt;/p&gt;
&lt;p&gt;If you try with the test .zip example and the debug version of the bootloader, would it work ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>