<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Big primary image prevents FOTA</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/78984/big-primary-image-prevents-fota</link><description>Hey there, 
 
 while developing a rather huge application (~97% FLASH used) for the nRF9160, we encountered the problem, that when triggering a FOTA via lwm2m, it fails. 
 The updatefile is downloaded correctly, but it&amp;#39;s the update process which fails</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 18 Nov 2021 12:15:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/78984/big-primary-image-prevents-fota" /><item><title>RE: Big primary image prevents FOTA</title><link>https://test-devzone.nordicsemi.com/thread/339625?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 12:15:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:216f9c24-0831-4992-ae51-882da7927741</guid><dc:creator>user2347</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;Any news on this?&lt;/p&gt;
&lt;p&gt;We just ran into the same problem of accidentally uploading an image that is too large for SWAP_USING_MOVE.&lt;/p&gt;
&lt;p&gt;Due to another issue in mcumgr, the secondary slot cannot be cleared if it is already set to pending: &lt;a href="https://github.com/apache/mynewt-mcumgr/issues/157"&gt;https://github.com/apache/mynewt-mcumgr/issues/157&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;--Stephan W.&lt;/p&gt;
&lt;p&gt;P.S. I just realized that a workaround is to define (in pm_static.yml) an empty partition of size 1 sector placed at the end of the primary slot. This will then cause the auto-generated partition &amp;quot;app&amp;quot; be one sector shorter. This latter size is what is seemingly used by the linker to determine if the code will fit. But this is hardly intuitive.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Big primary image prevents FOTA</title><link>https://test-devzone.nordicsemi.com/thread/327836?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 14:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a02c3836-9fd0-41d8-83fe-0f29d30bdc00</guid><dc:creator>user102934</dc:creator><description>&lt;p&gt;Thanks for considering this issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Big primary image prevents FOTA</title><link>https://test-devzone.nordicsemi.com/thread/326889?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 07:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b0b0fa8-f809-4173-9dc2-d539b79d4b5d</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I double-checked internally with the developers.&lt;/p&gt;
&lt;p&gt;You are correct. the last page is reserved for swap/move operations.&amp;nbsp;&lt;/p&gt;
[quote user=""]but is it possible to recognise this state at compile time and throw an warning or even abort compiling when having FOTA activated?[/quote]
&lt;p&gt;This is a great suggestion, which was also supported by the developer I talked to. I&amp;#39;ll make a internal bug report/feature req on this matter. Thank you very much for reporting this issue back to us and making us aware of this restriction. I hope you have a wonderful weekend!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>