<?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>Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97525/setting-and-using-nvs-and-bt-settings-with-static-partition-manager</link><description>Hi! We are currently in the process of migrating our nrf5 SDK code to NCS, on nrf52833-based hardware. After being stuck for a while on the basic init process of MCUBoot, I was finally able to get MCUBoot to run our app (see previous ticket - Thanks Sigurd</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Sep 2024 13:02:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97525/setting-and-using-nvs-and-bt-settings-with-static-partition-manager" /><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501943?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 13:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01701f51-e780-485e-be9c-e90218fd08b6</guid><dc:creator>p1ng</dc:creator><description>&lt;p&gt;so after more troubleshooting it suddenly started working in my main project. i dont know the exact reason why. it was either i was initally testing wrong things, something got fixed after deleting build folder and making new configuration or the issue was caused by cmake or some other cache.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501831?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2024 05:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac9efc99-3988-45ea-b557-290be70f0e84</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi p1ng,&lt;/p&gt;
&lt;p&gt;It is too bad that did not work.&lt;br /&gt;If you want help getting this fixed, I recommend that you create a new ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501798?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 18:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f505c5a6-10b8-4374-8933-07e3edc5e148</guid><dc:creator>p1ng</dc:creator><description>&lt;p&gt;turns out IvanVs thing didnt work for me either. What worked for my project was to add&amp;nbsp;&lt;span&gt;&amp;nbsp;#include &amp;lt;pm_config.h&amp;gt; to code. thats the file hwere all those generated defines are. and u dont need to name it custom_nvs_storage, u can name it anything u want. before i came to this solution i had created a sample project out of nordic academys intermediate course lesson8 exercise2 - just only added pm_static.yml to the project and chosen block to overlays i think - in that project i didnt need to add that include. i wasnt getting the build error though so i suppose something in the conf already made build include that header file at the right time but i wasnt able to figure out what. that what was missing from my big project.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501666?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 08:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9ab007a-b336-4d92-8afa-eaeeb451b419</guid><dc:creator>p1ng</dc:creator><description>&lt;p&gt;yeah i think ill go with IvanVs&amp;nbsp; solution cause creating the ticket would take too much of my time atm because i would have to create a small project where there is only mcuboot and nvs stuff just to make sure anything in my big project isnt causing the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501661?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 08:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25a37901-a078-4cad-9e00-18f6a438df90</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="p1ng"]I tried setting the partion name to custom_nvs_storage in pm_static.yml in my project but still cant access the custom_nvs_storage variable in c++ code.[/quote]
&lt;p&gt;I think this should be able to work.&lt;br /&gt;I suggest that you create a new ticket asking for help with this. (And referencing this ticket in there).&lt;/p&gt;
[quote user="p1ng"]Trying out IvanV solution now by getting address and device variables from&amp;nbsp;&lt;span&gt;build\zephyr\include\generated\pm_config.h this looks promising&lt;/span&gt;[/quote]
&lt;p&gt;If that works for you, you are of course free to do so as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501660?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 08:10:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3dc1793-e3ea-436c-84ee-5b301f294874</guid><dc:creator>p1ng</dc:creator><description>&lt;p&gt;I tried setting the partion name to custom_nvs_storage in pm_static.yml in my project but still cant access the custom_nvs_storage variable in c++ code. Trying out IvanV solution now by getting address and device variables from&amp;nbsp;&lt;span&gt;build\zephyr\include\generated\pm_config.h this looks promising&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501648?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 07:08:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8150015-b8ce-416c-b06e-b5c3fde0bc54</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi p1ng,&lt;/p&gt;
&lt;p&gt;I cannot update the sample uploaded here for every nRF Connect SDK version.&lt;br /&gt;The method for fixing the issue should still be the same though, so it will be up to you to learn how the sample works, and then implement the same fix in your applicaiton.&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: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/501641?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 06:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f72431b-1d51-447a-b6d7-11f9259dadb8</guid><dc:creator>p1ng</dc:creator><description>&lt;p&gt;I have the same problem now as described in this thread. the peripheral_hr_settings_nvs_mcuboot does not compile any more. i use 2.6.1 sdk. what needs to be changed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/488807?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 07:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc73c028-afd6-448b-b94c-616a1fbe77b2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Good job fixing this!&lt;/p&gt;
[quote user="JohnnyBravo"]I will say though I did have weird issues whereby I had to delete my original build config and create it again before it would recognize the new partition without error.[/quote]
&lt;p&gt;Yep, you sometimes have to delete the build folder.&lt;/p&gt;
[quote user="JohnnyBravo"]Do you NEED a multi-image build to setup a custom isolated NVS?[/quote]
&lt;p&gt;Multi-Image build != partition manager.&lt;br /&gt;But pm_static.yml is only for the partition manager,&lt;br /&gt;However, you can use DTS partitioning instead if you want.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;That being said, if you want to use MCUboot, which you probably will, then the partition manager and multi image build will be automatically enabled.&lt;/p&gt;
&lt;p&gt;(In v2.7.0 sysbuild becomes an alternative for multi image build)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/488785?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 04:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a3e67ab-3890-44e5-abb0-45425ea30bd5</guid><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;I&amp;#39;ve managed it now, just needed to add CONFIG_BOOTLOADER_MCUBOOT=y, and add that pm_static.yml to my application directory.&lt;br /&gt;&lt;br /&gt;I will say though I did have weird issues whereby I had to delete my original build config and create it again before it would recognize the new partition without error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/488780?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 03:41:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0870411-da98-4a17-873f-a5b088a1f958</guid><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;Do you NEED a multi-image build to setup a custom isolated NVS? I think I am facing a situation where BLE is overwriting an NVS that I setup as in the Zephyr NVS example just using the storage_partition, but up until this point I haven&amp;#39;t actually had to setup a multi-image build.&lt;br /&gt;&lt;br /&gt;The tutorial you link unfortunately really doesn&amp;#39;t explain well how to enable and configure NVS with the Partition Manager for the first time, more just goes over what it is and why Nordic use it and has a vague go at explaining where to look. Can you recommend any other resource, also happy to make a thread if that&amp;#39;s a better idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/488683?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 13:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a4ab86-c874-4a72-a637-40dfc75bb191</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;pm_static.yml is included in your application if you have the partition manager enabled.&lt;br /&gt;See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/multi-image-builds-and-the-partition-manager/&lt;/a&gt; for some context on the partition manager.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/488599?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 06:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c1005d4-1e41-4886-9402-a73e456a0c00</guid><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;How exactly does this work, I see you have custom_nvs_storage defined in &amp;quot;pm_static.yml&amp;quot;, but it seems by default my application doesn&amp;#39;t just read this and define and create this new partition, how do I include that &amp;quot;pm_static.yml&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416596?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 14:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529ae182-5dd8-4297-a738-5e937cdcc0a2</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Here is an edited version of peripheral_hr with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/connectivity/bluetooth/bluetooth-arch.html#persistent-storage"&gt;persistent Bluetooth LE storage&lt;/a&gt;, MCUboot and a custom NVS partition.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5810.peripheral_5F00_hr_5F00_settings_5F00_nvs_5F00_mcuboot.zip"&gt;peripheral_hr_settings_nvs_mcuboot.zip&lt;/a&gt;&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: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416490?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 10:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:038d973f-8f8f-48f8-a8fe-a33c9dfd5b3c</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Its fine by me! The minimal sample you sent does not hold and private info from our end, and is rather a useful general BT case &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416314?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 14:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:424bb1d7-c76e-4690-afa3-2420c3a185bb</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/roiger"&gt;Roiger&lt;/a&gt;&amp;nbsp; is it alright with you that I upload the minimal sample from the private case here?&lt;/p&gt;
&lt;p&gt;It is, of course, very alright if you say no. In that case, I will give Ivan the specifics that he needs.&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: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416189?ContentTypeID=1</link><pubDate>Mon, 20 Mar 2023 07:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb19a0b8-d5de-417c-ac95-19c2dcc7613d</guid><dc:creator>IvanV</dc:creator><description>&lt;p&gt;Where did you define that custom partition, and can you provide program snippet?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416164?ContentTypeID=1</link><pubDate>Sun, 19 Mar 2023 17:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9966c0d0-8147-4ab3-add2-498d66bee7db</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Hi Sigurd!&lt;br /&gt;I have tested quite a few times and this seems to work as expected!&lt;br /&gt;Thanks very much for all your help!&lt;br /&gt;Roi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/416157?ContentTypeID=1</link><pubDate>Sun, 19 Mar 2023 11:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a66c57b8-55c0-4d84-bde1-ded214e2283b</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;After retrying from scratch - it seems your (Sigurd&amp;#39;s) solution has worked for me!&lt;br /&gt;It was all down to the name of the partition (must be EXACTLY custom_nvs_storage) for this to work.&lt;br /&gt;I will do a few more tests and close this and the other ticket if they work.&lt;br /&gt;Many thanks!&lt;br /&gt;Roi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415897?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 08:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfdf2577-42cb-413f-81d2-fe034da4783b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;My solution in the private case was to create a new custom partition for NVS to use in the app.&lt;br /&gt;This way, there are two NVS partitions: one used by the Bluetooth and one used by the application.&lt;/p&gt;
&lt;p&gt;However, I think your solution is also very good.&lt;br /&gt;Since Bluetooth use the NVS backend, remember to make sure that you do not accidentally overwrite any of the data stored by Bluetooth.&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: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415758?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 14:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14fc5fbe-e60c-472a-82fe-c83cb37567ef</guid><dc:creator>IvanV</dc:creator><description>&lt;p&gt;Ok I think I&amp;#39;ve managed to get it working.&lt;/p&gt;
&lt;p&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;/p&gt;
&lt;p&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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415744?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 14:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5d915f7-9d22-422b-acd1-1d86d7fbfba0</guid><dc:creator>IvanV</dc:creator><description>&lt;p&gt;Please do not change conversation to private because I have the same problem as you do, and presume many others too.&lt;/p&gt;
&lt;p&gt;I am using DFU (Partition manager with static partitions defined in the partitions.yml file) with NVS storage code where I need to read/write values in non-volatile storage. When I enable DFU (Partition manager), the partition DTS node in flash0 node of soc defined in board DTS becomes not true because the partitions from partitions.yml file are included so the code under zephyr/samples/subsys/nvs/src/main.c (which your code uses), does not work anymore.&lt;/p&gt;
&lt;p&gt;In partitions.yml file located under the build folder, I have nvs_storage node prepended (not by me) at the address 0x3f000 with size 0x6000.&lt;/p&gt;
&lt;p&gt;Now, the question is how do I reference nvs start address in the sample code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415323?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 17:50:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33b8728a-f539-4fb6-9094-3d39d39e4d72</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks very much for the suggestion!!&lt;br /&gt;I have opened a private ticket with what you have requested.&lt;br /&gt;Thanks again!&lt;br /&gt;Roi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/415064?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 08:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc9439ca-07a1-40f9-8f3b-76338248af5e</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Roi,&lt;/p&gt;
&lt;p&gt;Reading through your case above, I realize that it can be hard to give debugging tips for projects with a lot of moving parts.&lt;br /&gt;So I will propose another way to do it: You give me a description of a simple project that has the features you need, and I will try to configure it for you.&lt;/p&gt;
&lt;p&gt;What I need to know:&lt;/p&gt;
&lt;p&gt;Bluetooth LE base sample (from &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bl.html"&gt;BLE samples&lt;/a&gt;):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;lt;Sample name&amp;gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Feature list:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;(example) MCUboot&lt;/li&gt;
&lt;li&gt;(example) NVS&lt;/li&gt;
&lt;li&gt;etc&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How does that sound to you?&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: Setting and using NVS and BT Settings with Static Partition Manager</title><link>https://devzone.nordicsemi.com/thread/414770?ContentTypeID=1</link><pubDate>Sun, 12 Mar 2023 10:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f63307a0-379c-411f-98ec-2be967c74a78</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Thanks Sigurd!&lt;br /&gt;Per your suggestion on my previous ticket, I have tried to remove DTS flash partitions and &amp;quot;chosen&amp;quot; for settings_partition, and the app now works, but LTK is not saved for next connection.&lt;br /&gt;Perhaps there is some way to explicitly direct &amp;quot;zephyr,settings_partition&amp;quot; at flash memory by address (ie - partition @ address) ?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Roi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>