<?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>How to save persistently secure data in nRF9160 DK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51733/how-to-save-persistently-secure-data-in-nrf9160-dk</link><description>hi, 
 We are working on nRF9160 DK board. 
 One of the issues is how to save secure data (e.g, data key) into flash. Is there any examples or document on data storage APIs? 
 
 Another follow up issue. Since the Key data is supposed to be handled in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Sep 2019 17:43:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51733/how-to-save-persistently-secure-data-in-nrf9160-dk" /><item><title>RE: How to save persistently secure data in nRF9160 DK?</title><link>https://devzone.nordicsemi.com/thread/209022?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 17:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e979e3cb-0240-48be-b940-9177eba083b4</guid><dc:creator>Zhenchuan</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Got it, thanks! That works for me!&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Zhenchuan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save persistently secure data in nRF9160 DK?</title><link>https://devzone.nordicsemi.com/thread/208945?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 12:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca92f282-e914-430a-9e85-ffdbdbd4f41e</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Zhenchuan,&lt;br /&gt;What you can do is turn OFF the automatic building/merging of the SPM in your main application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In &lt;em&gt;prj.conf&lt;/em&gt; put in:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SPM=n&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and make a copy of the SPM (&lt;em&gt;ncs/nrf/subsys/spm/)&amp;nbsp;&lt;/em&gt;which you want to modify and build it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You would build the SPM secure instead of non-secure.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf9160.html#secure-partition-manager" rel="noopener noreferrer" target="_blank"&gt;More details in the documentation.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you flash the application and SPM separately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save persistently secure data in nRF9160 DK?</title><link>https://devzone.nordicsemi.com/thread/208795?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 06:42:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf3376c-1901-401f-8aee-b33441aba8d8</guid><dc:creator>Zhenchuan</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a follow-up question regarding the SPM.&amp;nbsp;&amp;nbsp;Yes, I could find that SPM code included in my project. The problem is that the SPM code is in the directory&amp;nbsp;&lt;span&gt;ncs/nrf/subsys/spm/, which is shared by all other projects. If I modify the code, all other projects will be affected. Is that correct? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I want&amp;nbsp;SPM changes only apply to that specific application. Can I do that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Zhenchuan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to save persistently secure data in nRF9160 DK?</title><link>https://devzone.nordicsemi.com/thread/208720?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2019 13:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9818023-ae37-400c-9601-ffa7052dea70</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Zhenchuan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;One option you can use is to store keys/credentials in the modem flash as we have done with the nRF Cloud Certificates to be able to connect to the nrfcloud.com (aws_server).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(The samples e.g. the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker/README.html" rel="noopener noreferrer" target="_blank"&gt;Asset_tracker&lt;/a&gt;/&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/lte_ble_gateway/README.html" rel="noopener noreferrer" target="_blank"&gt;LTE sensor Getaway&lt;/a&gt;&amp;nbsp;uses these credentials to connect to the cloud)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;To provision credentials to the modem flash, you can use the AT command: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcmng_set.html" rel="noopener noreferrer" target="_blank"&gt;AT%CMNG&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It depends a bit on what kind of data you want to store.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You also have some other ways of keeping your data/keys secure:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fcryptocell.html&amp;amp;cp=2_0_0_5_0" rel="noopener noreferrer" target="_blank"&gt;CRYPTOCELL — ARM&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/00ae.svg" title="Registered"&gt;&amp;#x00ae;&lt;/span&gt; TrustZone&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/00ae.svg" title="Registered"&gt;&amp;#x00ae;&lt;/span&gt; CryptoCell 310&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fkmu.html&amp;amp;cp=2_0_0_5_7" rel="noopener noreferrer" target="_blank"&gt;KMU — Key management unit&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;For your last question, when you build your &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/spm/README.html#automatic-building-of-spm" rel="noopener noreferrer" target="_blank"&gt;application it should automatically include the SPM&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>