<?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>Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51462/storing-device-serial-identifier</link><description>We&amp;#39;d like to be able to store a few items including mutable keys, and unique identifier in each device that is generated on initial boot of the product. I&amp;#39;m just starting out with research but I&amp;#39;m wondering if there is any documentation/guidance from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Mar 2020 15:14:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51462/storing-device-serial-identifier" /><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/240080?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 15:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e02bda68-1c99-441e-ab37-8657d51f6df9</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;The way I&amp;#39;ve been doing it until now is generating a hex file with the system config data structure located in the &lt;span&gt;PM_MCUBOOT_STORAGE_ADDRESS&lt;/span&gt; part of the flash. Then when we load the application we use the --sector-erase option to prevent it from being overwritten.&lt;/p&gt;
&lt;p&gt;However, with the changes to the PM this has broken. From what I understand we will need to define static partitions but I haven&amp;#39;t had time to explore that yet.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the thread on that: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58945/sdk1-2-nvs-changes"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/58945/sdk1-2-nvs-changes&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Good luck &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: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239870?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 07:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98d33246-21cf-41fc-823b-a67e5bbe0812</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;Hi phipi,&lt;/p&gt;
&lt;p&gt;Have you found a way to write to NVS when programming? I heard it could be done via SWD but not sure how.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239332?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 13:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08719946-1d84-419e-afaf-19718db2ee25</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;lol yes that&amp;#39;s what I meant. I thought at first maybe it was buried somewhere in the response. No worries :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239223?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 20:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5be01415-0ce4-4c19-80f1-82d871b5d0db</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Thanks for all the info, I&amp;#39;ll see if I can figure that out :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239222?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 20:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c545705e-cb3b-4bc7-8720-264ea287b014</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;First I tried things with Zephyr&amp;#39;s NVS sample and then imported the code to my project (that is based on Asset Tracker application). Then I wrote hard coded stuff (like serial) to NVS and moved on when they started to work.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;&lt;span style="font-family:inherit;"&gt;have implemented Serial LTE&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;Modem sample to my project, before the sample was changed from UART interrupt driven to serial sync mode, and without tcpip and any other parts, only the AT host part from that sample. Then I edited it to first comparing the buffer to my custom commands and then to AT commands.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have successfully managed to write things like serial to NVS from terminal.&lt;/p&gt;
&lt;p&gt;I hope you&amp;#39;ll get this working and will happily help you more if you need.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT: lol, actually I didn&amp;#39;t answer your question. I&amp;#39;m not sure how to write to NVS when programming (do you mean like flashing the device?) or if it&amp;#39;s even possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239219?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 19:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e9b0e0-6e3f-4446-a3ee-e674cf2025d3</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;I mean I&amp;#39;m able to read/write NVS from the firmware. However, if I want to program a serial number into 100 boards and have the firmware just read that I&amp;#39;m not sure how to write that value to NVS from the host PC while programming the firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239218?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 19:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2fbbfc3-c295-4b5a-8036-422cdaabcb02</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;Sorry, I don&amp;#39;t understand what you are asking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/239214?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 19:22:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77328cc6-fcba-4c67-ab0d-a1af54acbdbe</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/ziirou"&gt;anicare-tero&lt;/a&gt;, do you have a reliable to program these values from command line?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/237866?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 16:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6a49486-e558-440e-859f-9825791a3abc</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Okay hopefully one of the Nordic guys can chime in if this is the way to use this now, but thanks for the info. I&amp;#39;ll give that a shot in the meantime :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/237863?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 16:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1fcde0-64d6-45a4-8a46-e95f154a08da</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s working for me at least.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/237862?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 16:29:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6a6abf9-b4d6-4fc6-a725-8f74eaa4e96d</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;For use with MCUBOOT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/237852?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 16:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d30058-fc5c-48f8-9dfd-9c8b4b49932d</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;For me,&amp;nbsp;DT_FLASH_AREA_STORAGE_OFFSET seems to be working fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/237824?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 14:56:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72272b61-2abc-4d3e-afce-5db75a13dead</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;&lt;span&gt;PM_MCUBOOT_STORAGE_ADDRESS&lt;/span&gt; and PM_MCUBOOT_STORAGE_ID seem to be no longer defined as of SDK1.2. Is there a new symbol that should be used now?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/234854?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 10:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2436099f-9bc3-44e6-a885-d9011f759894</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;I&amp;#39;m still getting this error:&amp;nbsp;&lt;span&gt;&amp;#39;PM_MCUBOOT_STORAGE_ADDRESS&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PWM_0_BASE_ADDRESS&amp;#39;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have defined&amp;nbsp;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT=y and added&amp;nbsp;#include &amp;lt;pm_config.h&amp;gt; but it&amp;#39;s still not working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do I have to use like pm.yml or what is the solution to this? How should I take MCUBOOT_STORAGE to use?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/232161?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 19:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ebe2b8d-5990-4a56-8d93-064e956fae45</guid><dc:creator>JustinApricity</dc:creator><description>&lt;p&gt;All good now, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/231993?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 03:07:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f574951b-37d9-4850-8b96-d54cc1f18bae</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Try adding:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;pm_config.h&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/231982?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2020 22:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:613dec03-b8a4-4626-ae3c-243fd2621580</guid><dc:creator>JustinApricity</dc:creator><description>&lt;p&gt;I am trying to use PM_MCUBOOT_STORAGE_ADDRESS in our project instead of DT_FLASH_AREA_STORAGE_OFFSET so that we can retain NVS storage after a FOTA update.&amp;nbsp; However, when building, I get the following error:&lt;/p&gt;
&lt;p&gt;&amp;#39;PM_MCUBOOT_STORAGE_ADDRESS&amp;#39; undeclared (first use in this function); did you mean &amp;#39;PWM_0_BASE_ADDRESS&amp;#39;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am setting CONFIG_BOOTLOADER_MCUBOOT=y in the prj.conf, and we are able to do a FOTA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the init code... this works fine when using DT_FLASH_AREA_STORAGE_OFFSET.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;int&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;tk_nv_init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&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;int&lt;/span&gt;&lt;span&gt;&amp;nbsp;err&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;0&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;struct&lt;/span&gt;&lt;span&gt;&amp;nbsp;flash_pages_info&amp;nbsp;info;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;/*&amp;nbsp;define&amp;nbsp;the&amp;nbsp;nvs&amp;nbsp;file&amp;nbsp;system&amp;nbsp;by&amp;nbsp;settings&amp;nbsp;with:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;sector_size&amp;nbsp;equal&amp;nbsp;to&amp;nbsp;the&amp;nbsp;pagesize,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;3&amp;nbsp;sectors&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*&amp;nbsp;&amp;nbsp;starting&amp;nbsp;at&amp;nbsp;DT_FLASH_AREA_STORAGE_OFFSET&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;fs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;PM_MCUBOOT_STORAGE_ADDRESS;&amp;nbsp;&lt;/span&gt;&lt;span&gt;//&amp;nbsp;was&amp;nbsp;DT_FLASH_AREA_STORAGE_OFFSET&amp;nbsp;(should&amp;nbsp;be&amp;nbsp;PM_MCUBOOT_STORAGE_ADDRESS)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;err&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;flash_get_page_info_by_offs&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;device_get_binding&lt;/span&gt;&lt;span&gt;(DT_FLASH_DEV_NAME),&amp;nbsp;&lt;/span&gt;&lt;span&gt;fs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;offset&lt;/span&gt;&lt;span&gt;,&amp;nbsp;&amp;amp;info);&amp;nbsp;&lt;/span&gt;&lt;span&gt;//&amp;nbsp;previous&amp;nbsp;NVS&amp;nbsp;space&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;(err)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Unable&amp;nbsp;to&amp;nbsp;get&amp;nbsp;page&amp;nbsp;info&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt;&amp;nbsp;err;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;fs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;sector_size&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;info&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;size&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;fs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;sector_count&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;3U&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;err&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;nvs_init&lt;/span&gt;&lt;span&gt;(&amp;amp;fs,&amp;nbsp;DT_FLASH_DEV_NAME);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;//&amp;nbsp;previous&amp;nbsp;NVS&amp;nbsp;space&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt;&amp;nbsp;(err)&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;printk&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Flash&amp;nbsp;Init&amp;nbsp;failed&lt;/span&gt;&lt;span&gt;\n&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt;&amp;nbsp;err;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;TK_NV_INCR_M&lt;/span&gt;&lt;span&gt;(REBOOT_CNT_ID);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;//&amp;nbsp;Increment&amp;nbsp;the&amp;nbsp;reboot&amp;nbsp;counter&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;0&lt;/span&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: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/225218?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2019 15:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e344b839-33bd-47ee-b965-cc5582843826</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;Thanks for the details. Unfortunately yes, we need to configure the system for things like serial number, battery type, operating mode, etc. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/225041?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 21:45:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ef3217-f6a3-4f59-a5c3-fb97772f3e40</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure when that area of flash is or isn&amp;#39;t protected.&amp;nbsp; I would expect the JTAG programmer should be able to write there whenever it wants.&lt;/p&gt;
&lt;p&gt;In our application, our initial/default values are the same for every unit we program, so we actually hard-coded them into special NVS-reader functions.&amp;nbsp; A factory reset erases the NVS space on our devices, and the reader functions notice that there is no stored value and return the hard-coded initial/default value instead.&lt;/p&gt;
&lt;p&gt;Are you using unique or changing initial NVS values for different devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/225040?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2019 21:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc063109-204d-4c0e-b0af-faf15abafac0</guid><dc:creator>phipi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/jbrzozoski"&gt;jbrzozoski&lt;/a&gt; I&amp;#39;m revisiting this now. I am able to read/write NVS at the PM_MCUBOOT_STORAGE_ADDRESS however I&amp;#39;m not sure how to initialize that area of flash. I&amp;#39;d like to include as part of our programming script writing the initial values to&amp;nbsp;PM_MCUBOOT_STORAGE_ADDRESS (0xFC000) but when I try to write a binary there I get an error. I assume the area is protected.&lt;/p&gt;
&lt;p&gt;What is the proper way to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Storing Device Serial/Identifier</title><link>https://devzone.nordicsemi.com/thread/206454?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 19:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e093125-8bee-4ecb-a58c-3222b94802c1</guid><dc:creator>jbrzozoski</dc:creator><description>&lt;p&gt;Take a look at the NVS driver that Zephyr provides.&amp;nbsp; There is a sample application over in zephyr/samples/subsys/nvs.&lt;/p&gt;
&lt;p&gt;The only issue&amp;nbsp;I bumped into was the flash offset you pass into nvs_init().&amp;nbsp; The Zephyr sample uses DT_FLASH_AREA_STORAGE_OFFSET, which should work in most cases.&amp;nbsp; Howeverif you are&amp;nbsp;using mcuboot for FOTA updating, that value needs to be&amp;nbsp;PM_MCUBOOT_STORAGE_ADDRESS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>