<?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>NVS in non secure application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91225/nvs-in-non-secure-application</link><description>Hello, 
 I am relatively new to the nRF Connect SDK and I&amp;#39;m developing an application for nRF9160DK on toolchain version 2.0.2. 
 I am working on a non-secure application and trying to integrate the NVS sample, but can&amp;#39;t get it working with a non-secure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2022 07:05:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91225/nvs-in-non-secure-application" /><item><title>RE: NVS in non secure application</title><link>https://devzone.nordicsemi.com/thread/382996?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 07:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff38c533-7b73-4b2a-bf99-0784c96b0894</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Good to hear that it solved the problem!&lt;/p&gt;
&lt;p&gt;For the Debug Options, see the docs on &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/connect/debug_app.html"&gt;Debugging an application&lt;/a&gt;.&lt;br /&gt;This sets the two configurations &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/kconfig/index.html#CONFIG_DEBUG_OPTIMIZATIONS"&gt;CONFIG_DEBUG_OPTIMIZATIONS&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/kconfig/index.html#CONFIG_DEBUG_THREAD_INFO"&gt;CONFIG_DEBUG_THREAD_INFO&lt;/a&gt;.&lt;br /&gt;If you look at these options, you can see which other options they select. Maybe some of these are messing with your application somehow?&lt;/p&gt;
&lt;p&gt;You could try to only enable CONFIG_DEBUG_OPTIMIZATIONS manually, to see if it makes a difference.&lt;/p&gt;
&lt;p&gt;Also try to use &lt;a href="https://www.youtube.com/watch?v=MGsZJpdLtco&amp;amp;list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl&amp;amp;index=5&amp;amp;t=293s"&gt;Ozone&lt;/a&gt; to debug, as it is usually better at debugging Threads than GDB.&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: NVS in non secure application</title><link>https://devzone.nordicsemi.com/thread/382969?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 22:19:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cc561a5-e3fa-4536-9daf-37d7ad9af395</guid><dc:creator>Bernhard</dc:creator><description>&lt;p&gt;Indeed, that solved the problem.&lt;/p&gt;
&lt;p&gt;Why is that? I build the secure application also with enabled debug options.&lt;/p&gt;
&lt;p&gt;Also I noticed that the option is changing the program flow a lot more than expected, the timing is different now (for example printk messages are now sent after the initial shell prompt, while with enabled debug options they were sent first).&lt;/p&gt;
&lt;p&gt;I thought that the option is more or less neutral to the application, even as I am searching now I can not find a description of this effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVS in non secure application</title><link>https://devzone.nordicsemi.com/thread/382872?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 10:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19ada82e-8f37-4407-8869-58138b7ecc28</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have debug options enabled when you build?&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: NVS in non secure application</title><link>https://devzone.nordicsemi.com/thread/382842?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 08:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d85a23b3-306c-4a8f-8923-e197bab49f81</guid><dc:creator>Bernhard</dc:creator><description>&lt;p&gt;I am able to build and flash it but it doesnt start, same sample with secure build runs as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NVS in non secure application</title><link>https://devzone.nordicsemi.com/thread/382841?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 08:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22b0b61f-614d-4405-964a-2083ec2bdab5</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Are you able to build and run the NVS sample without changes for &amp;quot;nrf9160dk_nrf9160_ns&amp;quot;?&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></channel></rss>