<?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>Enabling Provisioning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126833/enabling-provisioning</link><description>I&amp;#39;m attempting to enable provisioning using attestation tokens in my project. As soon as I add the config; 
 
 CONFIG_NRF_PROVISIONING =y 
 
 The build starts failing with; 
 
 C:\Users\RANDAL~1.PHI\AppData\Local\Temp\ccKWl0nJ.s: Assembler messages: C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Feb 2026 16:16:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126833/enabling-provisioning" /><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560366?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 16:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccc8410c-680f-44fc-9227-b2365daaeaa8</guid><dc:creator>rtphilipson</dc:creator><description>&lt;div&gt;&lt;span&gt;&lt;span&gt;My bad, I was trying to create a nvs file system with more sectors than was available.&amp;nbsp; Instead of using&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;FIXED_PARTITION_SIZE() to calculate, I was using a hardcoded value in my code&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/2639.svg" title="Frowning2"&gt;&amp;#x2639;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;So I appear to be all good now.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560362?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 15:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b92f205b-0812-4597-8d83-50d059dfb5ce</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the updated layout. The partition split itself looks fine.&lt;/p&gt;
&lt;p&gt;If your data is ending up at 0x100000 with only 4 KB, that usually means the application is still writing to a default storage area, rather than the user_storage partition you defined. In other words, the partition exists, but the code isn’t actually using it yet.&lt;/p&gt;
&lt;p&gt;Have you tried&amp;nbsp;doing a pristine rebuild and checked build/partitions.yml to confirm if the user_storage is present at 0xF1000 with size 0xD000?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560352?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 14:14:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a0dcf23-04cc-4c6f-8d2a-f730d7c0e72c</guid><dc:creator>rtphilipson</dc:creator><description>&lt;p&gt;Perhaps you can tell me what I&amp;#39;m doing wrong;&lt;/p&gt;
&lt;p&gt;nonsecure_storage:&lt;br /&gt; address: 0xE4000&lt;br /&gt; end_address: 0xfe000&lt;br /&gt; orig_span: &amp;amp;id001&lt;br /&gt; - nvs_storage&lt;br /&gt; - user_storage&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0x1A000&lt;br /&gt; span: *id001&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;nvs_storage:&lt;br /&gt; address: 0xE4000&lt;br /&gt; end_address: 0xF1000&lt;br /&gt; inside:&lt;br /&gt; - nonsecure_storage&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; before:&lt;br /&gt; - end&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0xD000&lt;/p&gt;
&lt;p&gt;user_storage:&lt;br /&gt; address: 0xF1000&lt;br /&gt; end_address: 0xfe000&lt;br /&gt; inside:&lt;br /&gt; - nonsecure_storage&lt;br /&gt; placement:&lt;br /&gt; align:&lt;br /&gt; start: 0x1000&lt;br /&gt; before:&lt;br /&gt; - end&lt;br /&gt; region: flash_primary&lt;br /&gt; size: 0xD000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I changed my pm_static to this, but when I try to use user_storage in my program it appears to be placing the memory at 0x100000 and only 4K of memory at that.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560337?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 13:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:157cadba-0489-4b57-9915-f082b88c8a26</guid><dc:creator>rtphilipson</dc:creator><description>&lt;p&gt;I created my own pm_static.yml file a while back to accommodate the bootloader.&amp;nbsp; I&amp;#39;ve tried to be very careful about modifying since I don&amp;#39;t really understand it. my nvs_storage partiion;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nvs_storage&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;address&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0xE4000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;end_address&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0xfe000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;inside&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; - &lt;/span&gt;&lt;span&gt;nonsecure_storage&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;placement&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;align&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;start&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x8000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;before&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; - &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;region&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;flash_primary&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&lt;span&gt;size&lt;/span&gt;&lt;span&gt;: &lt;/span&gt;&lt;span&gt;0x1A000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;One thing messed up about this, which will be made even worse if I start splitting it up, is alignment on a 32K boundary.&amp;nbsp; Do you know if I can change align: start: 0x8000 to start: 0x1000?&amp;nbsp; Seems like with data storage that alignment on a sector boundary should be fine.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560310?ContentTypeID=1</link><pubDate>Wed, 04 Feb 2026 09:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:948f6df5-ee5d-4e34-b635-dc8619acefc4</guid><dc:creator>Syed Maysum Abbas Zaidi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to hear that provisioning itself is now working correctly after reusing the overlay-coap_nrf_provisioning.conf. The remaining issue you’re seeing is due to a storage conflict. The nRF Provisioning library stores its state and credentials using Zephyr’s settings subsystem, which is typically backed by an NVS flash partition. If your application is also using NVS and both end up pointing to the same flash area, provisioning can overwrite application data. This is expected behavior when multiple users share the same NVS region.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To avoid this, we recommend separating the storage used by provisioning and your application. On custom boards, the most robust approach is to define two non-overlapping flash partitions using&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html"&gt;Partition Manager&lt;/a&gt;, by adding a pm_static.yml file:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;One used by the provisioning/settings system.&lt;/li&gt;
&lt;li&gt;One used by your own application data.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can do it by placing a file named pm_static.yml in your application root (same level as prj.conf), build once and then copy build/partitions.yml into pm_static.yml in your app folder after which you can edit it to add your own partitions. You can refer to this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116548/adding-nvs-in-zigbee-sample/511414"&gt;devzone case&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#configuring_static_partitions"&gt;documentation&lt;/a&gt;&amp;nbsp;regarding separations of partitions.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Syed Maysum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560273?ContentTypeID=1</link><pubDate>Tue, 03 Feb 2026 23:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2176c52a-b596-494c-a305-c26b86bef0c5</guid><dc:creator>rtphilipson</dc:creator><description>&lt;p&gt;OK, I simply got rid of all the provisioning items from my prj.conf file.&amp;nbsp; Then I copied the&amp;nbsp;overlay-coap_nrf_provisioning.conf from the nrf_cloud_multi_service sample and it built.&amp;nbsp; I then used the &amp;quot;nrf_provisioning init&amp;quot; CLI command and the damn thing provisioned.&amp;nbsp; I actually expected to have to follow it with the &amp;quot;now&amp;quot; command&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, that was nice.&amp;nbsp; I had already claimed the device on my NRF_CLOUD account and it just worked.&amp;nbsp; The problem now is that I store information in NVS and the provisioning process seemed to overwrite it.&amp;nbsp; So I think I have an NVS conflict in the information that the provision uses and the information I&amp;#39;m storing on NVS.&amp;nbsp; I&amp;#39;m trying to fiigure out how to avoid the conflict.&amp;nbsp; The main thing deleted was my AWS Client ID and I&amp;#39;m concerned that if I set the Client ID again that it&amp;#39;s going to overwrite provisioning information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560268?ContentTypeID=1</link><pubDate>Tue, 03 Feb 2026 19:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc0fb459-a71a-4354-846d-453bd8f6b6ec</guid><dc:creator>rtphilipson</dc:creator><description>&lt;p&gt;Spoke too soon.&amp;nbsp; Disabling CONFIG_SETTINGS disabled provisioning.&amp;nbsp; Now the error is back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enabling Provisioning</title><link>https://devzone.nordicsemi.com/thread/560266?ContentTypeID=1</link><pubDate>Tue, 03 Feb 2026 18:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342765ee-ff4a-4c52-95cb-1c9e89875f28</guid><dc:creator>rtphilipson</dc:creator><description>&lt;p&gt;I guess we can delete this.&amp;nbsp; By jiggling around CONFIG settings I was able to get it to work.&amp;nbsp; Not sure what really did it, but getting rid of the following;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_FLASH_PAGE_LAYOUT=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_FLASH_MAP=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_STREAM_FLASH=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_NRF_CLOUD_ALERT=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_SETTINGS=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_FCB=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#CONFIG_SETTINGS_FCB=y&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;seemed to get it to work. I don&amp;#39;t know what the conflict was there.&amp;nbsp; Usually the build system does a good job showing me when I have conflicts, but not in this case.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>