<?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>Big primary image prevents FOTA</title><link>https://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</generator><lastBuildDate>Fri, 04 Aug 2023 06:10:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78984/big-primary-image-prevents-fota" /><item><title>RE: Big primary image prevents FOTA</title><link>https://devzone.nordicsemi.com/thread/439808?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2023 06:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca55e8af-d7fd-40b3-943b-adb84999d8a8</guid><dc:creator>Stephan Walter</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;simply add a partition to pm_static.yml at the end of the flash address space:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;unused:
  address: 0xfe000
  size: 0x2000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The partition manager will automatically resize the &amp;quot;app&amp;quot; partition to the available space.&lt;/p&gt;
&lt;p&gt;We ended up reserving 2 flash sectors, to account for the image trailer but I don&amp;#39;t remember the details.&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://devzone.nordicsemi.com/thread/439741?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2023 14:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26171e64-253b-4d1c-ad94-8d660c14bfb8</guid><dc:creator>S Biezeman</dc:creator><description>&lt;p&gt;Hey Stephan, &lt;br /&gt;&lt;br /&gt;We ran into the same problem as you did and to prevent it from happening we would like to implement your work around but this seems to cause the partition manager to signify data overlapping issues and/or shrink the bootloaders accecable partition.&lt;br /&gt;&lt;br /&gt;Could you share some of your configs so we might be able to better define ours&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;S Biezeman&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://devzone.nordicsemi.com/thread/424682?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 00:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c28973c-088e-434f-be99-de5e3b2b81fa</guid><dc:creator>krog1</dc:creator><description>&lt;p&gt;Ditto. The combination of this issue with the mcumgr issue listed above is definitely causing us some issues.&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://devzone.nordicsemi.com/thread/417614?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 09:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da418c0-69bd-4a1d-9f95-21db714f3214</guid><dc:creator>Waqar Ahmed</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we are facing the same 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://devzone.nordicsemi.com/thread/414764?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2023 21:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c0e5010-0ed3-46fc-9ee3-ff0d059d9020</guid><dc:creator>markuckermann</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;Could we have an update on this? It&amp;#39;s been two years now and we (as well as others) keep running into this.&amp;nbsp;&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://devzone.nordicsemi.com/thread/404467?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 08:10:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c53070af-2bf4-4630-ae38-ad0dce6645b4</guid><dc:creator>Cla</dc:creator><description>&lt;p&gt;Any news on this?&lt;br /&gt;We have the same 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://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>Stephan Walter</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://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>Paul Kajdewicz</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://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>H&amp;#229;kon Alseth</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>