<?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>How to reset DFU state after interrupted update attempt?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51301/how-to-reset-dfu-state-after-interrupted-update-attempt</link><description>I am currently testing DFU updates with nRF52. I have run into a situation where the upload of new image is interrupted for some reason. When I try to run the update again later, I noticed that the SELECT command will return non-zero offset, indicating</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Aug 2019 11:52:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51301/how-to-reset-dfu-state-after-interrupted-update-attempt" /><item><title>RE: How to reset DFU state after interrupted update attempt?</title><link>https://devzone.nordicsemi.com/thread/205579?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f7c85fe-76cd-4f24-a057-7bd4a24cada7</guid><dc:creator>TylerD</dc:creator><description>&lt;p&gt;Oops... found a bug in the DFU host code. There was a code path that made it possible that the SELECT command is run before first issuing CREATE. My bad.&lt;/p&gt;
&lt;p&gt;The CREATE command does wipe the history by removing the old object, as mentioned in the documentation. Problem solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reset DFU state after interrupted update attempt?</title><link>https://devzone.nordicsemi.com/thread/205569?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 11:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf4cbc9f-43ef-4274-9e2d-67be4c63e10e</guid><dc:creator>TylerD</dc:creator><description>&lt;p&gt;Some more details: I read the DFU spec again and the CREATE command is documented as follows:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;Creates an object with the given type and selects it. Removes an old object of the same type (if such an object exists).&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In my DFU host&amp;nbsp;code, I always issue the create command, followed by select command. Based on the quote above, I would expect the create command to always wipe the old data if the object already exists.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using SDK v13.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>