<?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: Using GPIOs on P1 in non-secure mode without changing spm.c in the SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91468/nrf5340-using-gpios-on-p1-in-non-secure-mode-without-changing-spm-c-in-the-sdk</link><description>Hello, 
 we would like to use a pin on GPIO P1 as GPIO in non-secure mode, but only found the solution stated in this thread yet: https://devzone.nordicsemi.com/f/nordic-q-a/68786/p1-04-configuration-on-nrf5340 
 The question is: Is it possible to enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2022 15:26:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91468/nrf5340-using-gpios-on-p1-in-non-secure-mode-without-changing-spm-c-in-the-sdk" /><item><title>RE: nrf5340: Using GPIOs on P1 in non-secure mode without changing spm.c in the SDK</title><link>https://devzone.nordicsemi.com/thread/384190?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 15:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:616ea038-0ea9-48ab-b12c-c1d87e9170cc</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Niklas,&lt;/p&gt;
&lt;p&gt;I might have misunderstood your usecase.&lt;br /&gt;First I though you wanted to control GPIO1 from the Secure partition.&lt;/p&gt;
&lt;p&gt;But you want to control GPIO1 from your Non-Secure application (main.c), right?&lt;/p&gt;
&lt;p&gt;In this case, I do not think you need to do anything special. &lt;br /&gt;SPM might have set P1.04 to Secure by default, but TF-M has different defaults.&lt;br /&gt;I added a sample blinking Pin 1.04 to show how. (The sample is a copy of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/samples/basic/blinky/README.html"&gt;Zephyr Blinky Sample&lt;/a&gt;.)&lt;br /&gt;Is this what you are looking for?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/blinky_5F00_p1_5F00_04.zip"&gt;devzone.nordicsemi.com/.../blinky_5F00_p1_5F00_04.zip&lt;/a&gt;&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: nrf5340: Using GPIOs on P1 in non-secure mode without changing spm.c in the SDK</title><link>https://devzone.nordicsemi.com/thread/384166?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 13:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2b708f7-b9fe-40e8-8ca6-69dc404ec788</guid><dc:creator>NiklasT</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your fast reply!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I reopened this because we didn&amp;#39;t manage to set GPIO 1.9 by creating this secure partition. Is there perhaps a simple example we could use for this? The example you linked contains a lot of other methods we don&amp;#39;t need and also uses the GPIO as an interrupt input as opposed to setting a simple output.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Niklas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340: Using GPIOs on P1 in non-secure mode without changing spm.c in the SDK</title><link>https://devzone.nordicsemi.com/thread/383833?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2022 09:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:961374d5-507d-4bdd-8e49-653a4de52881</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Niklas,&lt;/p&gt;
&lt;p&gt;In v2.0.0 and newer of the nRF Connect SDK, the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/samples/tfm/tfm_secure_peripheral/README.html"&gt;TF-M secure peripheral partition&lt;/a&gt; show how you can do this.&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>