<?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>Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22304/remote-dfu-operation-failed-error-in-secure-ota</link><description>Hi, 
 I am trying to secure OTA in nrf51822 board. 
 For that trying to build bootloader file available in SDK 12.2.0 version at location nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure\pca10028_debug\arm5_no_packs. But it is building perfectly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jul 2017 09:06:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22304/remote-dfu-operation-failed-error-in-secure-ota" /><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87689?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 09:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef5b72c8-e6a0-4de2-b670-9555b77a46fa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s S130 v2.0.1 : &lt;a href="https://www.nordicsemi.com/eng/content/download/95150/1606929/file/s130_nrf51_2.0.1.zip"&gt;www.nordicsemi.com/.../s130_nrf51_2.0.1.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87692?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2017 06:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feafc9ad-6780-46a6-9cb0-922810291c8f</guid><dc:creator>Nilesh Bhavsar</dc:creator><description>&lt;p&gt;I understand that all the softdevices are tested but somehow i am not able to doing that. For identify the my mistake, i need to that same softdevice which you tested early with bootloader and app.hex file which i have sent you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87690?ContentTypeID=1</link><pubDate>Tue, 04 Jul 2017 22:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d21983-08ed-42d8-b592-7028e2aee32e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;tested softdevice&amp;quot; all softdevices are tested. Please answer my questions in the comment above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87688?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2017 10:33:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cfad1be-9fc0-4c5d-9a54-9ffe48256e1e</guid><dc:creator>Nilesh Bhavsar</dc:creator><description>&lt;p&gt;Can you send me the tested soft device file from your end? Because i am trying to multiple time but not become successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87702?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 12:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c4f385c-feb8-4cf4-9d98-488e75a82602</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What do you mean ? How did you flash the softdevice and the bootloader ?
You can Simply use nRFGo Studio or nrfjprog for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87701?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 09:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2e1acc3-57d9-4bf9-add8-08f81316bd3c</guid><dc:creator>Nilesh Bhavsar</dc:creator><description>&lt;p&gt;I apologize for my mistake.
Please tell me how to burn you bootloader and softdevice into the board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87700?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 08:37:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52fb0981-f043-4a70-8573-b2d7aa78cf3b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Nilesh: Please stop creating answer, you only use Answer when you want to answer for the question, not when you want to answer my comment. You use the comment box instead. When you want to attach a file, please edit the question.&lt;/p&gt;
&lt;p&gt;I tested here and with your bootloader and the app_dfu_package.zip it worked. It advertised as &amp;quot;nordic_template&amp;quot; Please make sure you use &lt;strong&gt;S130 v2.0.1&lt;/strong&gt; not S130 v2.0.0 because you used --sd-req 0x87&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87699?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 14:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7499485c-5fc6-4441-b07f-bacf69117496</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Btw, Which nRF51 variant are you testing with , it&amp;#39;s with 32kB RAM or 16kB RAM ? Could you read the chip laser marker ?
Also please edit the question and add the bootloader hex , and the .zip file you used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87698?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 14:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c79acf-619a-48fa-844c-6df11858ab3f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;What do you mean by &amp;quot;add external flash for programming&amp;quot; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87697?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 14:01:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7139faa-48a0-42ab-9b02-4c6d9f0964ac</guid><dc:creator>Nilesh Bhavsar</dc:creator><description>&lt;p&gt;Dear Sir,&lt;/p&gt;
&lt;p&gt;Please find below nRFLogger&amp;#39;s Log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nRF Connect, 2017-06-02
DfuTarg (D5:2B:A9:BA:40:D1)
V	17:00:47.279	Connecting to D5:2B:A9:BA:40:D1...
D	17:00:47.279	gatt = device.connectGatt(autoConnect = false)
D	17:00:47.372	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	17:00:47.372	Connected to D5:2B:A9:BA:40:D1
D	17:00:47.575	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
V	17:00:47.645	Discovering services...
D	17:00:47.645	gatt.discoverServices()
D	17:00:47.666	[Callback] Services discovered with status: 0
I	17:00:47.668	Services discovered
V	17:00:47.703	Generic Access (0x1800)
- Device Name [R W] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
Generic Attribute (0x1801)
Secure DFU Service (0xFE59)
- DFU Packet [WNR] (8ec90002-f315-4f60-9fb8-838830daea50)
- DFU Control Point [N W] (8ec90001-f315-4f60-9fb8-838830daea50)
   Client Characteristic Configuration (0x2902)
