<?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>nRF51 OTA DFU not working after successful image verification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6897/nrf51-ota-dfu-not-working-after-successful-image-verification</link><description>I am trying to do OTA DFU on nRF51-DK from a BLE dongle (CSR 4.0) and gatttool from BlueZ. The image is compiled from blinky_s110_pca10028 example ( blinky_s110_pca10028.hex ). I followed the SDK 8.0.0 documentation here (I used the most basic procedure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 May 2015 12:50:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6897/nrf51-ota-dfu-not-working-after-successful-image-verification" /><item><title>RE: nRF51 OTA DFU not working after successful image verification</title><link>https://devzone.nordicsemi.com/thread/24312?ContentTypeID=1</link><pubDate>Thu, 07 May 2015 12:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2228f421-89b9-48bd-aed8-f28d6635d1b3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@diode: according to &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00103.html"&gt;this&lt;/a&gt; you should send 0000000000000000a4020000 instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU not working after successful image verification</title><link>https://devzone.nordicsemi.com/thread/24311?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 18:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:198573a3-8519-4216-9bb7-9833001530c7</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;It seems the 12-byte file size packet is divided to three parts, the size of softdevice, bootloader and application. Since I was only transferring the application image, I wrote a packet like a40200000000000000000000 where 0x000002a4 is the size of application image. Was the packet format correct? Do I need to also include the size of SoftDevice and bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU not working after successful image verification</title><link>https://devzone.nordicsemi.com/thread/24310?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 16:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f268806a-372e-4803-8a42-38627fbebc60</guid><dc:creator>diode</dc:creator><description>&lt;p&gt;@HungBui I have used the command &amp;quot;nrfjprog --readcode filename.hex&amp;quot; to read out the image to hex files. You can find the hex before OTA &lt;a href="https://drive.google.com/file/d/0Bz7ev0MCJ7VIcnNmd29ncVVSZlU/view?usp=sharing"&gt;here&lt;/a&gt; and after OTA &lt;a href="https://drive.google.com/file/d/0Bz7ev0MCJ7VIbXRYaGJ3RTd4Sms/view?usp=sharing"&gt;here&lt;/a&gt;. A diff output shows they are not different. However, according to the log, the image verification is successful (returning request op code of 1). Also, I tried intentionally interrupt the OTA DFU in the middle, and read out the hex file after that. The file is also not different from the other two. What could happen in this process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 OTA DFU not working after successful image verification</title><link>https://devzone.nordicsemi.com/thread/24309?ContentTypeID=1</link><pubDate>Wed, 06 May 2015 11:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee29270a-4a7f-4a9a-8ab1-945d4fb781d9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Diode,&lt;/p&gt;
&lt;p&gt;You can try to read out (using nrfjprog) the chip&amp;#39;s binary to see if the image has been updated properly or not. If possible you can upload it (the bootloader hex file, the blinky hex and the readout hex file of your chip after you finish DFU) here so that I can have  a look.&lt;/p&gt;
&lt;p&gt;You can also debug the bootloader to see why it doesn&amp;#39;t jump to your application.
You can find information on how to change the bootloader configuration to support debugging &lt;a href="https://devzone.nordicsemi.com/question/18039/bootloader-debugging/"&gt;here&lt;/a&gt;. If it&amp;#39;s not easy to debug with Linux and gcc, you can try to sending information via UART for debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>