<?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 Defining extra flash partition</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65528/nrf9160-defining-extra-flash-partition</link><description>Hi, 
 The actual problem: I want to store some stuff to flash at factory, that is never erased. And I also need another persistent memory that can be written in runtime. I figured that the best ways to achieve this is to make two partitions and define</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Sep 2020 11:48:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65528/nrf9160-defining-extra-flash-partition" /><item><title>RE: NRF9160 Defining extra flash partition</title><link>https://devzone.nordicsemi.com/thread/268729?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 11:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0cc616b-0f36-4e71-9efd-c67ec6343cb1</guid><dc:creator>fastfox</dc:creator><description>&lt;p&gt;Thanks,&amp;nbsp;I&amp;#39;ll try these. I have my own fork from pretty much everything already anyway, so changing the pm.yml does not sound too bad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Defining extra flash partition</title><link>https://devzone.nordicsemi.com/thread/268723?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 11:22:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8607182c-edf3-4a44-9d98-686d78d47383</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi again, and soryy for this taking some time.&lt;/p&gt;
&lt;p&gt;At the moment, there are two ways of defining an extra flash partition. Unfortunatly, both of them has some drawbacks:&lt;/p&gt;
&lt;p&gt;1. You can edit the pm.yml file used by the NVS subsystem (&amp;lt;your NCS folder&amp;gt;/nrf/subsys/partition_manager/pm.yml.nvs). This will let the partition manager place the partition in a suitable location at compile time. The drawback here is that you have to edit a part of the SDK, which will make it (a bit) harder to reproduce on other computers, and it makes it (a bit) more complicated to update NCS version in the future.&lt;/p&gt;
&lt;p&gt;2. You can create a static configuration for the partition manager, with the new partition hard coded in. This will keep all the configuration local to your project, thus avoiding the drawbacks of option 1. The drawback here is that you will have to create the static configuration yourself, which increases the time to &amp;quot;get started&amp;quot;. Once you are done developing, or are starting to test DFU, you will need a static configuration anyway, as that is the only way to keep the partition map accross application versions. The difference here is that if the partition map is generated automatically, you can just use that (extract it from the build folder, and rename the file), versus having to construct it yourself. But, you can do something similar, where you use the partition manager to create a partition map with only one NVS partition, then edit it to add the second partition.&lt;/p&gt;
&lt;p&gt;I will also add the ability for the application to define new partitions as a feture request, so that there will be a solution without any of the above drawbacks.&lt;/p&gt;
&lt;p&gt;Edit: This PR will let you add extra partion manager configuration files to the build: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/2880"&gt;https://github.com/nrfconnect/sdk-nrf/pull/2880&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: NRF9160 Defining extra flash partition</title><link>https://devzone.nordicsemi.com/thread/267899?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 15:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c94fe8b-bcf9-422a-9377-4ec4a43d61a4</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;NCS uses the Partition Manager to partition the flash, and not the device tree.&lt;/p&gt;
&lt;p&gt;That is why you are missing your &amp;#39;storage-1&amp;#39; partition.&lt;/p&gt;
&lt;p&gt;You can read more about the Partition Manager here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/scripts/partition_manager/partition_manager.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.3.0/nrf/scripts/partition_manager/partition_manager.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I am not sure what is the best way for the application to declare a second NVS partition. I will check with our developers tomorrow and get back to you.&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></channel></rss>