<?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>nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66737/nrf9160-where-does-the-flash-partitions-address-are-been-picked</link><description>Hi, 
 I just enabled the CONFIG_BOOTLOADER_MCUBOOT=y for serial LTE modem application to understand the flash partitions and to perform the serial DFU(not sure if its really supported), but i was confused seeing the rom_report, the build system disregarded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Oct 2020 13:28:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66737/nrf9160-where-does-the-flash-partitions-address-are-been-picked" /><item><title>RE: nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/thread/275949?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 13:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e777723-9a2d-4a3c-a9d6-acc193854646</guid><dc:creator>kk2mkk</dc:creator><description>&lt;p&gt;Thanks &amp;Oslash;yvind&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/66737/nrf9160-where-does-the-flash-partitions-address-are-been-picked/275901#275901"]Lately there are PRs added to MCUboot to fix certain&amp;nbsp;scenarios where devices have bricked. This is also a good reason to have a upgradable bootloader.&amp;nbsp;[/quote]
&lt;p&gt;It would be great if Nordic can add an example which depicts the procedure to perform MCUBoot upgrade.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;kk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/thread/275901?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 12:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37ad3dc1-555a-43e4-96f2-a71ca12e50e6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi KK,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The CONFIG_SECURE_BOOT enables bootloader stage, and is a bad name as it&amp;#39;s not really a security function.&lt;em&gt; MCUboot does also provide the immutable bootloader functionality.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Lately there are PRs added to MCUboot to fix certain&amp;nbsp;scenarios where devices have bricked. This is also a good reason to have a upgradable bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have a look at &lt;a href="https://developer.arm.com/documentation/den0072/0101/"&gt;Arm&amp;#39;s secure boot documentation here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/thread/274950?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 17:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd7efe81-aeec-47c6-9281-262e18203400</guid><dc:creator>kk2mkk</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;Thanks for the detailed information, i have figured out some answers meanwhile, but your explanation gave me full overview of memory partitioning.&lt;/p&gt;
&lt;p&gt;One last question, if i dont use CONFIG_SECURE_BOOT, is it the case that i cant have a secure boot mechanism or mcuboot can also provide the immutable boot functionality? Yes i agree that MCUBoot can&amp;#39;t be upgraded, but on the other hand i am also wondering what could be the circumstances where i may need the bootloader upgrade in field....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;KK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/thread/274837?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 09:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1749a097-f40b-4802-a2e3-62856f1f1875</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi KK,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My sincere apologies for the late reply, I have been working to find an answer.&amp;nbsp;&lt;/p&gt;
[quote user="kk2mkk"]No i dont have any &lt;strong&gt;pm.yml&lt;/strong&gt; in added to to the SLM project does its required? even the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/samples/nrf9160/http_application_update/README.html#nrf9160-http-application-update"&gt;HTTP&amp;nbsp;Application Update sample&lt;/a&gt; dint have either. What is the default partition configuration is picked up by the build subsystem?[/quote]
&lt;p&gt;No, pm.yml is not required, but if you had one that would configure the partition. By default the partition is configured depending on what you inlude in your project. Adding a pm_static.yml or pm.yml will manually configure the partitions for you, and is more advanced.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adding B0 (Immutable bootloader) + MCUboot (upgradeble bootloader) in your project will dynamically configure the partition for you, and ensure that it is working. These are added when setting&amp;nbsp;CONFIG_BOOTLOADER_MCUBOOT and CONFIG_SECURE_BOOT, as according to the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bootloader.html#secure-bootloader-chain"&gt;Secure Bootloader chain documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Our developer adds:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;em&gt;So when you include the bootloader(b0) &lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bootloader/pm.yml" href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bootloader/pm.yml" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/bootloader/pm.yml&lt;/a&gt; this pm.yml is added to the dynamic resolving of partitions and this one &lt;a title="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/spm/pm.yml" href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/spm/pm.yml" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/blob/master/samples/spm/pm.yml&lt;/a&gt; is for spm. Here is a few different configurations which also add ram partitioning depending on what&amp;#39;s included &lt;a title="https://github.com/nrfconnect/sdk-nrf/tree/master/subsys/partition_manager" href="https://github.com/nrfconnect/sdk-nrf/tree/master/subsys/partition_manager" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-nrf/tree/master/subsys/partition_manager&lt;/a&gt; and in this is for MCUBoot &lt;a title="https://github.com/nrfconnect/sdk-mcuboot/blob/master/boot/zephyr/pm.yml" href="https://github.com/nrfconnect/sdk-mcuboot/blob/master/boot/zephyr/pm.yml" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-mcuboot/blob/master/boot/zephyr/pm.yml&lt;/a&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;As you can see some of the sizes are possible to configure by Kconfig but I would suggest using the defaults as they are optimised for the size of flash being locked. If they don&amp;#39;t use flash locking they are free to change it as they please as long as it is big enough to fit the whole image(firmware being built(b0, mcuboot, spm) etc in each respective partition.&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;Flash locking is recommended from a security/safety standpoint.&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div&gt;For the HTTP Application update sample, which has only CONFIG_BOOTLOADER_MCUBOOT set,&amp;nbsp;you will not be able to update mcuboot since b0 is not included. Adding CONFIG_SECURE_BOOT will enable b0 and create s0 and s1 for mcuboot. So that you use s0/s1 for switching between mcuboot upgrades and secondary slot vs primary in mcuboot for the application.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;See the &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bootloader/README.html#immutable-bootloader"&gt;Immutable Bootloader sample&lt;/a&gt;&amp;nbsp;for more information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/thread/273405?ContentTypeID=1</link><pubDate>Wed, 07 Oct 2020 09:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c91a12-e263-4770-9f33-55c30bf0bdef</guid><dc:creator>kk2mkk</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;yesterday i was bust in other activities could not respond.&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/66737/nrf9160-where-does-the-flash-partitions-address-are-been-picked/273155#273155"]What version of NCS are you using? Have you added a pm.yml or pm_static to your project?&amp;nbsp;[/quote]
&lt;p&gt;I am on master branch as serial LTE modem is my main point of interest and its under development.&lt;/p&gt;
&lt;p&gt;No i dont have any &lt;strong&gt;pm.yml&lt;/strong&gt; in added to to the SLM project does its required? even the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/samples/nrf9160/http_application_update/README.html#nrf9160-http-application-update"&gt;HTTP&amp;nbsp;Application Update sample&lt;/a&gt; dint have either. What is the default partition configuration is picked up by the build subsystem?&lt;/p&gt;
&lt;p&gt;I&amp;nbsp; just added few CONFIG entries to prj.conf rest all unchanged from SLM application.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Image manager
CONFIG_IMG_MANAGER=y
CONFIG_FLASH=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

