<?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>Response value 6: Operation Failed when attempting to write 0x01 Start DFU to DFU Control Point</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30740/response-value-6-operation-failed-when-attempting-to-write-0x01-start-dfu-to-dfu-control-point</link><description>Hi, 
 I&amp;#39;m getting back &amp;quot;01 10 06&amp;quot; when attempting to send 0x01 Start DFU to the DFU Control Point from my gateway which is a Pi3 running Noble. Notifications are enabled. With the NRF ToolBox I do not seem to get this error. If I send 0x05 or 0x06 from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Feb 2018 14:53:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30740/response-value-6-operation-failed-when-attempting-to-write-0x01-start-dfu-to-dfu-control-point" /><item><title>RE: Response value 6: Operation Failed when attempting to write 0x01 Start DFU to DFU Control Point</title><link>https://devzone.nordicsemi.com/thread/121696?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 14:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae36e1ea-a3ce-4676-9c35-79d0b5daaf23</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Yes, you are missing the c4 parameter. I agree the documentation is not easy to read. The paragraphs on that documentation page lists only the opcodes, without parameters, but the table below lists them all in a not quite intuitive way.&lt;/p&gt;
&lt;p&gt;For the &amp;quot;Start DFU&amp;quot; operation you have opcode 0x01 followed by the C4 parameter. The C4 parameter is the entry in the table whose &amp;quot;Field requirement&amp;quot; is designated &amp;quot;C4&amp;quot;, i.e. the one named &amp;quot;DFU Image Type&amp;quot;. In the &amp;quot;Enumerations&amp;quot; table you will see that the value describes if this is a SoftDevice update, a bootloader update, or an application firmware update.&lt;/p&gt;
&lt;p&gt;Similarly, you find the meaning of the return codes in the &amp;quot;Enumerations&amp;quot; table for the C2 parameter.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;3 = Not supported&lt;/li&gt;
&lt;li&gt;6 = Operation failed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You would get 3 if you have given a C4 parameter which is not supported (i.e. a combination of updates that is not supported), and you would get 6 if you fail to provide all the parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Response value 6: Operation Failed when attempting to write 0x01 Start DFU to DFU Control Point</title><link>https://devzone.nordicsemi.com/thread/121594?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 01:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54fddba5-6778-402e-9aef-ec087a4cf852</guid><dc:creator>minerdev</dc:creator><description>&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/Android-DFU-Library/blob/release/dfu/src/main/java/no/nordicsemi/android/dfu/LegacyDfuImpl.java"&gt;Looking over this code&lt;/a&gt;, I&amp;#39;m convinced I&amp;#39;m missing the c4 parameter. I&amp;#39;ve since changed the code to include 0x00, 0x01, 0x02, 0x03, etc. after the start dfu byte:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;            let dat = Buffer.from(new Uint8Array([0x01, 0x00]))
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;..but I&amp;#39;m getting back status code 3. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Response value 6: Operation Failed when attempting to write 0x01 Start DFU to DFU Control Point</title><link>https://devzone.nordicsemi.com/thread/121585?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 21:19:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f59cdf-c198-4681-b3bb-137c67421b4f</guid><dc:creator>minerdev</dc:creator><description>&lt;p&gt;I believe I may be missing the requirement c4 parameter? How do I include this? Reading over the documentation it is not clear:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fbledfu_transport_bleservice.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>