<?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>Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114105/trouble-building-with-mcuboot</link><description>Hi All, I am getting build errors for a project. Project specifics below: - nRF52832 (custom board) - NCS v2.6.0 - Custom board files and other configuration files attached. pm_static.yaml included as text because file type not supported for upload. Attached</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Aug 2024 18:12:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114105/trouble-building-with-mcuboot" /><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499833?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2024 18:12:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efaa295-f98a-4752-9962-15c845fcf3a9</guid><dc:creator>dlewis</dc:creator><description>&lt;p&gt;Thanks for the information. The issue seems to be resolved now. I reinstalled vs code and the sdk/toolchain and the issue seemed to have gone away.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499598?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 14:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f66642ab-7a86-4616-a21e-2eb823983814</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="dlewis"]oving the partitions.yml to be the pm_static.yml. [/quote]
&lt;p&gt;Right, this is one of the use-cases.&lt;/p&gt;
&lt;p&gt;In my mind there are two use-cases for pm_static.yml:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Freezing partitioning for DFU. This is required for release.
&lt;ol&gt;
&lt;li&gt;Not needed for developing.&lt;/li&gt;
&lt;li&gt;Done by copying partitions.yml&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Adding a custom partition
&lt;ol&gt;
&lt;li&gt;Only define the custom partition, and the partition manager will try to dynamically partition around this&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
[quote user="dlewis"]Now when building it would get past the previous issues but it would give a warning about not having a pm_static.yml file.[/quote]
&lt;p&gt;I added this warning, and it is to remind users of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_dev/bootloaders_dfu/mcuboot_nsib/bootloader_partitioning.html#static-partition-requirement-for-dfu"&gt;Static partition requirement for DFU&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;This being said, there should be no change in an app which does not use pm_static.yml, and an app that uses the same pm_static.yml as build/partitions.yml. This just freezes the partition, so that you can never change partitioning again.&lt;/p&gt;
&lt;p&gt;In other words, unless you are developing for release now, I do not think pm_static.yml is the solution to your issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499411?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 15:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:113e35c5-9725-4328-ad75-e643553e765d</guid><dc:creator>dlewis</dc:creator><description>&lt;p&gt;I guess I should try and lay out as many of the steps/progress that we already went through before arriving at this ticket.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It started with this ticket:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/113752/build-error-enabling-config_bootloader_mcuboot-and-config_ncs_sample_mcumgr_bt_ota_dfu"&gt;(+) Build Error Enabling CONFIG_BOOTLOADER_MCUBOOT and CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In which the response did not appear to be relevant to the nrf52832 I am using. The Nordic FAE for my region noticed this and reached out to me by email and he started helping me from there.&lt;br /&gt;&lt;br /&gt;Next the FAE had me&amp;nbsp;comment out this portion from my custom board dts file&lt;/p&gt;
&lt;div class="x_"&gt;&lt;span data-ogsc="rgb(106, 153, 85)"&gt;/*&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_"&gt;&lt;span data-ogsc="rgb(106, 153, 85)"&gt;&amp;amp;bprot {&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_"&gt;&lt;span data-ogsc="rgb(106, 153, 85)"&gt;&amp;nbsp; &amp;nbsp;status = &amp;quot;disabled&amp;quot;;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_"&gt;&lt;span data-ogsc="rgb(106, 153, 85)"&gt;};&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="x_"&gt;&lt;span data-ogsc="rgb(106, 153, 85)"&gt;*/&lt;br /&gt;&lt;br /&gt;This got us past the no fprotect build error. Then there was a build error from RAM overflow which I fixed by reducing memory usage in code.&lt;br /&gt;&lt;br /&gt;Next we worked on adding the customer&amp;#39;s existing private key file to use instead of the default nordic example one. For some reason this would not work using the prj.conf inclusion/cmakelists.txt inclusion methods. It did seem to work by adding a child_image folder and adding a mcuboot.conf file which is attached to this post for reference.&lt;br /&gt;&lt;br /&gt;Now when building it would get past the previous issues but it would give a warning about not having a pm_static.yml file. This isn&amp;#39;t confirmed to be the culprit of the errors shown as the basis for this ticket but we tried adding one anyways which didn&amp;#39;t work, and also tried renaming and moving the partitions.yml to be the pm_static.yml. Both of those options removed the warning for not having a pm_static.yml but left us with the errors shown in the picture I attached in the first comment.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499402?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 14:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50bf415d-6f34-437f-9d84-bbdd4ba250a2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Ah, that is good info.&lt;/p&gt;
&lt;p&gt;In that case: What is your use-case for using pm_static.yml?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499395?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 13:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7db19c6d-df98-4338-840b-598db24dd17c</guid><dc:creator>dlewis</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;br /&gt;&lt;br /&gt;I have followed that guide and have been working with a Nordic FAE for about a week on this, but they are out of office for the week and suggested I try and make more progress through a ticket while they are out.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499335?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2024 09:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d22461a3-fc56-4b20-b404-5f2d22c1f2f1</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
&lt;p&gt;Have a look at &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;DevAcademy Intermediate: Lesson 8 – Bootloaders and DFU/FOTA&lt;/a&gt;.&lt;br /&gt;Then let me know if you still got the same questions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble building with mcuboot.</title><link>https://devzone.nordicsemi.com/thread/499245?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2024 14:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3584f3d-3291-4eb6-a273-c20aecb7bcf4</guid><dc:creator>dlewis</dc:creator><description>&lt;p&gt;Below is a snippet of the build output errors. For some reason uploading as a txt or as code snippet is not working.&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1724255343240v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>