<?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>Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89010/cannot-configure-port-1-pin-8</link><description>Hello, 
 I need to use Port 1 pin 8 as an interrupt pin: 
 
 This results in the error NRF_ERROR_INVALID_STATE, when nrf_drv_gpiote_in_init() is called. Everything works fine, if I use a port 0 pin. What can be the problem with using port 1? 
 I&amp;#39;m using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jun 2022 06:07:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89010/cannot-configure-port-1-pin-8" /><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/373571?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 06:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f8c62d-ae01-43ca-9d7c-9beeab773163</guid><dc:creator>IstvanS</dc:creator><description>&lt;p&gt;That&amp;#39;s right, thank you for pointing it out! I also should have noticed, my bad.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/373356?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 06:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd4e3870-385c-4737-839d-e528a1a5d81c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My bad, I did not notice before that you are using the nRF52832. There is no port 1 on the nRF52832, so it is correct and expected that you get an error when trying to configure port 1 pins (as they do&amp;nbsp;not exist).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/373223?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 12:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f64e6415-ebb6-48af-bd8c-6cfddde9cec7</guid><dc:creator>IstvanS</dc:creator><description>&lt;p&gt;I&amp;#39;ve tested it with a clean Blinky example project using my custom board and a clean Blinky example project using the PCA10040 dev kit (same SoC on both boards). Same error in all cases with port 1 pin. All works with a port 0 pin. Can there be something with the Blinky example? Can you also verify, that the Blinky example works/fails with a port 1 pin configured for GPIOTE?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(I&amp;#39;m using the nRF52832, SDK 17.1.0, SoftDevice S132 7.2.0)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/372957?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 08:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1295c01-9376-44f8-8078-ca74281f0736</guid><dc:creator>IstvanS</dc:creator><description>&lt;p&gt;No, this pin is not used anywhere else. It works with other pins, so it might be some &amp;quot;hidden&amp;quot; configuration or project related problem. I&amp;#39;ll try it with a clean example project as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/372945?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 08:03:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd6e7df-e78f-4e9b-800d-5fc8f4833e93</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Some examples define pins outside of the board file, but I cannot say what is the case in your code without seeing it. Do you use your&amp;nbsp;INT_PIN anywhere else? If you cannot find it, perhaps you can add some code in the implementation of nrf_drv_gpiote_in_init() that checks if pin P1.8 (40) is initiated, and set a breakpoint on it? That way you could check the stack trace to see where it comes from.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/372929?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 07:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19e075ef-54e1-4082-b0c5-812e3221d593</guid><dc:creator>IstvanS</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply! I&amp;#39;m using SDK 17.1.0. I&amp;#39;ve tried it with an other pin at port 1 and it works. This is my board definitions:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef CUSTOM_BOARD_H
#define CUSTOM_BOARD_H

#ifdef __cplusplus
extern &amp;quot;C&amp;quot; {
#endif

#include &amp;quot;nrf_gpio.h&amp;quot;

#define BUTTONS_NUMBER 2

#define BUTTON_1       NRF_GPIO_PIN_MAP(0, 3)
#define BUTTON_2       NRF_GPIO_PIN_MAP(0, 28)
#define BUTTON_PULL    NRF_GPIO_PIN_PULLUP

#define BUTTONS_ACTIVE_STATE 0

#define BUTTONS_LIST { BUTTON_1, BUTTON_2 }

#define SCL_PIN             	NRF_GPIO_PIN_MAP(0, 24)
#define SDA_PIN             	NRF_GPIO_PIN_MAP(0, 25)
#define INT_PIN				    NRF_GPIO_PIN_MAP(1, 8)

#ifdef __cplusplus
}
#endif

#endif // CUSTOM_BOARD_H&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Port 1 pin 8 isn&amp;#39;t defined anywhere else, so I don&amp;#39;t know how it could be already in use. Is there anything else in the SDK, which has to do with&amp;nbsp;pin definitions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot configure Port 1 Pin 8</title><link>https://devzone.nordicsemi.com/thread/372829?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2022 13:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1893c1f2-85e9-42ea-8de3-fbb029a65159</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nrf_drv_gpiote_in_init() will return&amp;nbsp;NRFX_ERROR_INVALID_STATE if the pin is already used (Only one GPIOTE channel can be assigned to one physical pin), so I suspect that is what you are seeing.&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? (To double check I took the pin changed interrupt example form SDK 17.1.0 and changed the input pin to P1.08, and that worked as expected, so there does not seem to be a bug with port 1 specifically in that version, at least.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>