<?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>MCUBOOT + OpenThread problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94841/mcuboot-openthread-problems</link><description>nRF52840 NCS SDK v1.9.1 nRF52840DK 
 My application is based on the coap_client sample, and is running on the nRF52840DK. It runs fine all alone. I have added code to download &amp;#39;app_update.bin&amp;#39; to external qspi flash. Now I want to enable MCUBOOT to swap</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Dec 2022 15:33:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94841/mcuboot-openthread-problems" /><item><title>RE: MCUBOOT + OpenThread problems</title><link>https://devzone.nordicsemi.com/thread/401573?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 15:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c2e5b7c-b74e-4854-b9b7-e897a5379508</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;Fixed it.&lt;/p&gt;
&lt;p&gt;When the project has a child image, as it does when MCUBOOT is enabled, the flash partitions in the DTS will be ignored.&amp;nbsp; The partitions from the Partition Manager will be used instead.&lt;/p&gt;
&lt;p&gt;I added this to overlay-dfu_support.conf&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE&lt;/span&gt;&lt;span&gt;=0x8000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SETTINGS_NVS_SECTOR_COUNT&lt;/span&gt;&lt;span&gt;=8&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to match the dts partitions.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;See this discussion:&amp;nbsp;&lt;a id="i1" href="https://devzone.nordicsemi.com/f/nordic-q-a/82821/after-enabling-mcuboot-in-ncs-external-flash-doesn-t-get-picked-up-by-littlefs"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/82821/after-enabling-mcuboot-in-ncs-external-flash-doesn-t-get-picked-up-by-littlefs&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Mary&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + OpenThread problems</title><link>https://devzone.nordicsemi.com/thread/401563?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2022 15:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a177e039-a892-42d6-866d-dcf3c49e938a</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;I generated a Memory Report with MCUBOOT enabled:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:411px;max-width:411px;" height="411" src="https://devzone.nordicsemi.com/resized-image/__size/822x822/__key/communityserver-discussions-components-files/4/pastedimage1671547681484v1.png" width="411" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The location of &amp;quot;settings_storage&amp;quot; is wrong, and so is the size of the primary app.&lt;/p&gt;
&lt;p&gt;According to the project dts overlay file (see above), the size of slot0 should be 0xE8000, and the location of &amp;#39;storage&amp;#39; should be 0xF8000 (from nrf52840dk_nrf52840.dts)&lt;/p&gt;
&lt;p&gt;And this is after adding this to the mcuboot prf.conf:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE&lt;/span&gt;&lt;span&gt;=0x8000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SETTINGS_NVS_SECTOR_COUNT&lt;/span&gt;&lt;span&gt;=8&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Does mcuboot use a different dts file than the application?&amp;nbsp; Do I need to add an overlay to mcuboot specifically?&lt;/p&gt;
&lt;p&gt;The above display matches partitions.yml&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + OpenThread problems</title><link>https://devzone.nordicsemi.com/thread/401382?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 21:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac9f2c1c-bf2b-4660-a132-170b9bf0c684</guid><dc:creator>Mary</dc:creator><description>&lt;p&gt;The same thing happened on the old computer.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The only thing I can think of is&amp;nbsp;that the storage partition could be moved when you define the slots for MCUboot, and somehow corrupts the stored dataset.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;How would this happen?&amp;nbsp; How can it be prevented?&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT + OpenThread problems</title><link>https://devzone.nordicsemi.com/thread/400690?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 16:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a76dd21d-5399-4170-874d-876b09dc5fbf</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it only the network key that is incorrect, or is the whole network dataset wrong?&lt;/p&gt;
&lt;p&gt;The only thing I can think of is&amp;nbsp;that the storage partition could be moved when you define the slots for MCUboot, and somehow corrupts the stored dataset.&lt;/p&gt;
&lt;p&gt;Are you using the exact same project that was working on the old computer? Do you have the old computer available, to do a comparison?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>