V	17:00:59.238	[DFU] DFU service started
V	17:00:59.238	[DFU] Opening file...
I	17:00:59.429	[DFU] Image file opened (28744 bytes in total)
D	17:00:59.429	[DFU] wait(1000)
D	17:01:00.424	[DFU] wait(1000)
V	17:01:01.469	[DFU] Connecting to DFU target...
D	17:01:01.470	[DFU] gatt = device.connectGatt(autoConnect = false)
I	17:01:01.470	[DFU] Connected to D5:2B:A9:BA:40:D1
V	17:01:01.470	[DFU] Discovering services...
D	17:01:01.470	[DFU] gatt.discoverServices()
I	17:01:01.535	[DFU] Services discovered
D	17:01:01.597	[DFU] wait(1000)
V	17:01:02.565	[DFU] Enabling notifications for 8ec90001-f315-4f60-9fb8-838830daea50
D	17:01:02.566	[DFU] gatt.setCharacteristicNotification(8ec90001-f315-4f60-9fb8-838830daea50, true)
D	17:01:02.575	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
I	17:01:02.613	[DFU] Data written to descr.8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-00
V	17:01:02.613	[DFU] Notifications enabled for 8ec90001-f315-4f60-9fb8-838830daea50
A	17:01:02.613	[DFU] Notifications enabled
D	17:01:02.613	[DFU] wait(1000)
V	17:01:03.624	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	17:01:03.625	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	17:01:03.685	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 06-01
I	17:01:03.685	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-01-00-00-86-00-00-00-7F-2D-F2-C4
A	17:01:03.685	[DFU] Command object info received (Max size = 256, Offset = 134, CRC = C4F22D7F)
A	17:01:03.686	[DFU] Received CRC match Init packet
V	17:01:03.686	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	17:01:03.686	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	17:01:03.727	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 04
I	17:01:03.727	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-0A
E	17:01:03.727	[DFU] Remote DFU error: REMOTE DFU OPERATION FAILED
V	17:01:03.727	[DFU] Disconnecting...
D	17:01:03.784	[DFU] gatt.disconnect()
I	17:01:03.785	[DFU] Disconnected
D	17:01:03.785	[DFU] gatt.refresh() (hidden)
D	17:01:03.785	[DFU] gatt.close()
D	17:01:03.789	[DFU] wait(600)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also i have no change in any IRAM setting for bootloader and example only add external flash for programming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87696?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 10:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81e286b9-d8b8-4ca2-92f3-f2e0c6d86692</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please post your log with nRFLogger, we need to know what cause Remote DFU operation failed.&lt;/p&gt;
&lt;p&gt;Please try to test with unmodified application example and unmodified bootloader, except for the key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87695?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 08:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efcef8b4-798c-4c1a-b6cb-5f175b13927c</guid><dc:creator>Nilesh Bhavsar</dc:creator><description>&lt;p&gt;Dear Sir,&lt;/p&gt;
&lt;p&gt;As per your Suggestion, i am trying to find out my problem using nRF Logger application. In that i found Remote DFU Operation failed error. I have airedy install latest version of the nRFconnect Application.&lt;/p&gt;
&lt;p&gt;I am using external tool for flash programming in keil. In that, Command is nrfjprog.exe and Arguments is --reset --program &amp;quot;#H&amp;quot;.&lt;/p&gt;
&lt;p&gt;My internal Ram setting for bootloader: [Read/Only Memory Areas: IROM1- start: 0x3AC00 Size: 0x500][Read/write Memory Areas: IRAM1- start: 0x20002C00 size: 0x5380]&lt;/p&gt;
&lt;p&gt;As of now i am trying to simple example program which is available in SDK at examples\ble_peripheral\experimental_ble_app_buttonless_dfu\pca10028\s130\arm5_no_packs.&lt;/p&gt;
&lt;p&gt;My internal Ram setting for Program: [Read/Only Memory Areas: IROM1- start: 0x1B00 Size: 0x25000][Read/write Memory Areas: IRAM1- start: 0x20001FE8 size: 0x6018]&lt;/p&gt;
&lt;p&gt;Please suggest me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87694?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 11:21:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3d9b29b-d002-4809-997f-15e146b3dd6b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Your steps seems correct. Please try to find the DFU log in nRFLogger app, or try to enable Logging inside bootloader.
Which app did you use to update ? make sure you updated the app to latest version. Please try using nRFConnect.&lt;/p&gt;
&lt;p&gt;Or you can capture &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;a sniffer trace&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87693?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 10:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702c4ec9-9f29-4c74-a76e-a5d2cee8d7c0</guid><dc:creator>Nilesh Bhavsar</dc:creator><description>&lt;p&gt;Hello Sir,&lt;/p&gt;
&lt;p&gt;Thank you for your valuable support to me.&lt;/p&gt;
&lt;p&gt;I have resolved micro_ecc_lib_nrf51.lib error. Now i am trying to update ble_app_uart file available in SDk12.2.0 through OTA in my nordic board. For that, i am following below steps:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;1). Generate private key using nrfutil.exe keys generate private.key command
2). generate public_key.c file using private.key by nrfutil keys display --key pk --format code private.key --out_file public_key.c command.
3). Open nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure\pca10028_debug\arm5_no_packs file in keil and remove older dfu_public_key.c file and replace new public_key.c file.
4). Then build program successfully and load into my board. Now my board emits itself nrftarg.
5). Open nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ble_app_uart\pca10028\s130\arm5_no_packs program and build succssfully then copy .hex file from _build folder and paste in same folder where nrfutil.exe and private.key file is available.
6). Now generate DFu page using nrfutil pkg generate --hw-version 51 --application-version 1 --application nrf51422_xxac.hex --sd-req 0x87 --key-file private.key app_dfu_package.zip
7). then copy this zip in my app and follow update step in nrfconnect app.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But it&amp;#39;s not done successfully. it is just start like starting DFU then Disconnecting.&lt;/p&gt;
&lt;p&gt;Please help me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Remote DFU: Operation Failed Error in Secure OTA</title><link>https://devzone.nordicsemi.com/thread/87691?ContentTypeID=1</link><pubDate>Wed, 24 May 2017 10:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef70477-ef5c-45c3-9159-dce492ed44d7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nilesh, you need to compile the ECC library. please follow my tutorial &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;here&lt;/a&gt; at step B1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>