<?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>NRF5340 audio keep data through reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103281/nrf5340-audio-keep-data-through-reset</link><description>Hello, 
 I&amp;#39;m using nRF5340 audio application with nRF Connect SDK v2.2.0. 
 I want to retain some data that is not affected by sys_reboot(). I originally used UICR to accomplish this. 
 But I found that UICR can only be written once, and the same goes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Aug 2023 06:54:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103281/nrf5340-audio-keep-data-through-reset" /><item><title>RE: NRF5340 audio keep data through reset</title><link>https://devzone.nordicsemi.com/thread/443828?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 06:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed8f7ec-e102-4bac-a16f-43d4c8056634</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;I think I&amp;#39;ve found the reason for this problem.&lt;/p&gt;
&lt;p&gt;In CIS mode, it originally has enable NVS for accessing pairing records, which will conflict with my customized NVS initial code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working on how to integrate them, and if I have any other questions, I&amp;#39;ll post them here again.&lt;/p&gt;
&lt;p&gt;Thank you for your assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 audio keep data through reset</title><link>https://devzone.nordicsemi.com/thread/443824?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 05:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18936969-44b5-4a73-9432-f5d82f3a74e8</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I am now using NVS to read and write data, but I have encountered some problems.&lt;/p&gt;
&lt;p&gt;Here is my prj.conf and overlay file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#NVS FLASH
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_REBOOT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;storage_partition;

&amp;amp;flash0 {
	partitions {
		/* Set 6KB of storage at the end of 512KB flash */
		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000fa000 DT_SIZE_K(6)&amp;gt;;
		};
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In BIS mode, everything is well. I can use NVS, and audio functions are also normal.&lt;/p&gt;
&lt;p&gt;But in CIS mode, the program cannot be executed after burning. It does not boot, and I cannot see the log.&lt;/p&gt;
&lt;p&gt;I am confused why this happens, is there a mistake in my settings?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF5340 audio keep data through reset</title><link>https://devzone.nordicsemi.com/thread/443719?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 11:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6799eb13-ac7c-4205-b20e-0efda4053a44</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is possible to write to UICR at run-time (but only from secure mode), and never erase it, as erase of the UICR is only possible together with a full chip erase (erase all). So the UICR is suitable for storing permanent data like serial numbers etc, but not dynamic data. For that you need to use regular flash.&lt;/p&gt;
&lt;p&gt;FDS which you refer to is for the nRF5 SDK, but there are equivalent simple file systems available in the nRF Connect SDK. I suggest you take a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/zephyr/samples/subsys/nvs/README.html"&gt;NVS sample&lt;/a&gt;, which demonstrates the use of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/zephyr/services/storage/nvs/nvs.html"&gt;NVS subsystem&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>