<?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>NCS 1.7.1 DFU target reset issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82667/ncs-1-7-1-dfu-target-reset-issue</link><description>Good day! 
 There is now way to restart dfu_mcuboot with 
 CONFIG_DFU_TARGET_STREAM_SAVE_PROGRESS 
 Checkout: 
 dfu_target.c 
 
 next dfu_target_mcu_boot.c 
 
 and finally we appear here in dfu_target_stream_flash.c 
 
 It will be useful to have same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Dec 2021 14:48:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82667/ncs-1-7-1-dfu-target-reset-issue" /><item><title>RE: NCS 1.7.1 DFU target reset issue</title><link>https://devzone.nordicsemi.com/thread/343707?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 14:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f6c7ff-1067-4ca7-86ca-794ffbd2c21e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ipshiv"]I apologize for the misunderstanding. I read source twice and figured that dfu_reset reset whole subsystem and I looked for a function to reset current download. [/quote]
&lt;p&gt;No worries, I was just afraid that there was an issue in the module and wanted to make sure I understood the scenario.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="ipshiv"]or example if I started to download wrong file - there is only one way to restart and reconfigure is to use dfu_target_stream_done(true) and this is little bit confusing[/quote]
&lt;p&gt;This is true, the reset function is essentially a _done call with a unsuccessful input parameter. If the stored input data is not directed to you, then it seems that this is the only way to reset the progress.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.1 DFU target reset issue</title><link>https://devzone.nordicsemi.com/thread/343552?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 08:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe43ddb-20f0-442d-b740-bb75bd3df8b0</guid><dc:creator>ipshiv</dc:creator><description>&lt;p&gt;I apologize for the misunderstanding. I read source twice and figured that dfu_reset reset whole subsystem and I looked for a function to reset current download. For example if I started to download wrong file - there is only one way to restart and reconfigure is to use dfu_target_stream_done(true) and this is little bit confusing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.1 DFU target reset issue</title><link>https://devzone.nordicsemi.com/thread/343149?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 12:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffe64e54-a29d-484f-a0da-1fdef9f26245</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure I follow what the issue is. Could you please describe your use-case and what the issue is?&lt;/p&gt;
&lt;p&gt;Saving the progress is in case your device resets mid-process, so that you can continue where you left off.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>