<?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>nRF9160 SPM problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87155/nrf9160-spm-problems</link><description>Hi! 
 I need to modify the code of the secure and the non-secure images of my project. 
 I tried to follow this guide https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Apr 2022 14:10:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87155/nrf9160-spm-problems" /><item><title>RE: nRF9160 SPM problems</title><link>https://devzone.nordicsemi.com/thread/365232?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 14:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab3d2617-c563-4f2f-9292-75188318330c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gioele,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response. We will try to update the example in&amp;nbsp;&lt;span&gt;this guide&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application"&gt;https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For now, the easiest way of doing this is to directly modify the SPM sample to add your secure code in.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The way it works is that the SPM image will run in the secure domain (built for nrf9169dk_nrf9160 board) and the SPM image will make the jump to the unsecure domain which your unsecure application is configured (built for &lt;span&gt;nrf9169dk_nrf9160_ns board).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can configure and put any of your secure function inside the SPM firmware. And can follow what Heidi wrote about how you can share between the secure and nonsecure domain.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that when you build an application with&amp;nbsp;nrf9169dk_nrf9160_ns&amp;nbsp;the SPM image will be added automatically as the child image. So you don&amp;#39;t need to add&amp;nbsp;CONFIG_SPM into the prj.conf. You also don&amp;#39;t need to create an extra project as secure project (nrf9169dk_nrf9160) because it&amp;#39;s the SPM. When you flash both the SPM and the unsecure will be flashed.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The issue we have now with the guide is that the custom SPM folder doesn&amp;#39;t work as in the guide. But you can of course modify the&amp;nbsp;original SPM sample directly. Just keep a back up of the original SPM sample so you can revert later if needed.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would suggest to start with something very simple , for example blinky example to blink LED. And then add a function in the secure SPM sample and try sharing that function/variable between the 2 domain, the unsecure blinky and the secure SPM sample.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SPM problems</title><link>https://devzone.nordicsemi.com/thread/364998?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 14:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:778f2b44-431a-4661-bd32-fe4fcd2bb092</guid><dc:creator>Gioele</dc:creator><description>&lt;p&gt;is there any news?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SPM problems</title><link>https://devzone.nordicsemi.com/thread/364513?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 14:26:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7b89a51-c464-41d2-bbb8-9a586924a4ff</guid><dc:creator>Gioele</dc:creator><description>&lt;p&gt;So now what should I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 SPM problems</title><link>https://devzone.nordicsemi.com/thread/364285?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 14:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64007744-d42f-4c75-a5d8-87092a6ef6b5</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Gioele,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>