# DFU Target
CONFIG_DFU_TARGET=y

# Application Upgrade support
CONFIG_BOOTLOADER_MCUBOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And I also see there is lot of disconnects in documentation i dont find &amp;quot;&lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;subsys\bootloader\dts&amp;quot;&lt;/span&gt;&lt;/code&gt; layout described in the page&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/ug_bootloader.html#upgradable-bootloader"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/ug_bootloader.html#upgradable-bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you point me to any samples which performs boot loader, application and modem upgraded over serial?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;KK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160: where does the flash partitions address are been picked?</title><link>https://devzone.nordicsemi.com/thread/273155?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 09:10:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcfac8d1-4763-4548-96da-e6958da7731d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello KK,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of NCS are you using? Have you added a pm.yml or pm_static to your project?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Information about MCUboot can be &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/mcuboot/wrapper.html#mcuboot-documentation"&gt;found here&lt;/a&gt;. There are also given DFU images that must be built, see more &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/include/dfu/dfu_target.html?highlight=mcuboot#dfu-target"&gt;information here&lt;/a&gt;. Several of our samples have CONFIG_BOOTLOADER_MCUBOOT enabled, e.g the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.1/nrf/samples/nrf9160/http_application_update/README.html#nrf9160-http-application-update"&gt;HTTP&amp;nbsp;Application Update sample&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>