<?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>S310 DFU &amp;quot;Operation Failed&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8819/s310-dfu-operation-failed</link><description>This is the application file I am trying to download:
 dx02.zip 
 This is the sniffer Log I just captured by wireshark
 dx02_20150820.pcapng 
 I was able to upgrade firmware via iPhone 6 using nRF Toolbox App. It is using S110 softdevice.
So I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Aug 2015 13:24:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8819/s310-dfu-operation-failed" /><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32391?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2015 13:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb013f3-88ca-49a8-9f77-77ef7ff0534f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Paul: Yes, it&amp;#39;s provided, please have a look &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00080.html"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Your modification is correct if you do reset to jump from application to bootloader. But you won&amp;#39;t be able to share bond information between the bootloader and the application (unless you implement your own code to get bond information from flash)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32390?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2015 15:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6431a5cd-88f4-4d9c-bb65-9864921563d9</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I did changed the bootloader a little:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    ble_stack_init(!app_reset);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;	ble_stack_init(true);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That&amp;#39;s about it. And it worked.&lt;/p&gt;
&lt;p&gt;But do you have your example for starting bootloader directly from application?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32389?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2015 10:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006e73bd-bbaf-4ffe-a5a6-5f915a4e851c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Paul: I&amp;#39;m not sure how it worked for you, because in our bootloader we don&amp;#39;t expect a reset, but a direct jump from application to bootloader with the softdevice kept initialized. Maybe you have modified the bootloader. I discussed a little bit about this at section C in &lt;a href="https://devzone.nordicsemi.com/blogs/685/common-faq-on-dfu/"&gt;this blog&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32388?ContentTypeID=1</link><pubDate>Sun, 23 Aug 2015 13:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac53677-0d24-43dc-9af0-0d974aea8fdb</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;Update:
I got it working!
This is the trick:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;				sd_power_gpregret_clr(0xFF);
				sd_power_gpregret_set(0xB1);
				sd_nvic_SystemReset();
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32387?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 23:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d2a2d8-191c-4158-8030-5df5b0d303ea</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I tried this in my application. It didn&amp;#39;t work.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;				NRF_POWER-&amp;gt;GPREGRET = 0xB1;
				NVIC_SystemReset();
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32381?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 20:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:765532fa-d8d4-4a80-83ce-e876a614cb82</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I switched my application to SDK9.0. As I have expected, there are a few tricky things need to be modified to make the old project work. And I uploaded the application zip file into the unit successfully and worked.
Thanks for your help @Hung Bui.
Now I am trying find an example showing how to reactivate the bootloader in my application.
Do you have one you can share with me?
Thanks&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32386?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 13:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e61d4b9-f3ed-46db-a980-fa5739efcb20</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Sorry, I forgot that we are talking about S310.
S310 is not support natively on SDK v8.x. But if in your application is used with S310 v3.0.0 then they should work, regardless which SDK they based on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32385?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 12:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79485db3-e323-4c97-b5c8-b86ecb362349</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;They use different softdevice, they cannot work together :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32384?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 12:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42019c42-bbef-478a-b81c-ca6108323e22</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Paul: You can have bootloader compile in SDK 9.0 and your application in SDK v8.x.
The issue was due to the new nrfjprog version. You can simply use nRFGo studio to flash the bootloader.
My dual bank ble S310 project is the stock project from SDK , with no modification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32383?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 12:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83df4b10-58dc-4fc0-bd39-cca54bcad003</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I used nRF Studio and uploaded the bootloader. I was able to upload dx02.zip now!
Anyway to fix the nrfjprog.exe command line?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32382?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 12:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5003b2-1a60-425f-acf7-499c8af56df8</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;OK, I tried copy the example only, using SDK V8 to compile. Passed compiling, but same issue.
Now I just upgraded the SDK to V9. Compiling is OK, but I am getting this message when downloading:&lt;/p&gt;
&lt;p&gt;ERROR: Option &amp;quot;--family&amp;quot; provided is incompatible with any of the erase, program, and reset arguments.&lt;/p&gt;
&lt;p&gt;Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32380?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 11:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b77ea34-ca0f-4be1-8907-d94cc67e6539</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I am hesitating to get SDK v9.0 right now because it may break my existing projects. What SDK you are using for dx02.zip? Thanks. Paul
Edit: Can you also send your dual_bank_ble_s310 project? Just to make sure all the setting in the project is correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32379?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2015 11:40:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b09aced7-2273-4c92-92cc-0e464fcddebf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying here with your dx02.zip file and had no trouble uploading it from nRFtoolbox from my iPAD.&lt;/p&gt;
&lt;p&gt;I would suggest you to download SDK v9.0 &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v9.x.x/"&gt;here&lt;/a&gt;, and test with the S310 DFU example located at \examples\dfu\bootloader\pca10028\dual_bank_ble_s310&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32378?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2015 19:48:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feb4fca4-f90b-41f2-a28a-217d03b06412</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;sniffer trace log has been uploaded into the original post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32377?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2015 15:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8460e24e-00ea-4a2f-8d4d-15b551b37e36</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;DX02.ZIP has been uploaded into the original post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32376?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2015 15:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49c20b0b-87eb-45bf-b098-17b29814bea8</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;MDK-ARM V5.12
The SDK version (Tell by nrf_Examples in Pack Installer) : V8.1.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S310 DFU "Operation Failed"</title><link>https://devzone.nordicsemi.com/thread/32375?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2015 10:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d36ce45-468f-4b1d-8c5b-580a6729c49d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Paul: Please let me know the SDK version you tested with (of the bootloader and application).&lt;/p&gt;
&lt;p&gt;If you have a nRF51 DK or dongle, please capture and upload a sniffer trace when you do DFU.&lt;/p&gt;
&lt;p&gt;Please upload your files that you use for DFU so that we can test here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>