<?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>Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81001/need-p0-14-as-input-on-nrf9160</link><description>Hi, my app (nrf9160 ns, on DK 1.0 rev.; ncs 1.6.0 ) needs the port pin P0.14 as digital INput (wired on the arduino header, for a shield!!). But something is blocking it from following the applied HI:1 level, it always stays LO:0! Read both in SW as well</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 23 Jan 2022 13:53:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81001/need-p0-14-as-input-on-nrf9160" /><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/349085?ContentTypeID=1</link><pubDate>Sun, 23 Jan 2022 13:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c57755d5-85dd-4760-a048-d1e348d075bd</guid><dc:creator>Sohaib Qamar</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/nordicswisstom"&gt;NordicSwissTom&lt;/a&gt;&lt;br /&gt;Thanks a bundle for the tip.&lt;/p&gt;
&lt;p&gt;I have managed to get P0.14 working after trying your hack.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/349059?ContentTypeID=1</link><pubDate>Sat, 22 Jan 2022 12:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:763a775a-3bd7-4e1f-a646-93476c155764</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;First note my project is completed now, I no longer work with nordicsemi chips (and never will again).&lt;br /&gt;Just short summary from mind: the P 14/15 got working (at least with our custom HW; the DK has another crap, see board controller)&lt;br /&gt;It was a fundamental issue how the two (app+spm) .overlay files (zephyr crap) do work:&lt;br /&gt;The conflicting uart has to be set (in both overlays) to status &amp;#39;okay&amp;#39; (=enabled, ==&amp;gt;&amp;gt; force OVERRIDING originals),&lt;br /&gt; with their IO pins set to other free/unused ones, or FF* or (or maybe the new /delete-property/ hack).&lt;br /&gt;Do force a make-rebuild, IMPORTANT: verify results in the generated files!&lt;br /&gt;I guess another solution could be to hack the original&amp;nbsp;device files in ncs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/349053?ContentTypeID=1</link><pubDate>Sat, 22 Jan 2022 09:03:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b67dab4-4f47-4b54-8f8d-3b5ae9468e32</guid><dc:creator>Sohaib Qamar</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/nordicswisstom"&gt;NordicSwissTom&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope you are doing well.&lt;br /&gt;Were you able to use P0.14 as input?&lt;/p&gt;
&lt;p&gt;I am trying to use this pin as Output for RESET functionality of my SPI device (LR1110).&lt;/p&gt;
&lt;p&gt;I have tried to separately toggle P0.14 but no luck. Same is the case with P0.15.&lt;/p&gt;
&lt;p&gt;Any help would be really appreciated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;--&lt;br /&gt;Regards&lt;br /&gt;Sohaib&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/336116?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 07:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52401d50-1b47-44d2-a3df-bcaafc2d65dc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Could you share your test project so I can have a look?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/336066?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 22:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eda9c3f5-c504-4544-971a-32a3b32e2815</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;ok, also tried this, but fails in: z_arm_exc_spurious.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/335880?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 08:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b4e42e8-53c8-4d1e-9712-39c1041a6e0c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you sure that you&amp;#39;ve disabled uart2 in both the secure application (spm) and the non-secure application?&lt;/p&gt;
&lt;p&gt;for spm, the location should be my_application/child_image/spm.conf, where you can just plainly disable serial with &amp;quot;CONFIG_SERIAL=n&amp;quot;.&lt;/p&gt;
&lt;p&gt;For the non-secure application, you can create my_application/boards/nrf9160dk_nrf9160_ns.overlay, with the uart2 disabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart2 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/335832?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 22:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f61f9a9-9124-4609-96e9-339d5d9f973d</guid><dc:creator>NordicSwissTom</dc:creator><description>&lt;p&gt;Hi, thanks - but as I wrote I tried that long ago,&lt;br /&gt;the routing (of course) has no effect on the physical nrf9160 pin functionality!&lt;/p&gt;
&lt;p&gt;I also found when using an spm.conf with lines:&lt;br /&gt;&amp;nbsp;&lt;em&gt; CONFIG_NRFX_UARTE2=n&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; CONFIG_SPM_NRF_UARTE2_NS=y&lt;/em&gt;&lt;br /&gt;it did disable uarte2 in the generated spm source files, but with no effect on pin ownership or in/out setting.&lt;br /&gt;And the boot log still tells secured UARTE2:&lt;br /&gt;&amp;nbsp; Peripheral -Domain -Status:&lt;br /&gt;&amp;nbsp; 00 NRF_P0 Non-Secure OK&lt;br /&gt;&amp;nbsp; 01 NRF_CLOCK Non-Secure OK&lt;br /&gt;&amp;nbsp; 05 NRF_UARTE1 Non-Secure OK&lt;br /&gt;&amp;nbsp; 06 &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;NRF_UARTE2 Secure SKIP&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;My conclusion so far:&lt;/strong&gt;&lt;br /&gt;the 4 pins of VCOM2 (aka APP2, or schematics 1.0 group nRF91_UART_2)&lt;br /&gt;are stolen by the Modem-Trace functionality inside the proprietary modem firmware (using 1.3.0).&lt;br /&gt;I also tried &lt;br /&gt; AT%XMODEMTRACE=0&lt;br /&gt;to ensure the trace is OFF, no luck.&lt;/p&gt;
&lt;p&gt;Therefore: the DK headers are simply NOT arduino compatible, P0.00, P0.01, P0.14, P0.15&lt;br /&gt;can never be used and even worse have fixed voltage levels.&lt;br /&gt;So we can&amp;#39;t use standard shields without risk of damage.&lt;br /&gt;This should be documented in big letters in the DK-UG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need P0.14 as input on nrf9160</title><link>https://devzone.nordicsemi.com/thread/335740?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 12:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e19c7ba-2272-42de-9bb7-e89b0bedce9e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you have figured out, the default pins for the UART are directly connected to the debugger IC by default.&lt;/p&gt;
&lt;p&gt;In order to disable this routing, you have to clear P1.12 on the nRF52840 side:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/board_controller.html"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/board_controller.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should add this to the nrf9160dk_nrf52840 project to disable it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;   &amp;amp;vcom2_pins_routing {
           status = &amp;quot;disabled&amp;quot;;
   };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>