<?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>NRF52840 GPIO P1.xx configuration problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41855/nrf52840-gpio-p1-xx-configuration-problem</link><description>Hello everyone, 
 I started porting our software from NRF52830 to NRF840. 
 
 I am currently stuck with a weird problem: I a unable to use and configure PINs of the NRF52840 board belonging to port 1 (P1.00, P1.01 and so on). 
 After struggling a bit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jan 2019 09:42:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41855/nrf52840-gpio-p1-xx-configuration-problem" /><item><title>RE: NRF52840 GPIO P1.xx configuration problem</title><link>https://devzone.nordicsemi.com/thread/164184?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 09:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5786657d-01b9-4612-9c1d-2ea68c657946</guid><dc:creator>lbe</dc:creator><description>&lt;p&gt;Thanks a lot! This solved my issue, your help was really appreciated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 GPIO P1.xx configuration problem</title><link>https://devzone.nordicsemi.com/thread/164180?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 09:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e276ae18-42d1-4008-b71d-6c4c2afc52a9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The&amp;nbsp;&lt;span&gt;NRF_GPIO_PIN_MAP macro is intended for use with the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/group__nrf__gpio__hal"&gt;GPIO HAL functions&lt;/a&gt;. These functions will map the pin to the correct port.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In your code, you have hardcoded which GPIO port register to write to, by using&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/gpio?324#topic"&gt;NRF_GPIO register&lt;/a&gt;. NRF_GPIO register is deprecated and redefined as NRF_P0. If you want to control pins on GPIO port 1, you need to write to NRF_P1 register.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 GPIO P1.xx configuration problem</title><link>https://devzone.nordicsemi.com/thread/164171?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 09:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f58113d8-1967-4330-86cd-525c4330b6e8</guid><dc:creator>lbe</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am working on SDK version 15.0.0, I did not find (and honestly didn&amp;#39;t look for, though) any existing example using specific pins I mentioned and the way I control the GPIOs is pretty simple:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;when I want to see the logic analyzer line down, I call&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
NRF_GPIO-&amp;gt;OUTCLR = (NRF_GPIO-&amp;gt;OUT &amp;amp; (1UL &amp;lt;&amp;lt; DEBUG1_PIN));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;when I want to see the logic analyzer line up, I call&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_GPIO-&amp;gt;OUTSET = (NRF_GPIO-&amp;gt;OUT | (1UL &amp;lt;&amp;lt; DEBUG1_PIN));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As said before, this works perfectly when for example&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define DEBUG1_PIN NRF_GPIO_PIN_MAP(0,29)

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but stops working if I define the pin as&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define DEBUG1_PIN NRF_GPIO_PIN_MAP(1,12)

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Of course, I change the proper logic analyzer connection to the correct board pin.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems to me that somehow the port 1 pins are not &amp;quot;activated&amp;quot;....&lt;/p&gt;
&lt;p&gt;If you can point me to an existing sample using port 1 pins I would be glad to test it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 GPIO P1.xx configuration problem</title><link>https://devzone.nordicsemi.com/thread/163393?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 10:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b826b7-a3ee-416a-9a2d-1f1c32452470</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How are you controlling the GPIOs (set, clear, etc)?&lt;/p&gt;
&lt;p&gt;Have you tested one of the example projects for nRF52840 in the SDK, to check if the issue is related to your project or how you control the GPIOs?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 GPIO P1.xx configuration problem</title><link>https://devzone.nordicsemi.com/thread/163178?ContentTypeID=1</link><pubDate>Fri, 28 Dec 2018 10:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3307fd34-1a11-4197-b3b6-cbc8b56c0e89</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Dear customer,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Due to limited staff during the holiday period, we unfortunately can&amp;#39;t&amp;nbsp;handle your case before we get back to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;normal&lt;span&gt;&amp;nbsp;&lt;/span&gt;staff by the first week of January 2019. We are sorry indeed for the delay. We wish you a great holiday and a Happy New Year 2019.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Nordic&lt;span&gt;&amp;nbsp;&lt;/span&gt;Tech&lt;span&gt;&amp;nbsp;&lt;/span&gt;Support&lt;span&gt;&amp;nbsp;&lt;/span&gt;Team&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>