<?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>error Downloading from offset with DFU_TARGET_STREAM_SAVE_PROGRESS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress</link><description>Hi, 
 
 I have an error when I enable CONFIG_DFU_TARGET_STREAM_SAVE_PROGRESS =y for fota. 
 
 
 More detail about err: 
 
 
 here is my all config: 
 
 
 
 
when the downloading reaches %100, I stop it by restarting and then, When I trigger fota again</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Mar 2023 08:16:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress" /><item><title>RE: error Downloading from offset with DFU_TARGET_STREAM_SAVE_PROGRESS</title><link>https://devzone.nordicsemi.com/thread/418230?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 08:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add9d8f5-3cd0-409f-ac5a-db0bb7bf4d65</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you provide all necessary steps that I could use to try to reproduce this issue using nRF9160-DK board?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error Downloading from offset with DFU_TARGET_STREAM_SAVE_PROGRESS</title><link>https://devzone.nordicsemi.com/thread/418047?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 09:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a2bd6e9-70b2-4dd7-949d-4eaeea4bc785</guid><dc:creator>zsn</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress/418039"]What is the reason for reset? How do you reset the board?&lt;br /&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I explain this reason in my previous comment. this is the reason for me.&lt;/p&gt;
[quote userid="117272" url="~/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress/417926"]&lt;p&gt; But this is the issue in the case if I reset after downloading complete before sending the status&amp;nbsp;succeeded by update_job_execution to the aws cloud in&amp;nbsp;FOTA_DOWNLOAD_EVT_FINISHED.&lt;/p&gt;
&lt;p&gt;I just wanted to send a status update after booting and switching to the new app.&lt;/p&gt;[/quote]
&lt;p&gt;------------------------------------------------------------------------------------------------------------------------&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress/418039"]What exactly do you do when you &amp;quot;enable it after disabling it&amp;quot;?&lt;br /&gt;[/quote]
&lt;p&gt;I mean, when I disable stream save progress config&amp;nbsp;(&lt;span&gt;CONFIG_DFU_TARGET_STREAM_SAVE_PROGRESS&lt;/span&gt;&lt;span&gt;=n)&lt;/span&gt; (of course after disabling I build, flash to the board and trigger a new fota event.) &lt;span&gt;. FOTA never save the progress after rebooting, right? So, Fota is started always from the beginning of %0. which means my problem I explain in the question is solved easily. But this is the not solution for me, I need to save the progress and in case If I have a restart, I want fota to continue downloading progress where it left off. My problem was the progress stack in %100 when it was enabled. The issue seems because there is no mechanism to clear offset.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks, Kind Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error Downloading from offset with DFU_TARGET_STREAM_SAVE_PROGRESS</title><link>https://devzone.nordicsemi.com/thread/418039?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 09:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9149796-ccce-42b6-8535-6c0a50ef078d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="zsn"]But this is the issue in the case if I reset after downloading complete before sending the status&amp;nbsp;succeeded by update_job_execution to the aws cloud in&amp;nbsp;FOTA_DOWNLOAD_EVT_FINISHED.[/quote]
&lt;p&gt;What is the reason for reset? How do you reset the board?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="zsn"]when I disable it, it works fine. Even if I enable it after disabling it, it works fine. [/quote]
&lt;p&gt;What exactly do you do when you &amp;quot;enable it after disabling it&amp;quot;?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error Downloading from offset with DFU_TARGET_STREAM_SAVE_PROGRESS</title><link>https://devzone.nordicsemi.com/thread/417926?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 14:22:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828fdabf-6bfa-407d-a67e-9b1a31c9a25e</guid><dc:creator>zsn</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress/417871"]Which NCS version do you use? Which board do you use?&lt;br /&gt;[/quote]
&lt;p&gt;NCS version is 2.2.0 and 9160DK board.&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress/417871"]Could you provide more information about your application? What does your application do? Which sample is your application based on?&amp;nbsp;&lt;br /&gt;[/quote]
&lt;p&gt;based on the Asset tracker app v2. I tried to FOTA update. So I wanted to save the process by enabling &lt;span&gt;CONFIG_DFU_TARGET_STREAM_SAVE_PROGRESS&amp;nbsp;&lt;/span&gt;to continue downloading where I left off after restarting.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/98180/error-downloading-from-offset-with-dfu_target_stream_save_progress/417871"]What happens if you remove&amp;nbsp;&lt;span&gt;CONFIG_DFU_TARGET_STREAM_SAVE_PROGRESS&lt;/span&gt;&lt;span&gt;=y from your project configuration?&lt;/span&gt;&lt;br /&gt;[/quote]
&lt;p&gt;when I disable it, it works fine. Even if I enable it after disabling it, it works fine. But this is the issue in the case if I reset after downloading complete before sending the status&amp;nbsp;succeeded by update_job_execution to the aws cloud in&amp;nbsp;FOTA_DOWNLOAD_EVT_FINISHED.&lt;/p&gt;
&lt;p&gt;I just wanted to send a status update after booting and switching to the new app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error Downloading from offset with DFU_TARGET_STREAM_SAVE_PROGRESS</title><link>https://devzone.nordicsemi.com/thread/417871?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 11:49:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d102872-4a77-4367-a310-9cf40d37aa00</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which NCS version do you use? Which board do you use?&lt;br /&gt;&lt;br /&gt;Could you provide more information about your application? What does your application do? Which sample is your application based on?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What happens if you remove&amp;nbsp;&lt;span&gt;CONFIG_DFU_TARGET_STREAM_SAVE_PROGRESS&lt;/span&gt;&lt;span&gt;=y from your project configuration?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>