<?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>Serial DFU - Exit command?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12856/serial-dfu---exit-command</link><description>I&amp;#39;m using an nRF51822 on a custom board with Nordic&amp;#39;s serial DFU example from SDK v10.0.0. I&amp;#39;m trying to find a way to exit the serial DFU without the DFU trying to update the app. I figured writing the stop command without writing anything else would</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 May 2016 14:32:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12856/serial-dfu---exit-command" /><item><title>RE: Serial DFU - Exit command?</title><link>https://devzone.nordicsemi.com/thread/48913?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 14:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c4168a4-41ce-4833-adfe-7bb25a100c30</guid><dc:creator>jpreston</dc:creator><description>&lt;p&gt;Thank you!  Looking at the BLE Core Spec helped a lot in understanding the protocol, particularly the escape bytes!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Serial DFU - Exit command?</title><link>https://devzone.nordicsemi.com/thread/48912?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 14:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81e4ce0f-3961-4c08-84fe-fc768d64ddea</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, it should be possible. You&amp;#39;ll have to create you own packet type, like the Init, Start, Data and Stop packets, described on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_transport_serial.html?cp=4_0_0_4_3_1_4_2"&gt;this&lt;/a&gt; Infocenter page, for simplicity lets say 0x06.&lt;/p&gt;
&lt;p&gt;Send the custom packet over the HCI transport layer and when the packet is processed in &lt;code&gt;process_dfu_packet()&lt;/code&gt; you just check if the packet type is 0x06(or whatever you decide to call it) and call &lt;code&gt;NVIC_SystemReset()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Regarding the documentation, you&amp;#39;ll have to take a look at the Bluetooth Core Specification (Volume 4, Part D) - HCI Three-Wire UART Transport Layer.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>