<?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>Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97786/using-partition-manager-created-partitions-for-fatfs</link><description>I have an issue with using partitions created by PM in external flash. I can create a partition in my prj.conf file and use that and everything works. But I need to put some data into the external NOR memory. PM creates the partitions correctly as far</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jul 2023 05:28:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97786/using-partition-manager-created-partitions-for-fatfs" /><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/436381?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 05:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a481d4c0-e938-4654-aa53-8fa5bfd8970c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I just wanted to let you know that a potential fix for this issue is currently in review. See this pull request for details:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/11802"&gt;https://github.com/nrfconnect/sdk-nrf/pull/11802&lt;/a&gt;&amp;nbsp;&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: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/426932?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 12:42:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:251acebc-e692-4709-bbed-6d84697919bf</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thanks for the update Tiit, and for your feedback/suggestions.&lt;/p&gt;
&lt;p&gt;Got an update just now: We do not have a fix yet I&amp;#39;m afraid. However, as long as you leave space on the device that can be used for storage, that space can be repurposed. The bootloader will only be interested in the areas defined for it (primary and secondary application slot for example). Once you build the bootloader it will only know of the defined areas and not try to access anything else.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So for example,&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;+---------------------+------------------------------------+------------------------------------------+---------------------------------------------+
| Bootloader (size A) | App primary slot (offset A, size B)| App secondary slot (Offset A + B, size C | Unallocated space (offset A + B + C, size D |
+---------------------+------------------------------------+------------------------------------------+---------------------------------------------+
&lt;/pre&gt;
&lt;div&gt;Total flash size A+B+C+D.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;In the above flash map only the applications will have ability to later allocate the &amp;quot;Unallocated&amp;quot; space, if they want to. The bootloader and app will be bound to slot sizes and the bootloader will only know of the position of the bootloader, and app slots. So it should be fine to add a patch for this later.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Simon&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/426903?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 12:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9014914a-4232-418f-ad5c-393196e452d1</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you for checking with the devs.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m currently doing is patching each new version of the SDK by just hardcoding the &amp;quot;area_id&amp;quot; value in&amp;nbsp;/zephyr/drivers/disk/flashdisk.c to 6 (6 being specific to my partition manager created partition for the flashdisk).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The macro that defines all the flashdisks uses&amp;nbsp;DT_FIXED_PARTITION_ID(PARTITION_PHANDLE(n)) and that seems to only work for partitions defined in the devicetree. I tried my best to figure out how to change this macro to read the Partition Manager output but due to time constraints I can&amp;#39;t put more time into this. Since we only really need one flashdisk this hardcoded partition id works for us for now. We are not likely to change our memory layout either so it should be safe for now.&lt;/p&gt;
&lt;p&gt;What your devs would need to do is replace the macro with one that can actually read Partition Manager outputs when that is used instead of the dts file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tiit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/426899?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 12:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88b2bc3-0948-4886-a04c-36e5bece014e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There haven&amp;#39;t been any updates in the internal ticket I&amp;#39;m afraid. I pinged the devs for an update now, but I can&amp;#39;t guarantee anything, and I do not have an estimate of when this can be fixed. If you need/want to escalate this, you will need to go via the Nordic regional sales manager of your area. Let me know if you don&amp;#39;t have their contact information and I&amp;#39;ll help you get in touch.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve asked the developers on your thoughts to ship with a broken MSD/MSC part. We can&amp;#39;t guarantee that this will be a patchable issue on shipped products, so if this is a necessary feature we can&amp;#39;t recommend that you ship it with a broken USB MSD/C...&lt;/p&gt;
&lt;p&gt;Very sorry about the inconvenience and frustration this issue has caused.&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: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/426214?ContentTypeID=1</link><pubDate>Fri, 19 May 2023 09:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc835471-ae1d-4baa-b836-7e5ddfba9ab1</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Any updates on this?&lt;/p&gt;
&lt;p&gt;I looked at the solution you linked but unfortunately I could not get that to work for me. My goal is to get the MX25R64 device partitioned for slot2 for mcyboot AND also work as the storage area for FAT used by USB MSD. I can make this all work in the internal memory. Actually I can even get it kind of working when the slot2 is in the external flash. But I have not been able to get USB MSD to work from external flash when the bootloader is enabled. The solution you linked was to put settings/nvs partitions into external flash and while I did try that that is not what I want to do. I want to keep the settings partition in internal memory and only move the FAT partition used by the MSD USB to the external memory.&lt;/p&gt;
&lt;p&gt;We now have something working that we should start shipping next week. But we need to be able to upgrade these shipped devices to Matter later. This means we need to have slot2 of the bootloader in external flash. I think that is working now but doing that broke the USB MSD part. Now we could ship with that part broken and later update things to a working state. But I&amp;#39;m worried that something in the partitions may need to change and since the same partitions are also used to compile the bootloader (and we can&amp;#39;t update that) we might be stuck with whatever partition thing we ship with now. This has been causing so much frustration already that I&amp;#39;ve been seriously considering just switching to a Silabs solution.&lt;/p&gt;
&lt;p&gt;Can someone please give and estimate for when this issue might get some attention from your engineers? I see I&amp;#39;m not the only one struggling with this. And from reading all the replies this seems like it is cause by the Nordic Partition Manager. That seems to be your custom solution and the documentation for that has been of very little help.&lt;/p&gt;
&lt;p&gt;[00:00:00.026,580] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 0 0 flash-controller@4001e000 0x0 0x7000 &lt;br /&gt;[00:00:00.027,252] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 1 0 mx25r6435f@0 0x0 0xf4000 &lt;br /&gt;[00:00:00.027,893] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 2 0 flash-controller@4001e000 0x7000 0x200 &lt;br /&gt;[00:00:00.028,533] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 3 0 flash-controller@4001e000 0x7000 0xf4000 &lt;br /&gt;[00:00:00.029,205] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 4 0 flash-controller@4001e000 0x7200 0xf3e00 &lt;br /&gt;[00:00:00.029,876] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 5 0 flash-controller@4001e000 0x7200 0xf3e00 &lt;br /&gt;[00:00:00.030,517] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 6 0 mx25r6435f@0 0xf4000 0x70c000 &lt;br /&gt;[00:00:00.036,163] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 7 0 flash-controller@4001e000 0xfb000 0x1000 &lt;br /&gt;[00:00:00.036,834] &amp;lt;dbg&amp;gt; blindy_files: fa_cb: 8 0 flash-controller@4001e000 0xfc000 0x4000 &lt;br /&gt;[00:00:00.037,506] &amp;lt;inf&amp;gt; blindy_files: setup_flash: Area 6 at 0xf4000 on mx25r6435f@0 for 7389184 bytes&lt;/p&gt;
&lt;p&gt;[00:00:00.038,116] &amp;lt;dbg&amp;gt; disk: disk_access_init: Disk access init NAND, dev:flash-controller@4001e000&lt;br /&gt;[00:00:00.038,665] &amp;lt;dbg&amp;gt; flashdisk: disk_flash_access_init: Init flashdisk with device: flash-controller@4001e000&lt;br /&gt;[00:00:00.039,245] &amp;lt;inf&amp;gt; flashdisk: flashdisk_init_runtime: Initialize device NAND&lt;br /&gt;[00:00:00.039,733] &amp;lt;inf&amp;gt; flashdisk: flashdisk_init_runtime: offset f4000, sector size 512, page size 4096, volume size 7389184&lt;br /&gt;[00:00:00.040,435] &amp;lt;err&amp;gt; flashdisk: flashdisk_init_runtime: Error -22 while getting page info&lt;br /&gt;[00:00:00.040,954] &amp;lt;err&amp;gt; fs: fs_mount: fs mount error (-5)&lt;/p&gt;
&lt;p&gt;I have tried to find out where things go wrong but so far I can&amp;#39;t figure out where the wrong backend gets selected. It looks ot me that flash_area gets set up correctly. The partition table printed out from the actual running system also seems to match the one that Partition Manager should create. And even the device behind each partition seems to be correct. But still for some reason flashdisk wants to use internal flash memory api to access the partition. It actually seems to know the offset and size of the partition - only the underlying device driver seems to be selected incorrectly. Everythign then fails because using internal memory&amp;nbsp;api functions to read addresses beyond the 1 MB capacity fails.&lt;/p&gt;
&lt;p&gt;I will keep trying to figure out where the flash api for flashdisk gets selected but it is a very tedious process. Please provide any help possible. Our whole project is really hurting because of this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tiit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/423428?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 06:35:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aafeac9-27b8-4f0c-88b8-7f7aea5f84a3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Tiit&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got an update for you, although it doesn&amp;#39;t come from the developers. It seems like another DevZone user was able to do FatFS on an external flash while keeping the partition manager active here. This has not been confirmed to work by tech support or the developers yet, but you&amp;#39;re welcome to try it out:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/98797/mass-example-with-external-flash-not-working-with-config_bootloader_mcuboot-y/421677"&gt;RE: Mass Example with External Flash not working with CONFIG_BOOTLOADER_MCUBOOT=y&lt;/a&gt;&amp;nbsp;&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: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/416269?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 13:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e69ba89-b6a1-49f5-9159-4bd4f198dae8</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;I would like to be kept updated on this, thank you. For the time being I will just try to keep using the weird solution I have and make sure to keep everything in sync manually.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tiit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/416261?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 12:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95a2363b-5ca6-48ff-95d0-bb0a4cd19b95</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;&lt;strong&gt;UPDATE:&amp;nbsp;&lt;/strong&gt;Got a reply quicker than anticipated. For the time being, it&amp;#39;s not possible to define the partition in the overlay/DTS file while partitions are managed by the PM, but our developers are aware of this, and are trying to address it. However, it&amp;#39;s not yet resolved as it takes some time to get to the bottom of and find a sufficient solution. In short what&amp;#39;s happening here is that the disk access uses PM (replacing the Flash API) macros to access the fixed partition areas by DTS ID, ending up with an API &amp;lt;-&amp;gt; ID mismatch.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;d like I can keep you updated on any progress or resolution of this issue.&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: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/416252?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 12:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7320ab51-2483-4b9a-99a8-f8520fe99a86</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have forwarded your question internally, as I&amp;#39;m not sure whether this is possible or not myself. One of the developers working specifically with the partition manager will take a look and I&amp;#39;ll let you know what their input is. Thank you for your patience!&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: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/415977?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 11:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c6dfa2c-7296-4ada-80db-a03c2b890fce</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what you are asking me to do now. I have a working state for now. It is just a very cumbersome way I had to set this up to work. I will try to explain my problem again.&lt;/p&gt;
&lt;p&gt;I want to have a device that enumerates as a USB MSD. It should use a partition in external memory for storage. I can set that up using devicetree overlays like this.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;mx25r64 {
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		external_flash: partition@0 {
			label = &amp;quot;external_flash&amp;quot;;
			reg = &amp;lt;0x0 0x800000&amp;gt;;
		};
	};
};

/ {
	msc_disk0 {
		compatible = &amp;quot;zephyr,flash-disk&amp;quot;;
		partition = &amp;lt;&amp;amp;external_flash&amp;gt;;
		disk-name = &amp;quot;NAND&amp;quot;;
		cache-size = &amp;lt;4096&amp;gt;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And that works exactly like in the USB MSD example. But if I now add DFU to my project that will force the use of Partition Manager and the partition defined in the DTS file is no longer used (correct me if I&amp;#39;m wrong here though). I can see in the partitions.yml file that partitions can still be created and used and using the pm_static.yml file I can still manually configure the partitions I want to use. While that was not easy to set up I think that also works now. Since the&amp;nbsp;&amp;amp;mx25r64 part defining a partition is no longer used I would like to now remove this from the DTS file so that the only place I have to define the partitions would be in the pm_static.yml file. But when I do that msc_disk0 can&amp;#39;t be defined because external_flash no longer defines a partition as far as the DTS file is concerned. What I have working now is I keep the partition definitions in bot files and that works so far but it doesn&amp;#39;t seem like a good solution as any changes in partitioning have to be manually kept in sync in multiple files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My question is - how can I still define msc_disk0 in my overlay/DTS file while the partitions are managed by the PM?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tiit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/415972?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 11:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2f10ae-0e90-4946-ba96-ad1776dff19a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;I may have been preemptive in my previous reply, and would like to reproduce and test this on my end if possible. What SDK version is this reproducible in for example, and are there any steps/changes necessary to do so on my end? If not, can you share some more information on what the error(s) you&amp;#39;re seeing on your end, for example the full error log so we can get a better look of what exactly is going wrong.&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: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/415959?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 10:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f0d3a5-5c0e-4850-8f15-8fe52fdf5a23</guid><dc:creator>Tiit</dc:creator><description>&lt;p&gt;I will look at the ticket you referenced. But as far as I understand that means that much of the actual work done by the compiler based on DTS files will have to be manually done in code by hand. Like described here:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;If you look into partitions.yml file under build folder, cou can see that the nvs_storage start address is at 0x3f000. If you search that address in all files under build folder, you can find that the PM_NVS_STORAGE_ADDRESS macro defined in build\zephyr\include\generated\pm_config.h file is the start address of the NVS storage. With that, you can populate the fs.offset variable.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;To get the flash device binding, again found in the build\zephyr\include\generated\pm_config.h file, the PM_NVS_STORAGE_DEV_NAME macro includes NVS storage device name. With it, you can populate the fs.flash_device variable by calling device_get_binding(PM_NVS_STORAGE_DEV_NAME) function.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What I have right now is basically the &amp;amp;flash0 part in the overlay and then the PM generated layout that I have to keep in sync manually . That is also not a good solution I think.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try to see if I can understand what user IvanV did and see if I can recreate that. It would make life so much simpler if you could include an example for something like this in the future. I think using DFU is pretty much standard with all BLE devices today and having all your examples fail to build with DFU doesn&amp;#39;t seem like a good idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Partition Manager created partitions for FatFS</title><link>https://devzone.nordicsemi.com/thread/415951?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 10:33:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3332a99-886a-45df-adbb-f337097df130</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, this should be possible. pm_config and the available defines are available in &amp;quot;...&lt;span&gt;&lt;span dir="ltr"&gt;/build/zephyr/include/generated/&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/e08f7e116bb861024bb5606321b2d4a515690c81/bootloader_samples/client_smp/smp_client_ble/src/main.c#L34"&gt;pm_config.h&lt;/a&gt;&amp;quot;. (&lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/blob/e08f7e116bb861024bb5606321b2d4a515690c81/bootloader_samples/client_smp/smp_client_ble/src/main.c#L853-L854"&gt;PM_MCUBOOT_SECONDARY_ADDRESS&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;Please check out&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97525/setting-and-using-nvs-and-bt-settings-with-static-partition-manager"&gt; this ticket&lt;/a&gt; where a solution to a similar issue is suggested both by a user IvanV and my colleague Sigurd.&lt;/p&gt;
&lt;p&gt;Is the second snippet (starting with &amp;amp;flash0) from your overlays or is it the build output? If it&amp;#39;s the prior, the way to manually make partitions for the partition manager should be through pm_static.yml. Usually NCS makes these &amp;quot;automagically&amp;quot; so you won&amp;#39;t have to do it manually though.&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></channel></rss>