<?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>nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63648/nrf-connect-sdk-1-3-0-multi-image-build-stuck</link><description>I am switching from standard Zephyr and I am trying out nRF connect SDK v1.3.0. When I am building my app for mcuboot, it hangs after configuring the child image (mcuboot). If I build mcuboot or the app by itself it works just fine. It seems like something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Aug 2020 09:26:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63648/nrf-connect-sdk-1-3-0-multi-image-build-stuck" /><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/263983?ContentTypeID=1</link><pubDate>Tue, 11 Aug 2020 09:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f79fdb5c-5523-4e0a-b3ce-414f686728b3</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I looked at your partitions yml files and saw that the start address and size of mcuboot_secondary varied and the size of mcuboot_primary had changed.&lt;/p&gt;
&lt;p&gt;This may cause some problems since some of the data regarding validation are stored at the end of the slot, and that may cause some problems if the size has changed. I talked to one of the developers and it is recommended to you to use a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#static-configuration"&gt;static configuration&lt;/a&gt;&amp;nbsp;(&lt;span&gt;pm_static.yml&lt;/span&gt;) with the exact same values (size and start address) as from the initial partition.yml file (unless it actually needs to be different due to new requirements).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/263396?ContentTypeID=1</link><pubDate>Thu, 06 Aug 2020 10:25:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4eea1263-4c1d-4a1f-977d-ae994de21b41</guid><dc:creator>psychogenic</dc:creator><description>&lt;p&gt;Hello Didrik,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your answer and the proposed fix.&amp;nbsp; I have yet to actually burn this to a device and try it out, but I can confirm that the new partition_manager.py does &lt;strong&gt;not&lt;/strong&gt; hang and produces the following settings and finally leads to a successful build.&lt;/p&gt;
&lt;p&gt;It isn&amp;#39;t exactly like the prior version, and I am wondering how this will impact OTA upgrades for modules on older setups already out in the field...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the produced partitions yml file, with the patched script:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# patched script, nrf version 1.3.99
EMPTY_0:
  address: 0xc000
  placement:
    before:
    - mcuboot_pad
  region: flash_primary
  size: 0x4000
app:
  address: 0x1c200
  region: flash_primary
  size: 0x67e00
mcuboot:
  address: 0x0
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0x10000
  placement:
    align:
      start: 0x8000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - spm
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x74000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  orig_span: &amp;amp;id002
  - app
  - spm
  region: flash_primary
  size: 0x73e00
  span: *id002
mcuboot_secondary:
  address: 0x84000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x74000
nvs_storage:
  address: 0xf8000
  placement:
    before:
    - settings_storage
  region: flash_primary
  size: 0x6000
otp:
  address: 0xff8108
  region: otp
  size: 0x2f4
settings_storage:
  address: 0xfe000
  placement:
    before:
    - end
  region: flash_primary
  size: 0x2000
spm:
  address: 0x10200
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0xc000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The older modules, running on a version of the SDK before it included the nrf/VERSION file (last commit c8fcc56888ab9bb96777fb964e2d2f61c7fc1d0d from March 25, 2020), have a config of&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# original partitions from older SDK
EMPTY_0:
  address: 0xc000
  placement:
    before:
    - mcuboot_pad
  size: 0x4000
app:
  address: 0x1c200
  region: flash_primary
  size: 0x6ae00
mcuboot:
  address: 0x0
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0x10000
  placement:
    align:
      start: 0x8000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  orig_span: &amp;amp;id001
  - spm
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x77000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  orig_span: &amp;amp;id002
  - app
  - spm
  region: flash_primary
  size: 0x76e00
  span: *id002
mcuboot_secondary:
  address: 0x87000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x1000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x77000
otp:
  address: 0xff8108
  region: otp
  size: 0x2f4
settings_storage:
  address: 0xfe000
  placement:
    after:
    - app
  region: flash_primary
  size: 0x2000
spm:
  address: 0x10200
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0xc000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For example, we&amp;#39;ve always had&lt;/p&gt;
&lt;p&gt;CONFIG_SETTINGS=y&lt;br /&gt;CONFIG_NVS=y&lt;br /&gt;CONFIG_SETTINGS_NVS=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in the prj.conf, but now in addition to the settings_storage there is an entry for nvs_storage... not sure if this impacts anything.&amp;nbsp; More importantly, perhaps, is that the app sizes are coming out different.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Will any of these differences impact interoperability between modules provisioned by burning locally (west flash) and jobs to push app_update.bin to older modules out in the world?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Pat Deegan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/263140?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 08:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c4b44fb-068c-4d87-9270-4948a7f5027c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/rerickson"&gt;rerickson&lt;/a&gt; and &lt;a href="https://devzone.nordicsemi.com/members/psychogenic"&gt;psychogenic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A pull request with a proposed fix to this issue has just been opened: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2673"&gt;https://github.com/nrfconnect/sdk-nrf/pull/2673&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/262996?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2020 12:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447c018d-cdb4-4817-9bca-053be0a9c60f</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/psychogenic"&gt;psychogenic&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="psychogenic"]When is Simon back from vacation?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Simon will be back next week.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="psychogenic"]In the meantime, how does one &amp;quot;define a static nvs_storage partition&amp;quot;, ideally without manually setting up and entire pm_static.yml?[/quote]
&lt;p&gt;&amp;nbsp;What I did to create the pm_static I posted earlier was to build the application without either NVS or littlefs. I then looked at the generated pm.yml files in the build folders and used those to create the pm_static.yml file. What it ended up with, was me copying the lifflefs_storage partition into the pm.yml file created with only NVS, then adjusting the size and starting positions of the other partitions. As the size of the littlefs_storage partition was 0x6000, I shrank the two mcuboot partitions with 0x3000, then I worked from the beginning of the flash (0x0) to find new start addresses.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="psychogenic"]In short, am having the same issue, but the conflict is between NVS and something else (not sure what).[/quote]
&lt;p&gt;&amp;nbsp;Could you share your prj.conf (or &amp;lt;your build folder&amp;gt;/zephyr/.config file? That should show what else you have included.&lt;/p&gt;
&lt;p&gt;Are you able to build without NVS? How does the pm.yml file look then?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/262667?ContentTypeID=1</link><pubDate>Sun, 02 Aug 2020 00:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5766c8-b03d-41de-b3db-3b62f5a0e841</guid><dc:creator>psychogenic</dc:creator><description>&lt;p&gt;When is Simon back from vacation?&amp;nbsp; In short, am having the same issue, but the conflict is between NVS and something else (not sure what).&lt;/p&gt;
&lt;p&gt;In the meantime, how does one &amp;quot;define a static nvs_storage partition&amp;quot;, ideally without manually setting up and entire pm_static.yml?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/261844?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 16:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f972682f-72ee-416d-b323-ed896533c1da</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;Thanks, I was able to get my custom project to build by just defining a static nvs_storage partition.&amp;nbsp; I have a suspicion that this issue has to do with the PM trying to automatically create littlefs_storage and nvs_storage partitions automatically and them residing at the same spot.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/261833?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 14:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5deb3b12-a6d6-4388-a6c7-2de613df1932</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Simon is on vacation, so I have taken over this ticket.&lt;/p&gt;
&lt;p&gt;Using your sample project, I am able to reproduce the problem.&lt;/p&gt;
&lt;p&gt;After adding some debug-prints to the partition manager, it seems like it gets stuck in this loop, not being able to resolve the nvs_storage_partition.&lt;/p&gt;
&lt;p&gt;I have not yet been able to find the reason why it gets stuck in the loop, and our partition manager expert is on vacation.&lt;/p&gt;
&lt;p&gt;I will continue investigating so that we can find a proper fix.&lt;/p&gt;
&lt;p&gt;In the meantime, I have been able to create a static configuration file for the partition manager that places both the nvs_storage and the littlefs_storage partitions: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-bf74ead253534043af29e3aeb3bc0f9a/pm_5F00_static.txt"&gt;devzone.nordicsemi.com/.../pm_5F00_static.txt&lt;/a&gt;(you must change the file ending to .yml, and place it in your project folder)&lt;/p&gt;
&lt;p&gt;Note that if you want to re-size any of the partitions, you must calculate new start addresses and sizes for the other partitions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/261642?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:48:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1fa8959-c151-4fb3-9a6d-3d67219d45f9</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;I have found an easy way to reproduce the issue with the nrf52840dk.&amp;nbsp; A simple project is attached.&amp;nbsp; Build it against the nrf52840dk_nrf52840 board.&amp;nbsp; The issue happens when both&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FILE_SYSTEM_LITTLEFS&lt;/span&gt;&lt;span&gt;&lt;span&gt;=y and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_NVS&lt;/span&gt;&lt;span&gt;=y are used at the same time.&amp;nbsp; If you comment out one of them then the build works just fine.&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/console.zip"&gt;devzone.nordicsemi.com/.../console.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/260297?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 08:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f003c0c-6960-46f3-888b-33bf5a344cb0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Okay, I was too quick to answer. Thanks for the files, I will try to reproduce the problem.&lt;/p&gt;
&lt;p&gt;Could you provide the exact steps to reproduce it, where in NCS v1.3.0&amp;nbsp;should he files be placed, and what commands to run?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/259968?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 15:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab651b3e-8c83-472e-953e-dd269530347b</guid><dc:creator>rerickson</dc:creator><description>&lt;p&gt;That does work, but I am interested in solving the issue with my project.&amp;nbsp; I have attached my input files that were used for the output above.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pm_5F00_hang.zip"&gt;devzone.nordicsemi.com/.../pm_5F00_hang.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect SDK 1.3.0 multi-image build stuck</title><link>https://devzone.nordicsemi.com/thread/259847?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 09:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7ab292-5461-45e8-aa20-4d0fe6bf4574</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Strange, it should work out-of-the-box.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install NCS v1.3.0 using the Toolchain Manager&lt;/li&gt;
&lt;li&gt;Add &lt;em&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/em&gt;&lt;span&gt;&lt;em&gt;=y&lt;/em&gt; to&amp;nbsp;&lt;em&gt;&amp;lt;..&amp;gt;\ncs\v1.3.0\zephyr\samples\hello_world\prj.conf&lt;/em&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Open the bash window from the Toolchain Manager, cd into&amp;nbsp;&lt;em&gt;/ncs/v1.3.0/zephyr/samples/hello_world&lt;/em&gt; and build the project:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52840dk_nrf52840&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If that works, you&amp;#39;ve successfully built and compiled a project with mcuboot as a child image&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>