<?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>nrf connect sdk on nrf9161 using GPIOTE fails to build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123242/nrf-connect-sdk-on-nrf9161-using-gpiote-fails-to-build</link><description>I want to use gpiote and functions like: 
 - nrfx_gpiote_input_configure
 
 - nrfx_gpiote_in_event_enable 
 
 This is added to the top of my document: 
 
 #include &amp;lt;nrfx_gpiote.h&amp;gt; 
 
 
 
 However, my build says: 
 &amp;#39;nrfx_gpiote_in_event_enable&amp;#39; was not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Jul 2025 12:07:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123242/nrf-connect-sdk-on-nrf9161-using-gpiote-fails-to-build" /><item><title>RE: nrf connect sdk on nrf9161 using GPIOTE fails to build</title><link>https://devzone.nordicsemi.com/thread/543607?ContentTypeID=1</link><pubDate>Fri, 25 Jul 2025 12:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf0ced45-0a7e-4b07-938f-56f9b5ec0b77</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;&lt;code&gt;&lt;span&gt;&amp;#39;nrfx_gpiote_in_event_enable&amp;#39; was not declared in this scope; did you mean &amp;#39;nrfy_gpiote_event_enable&amp;#39;&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;Why is that&amp;#39;&amp;#39;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;From the NCS v2.5.2, the NRFX GPIOTE driver API has changed.&amp;nbsp;The function&amp;nbsp;&lt;code dir="ltr"&gt;nrfx_gpiote_in_event_enable&lt;/code&gt;&amp;nbsp;is no longer available. You should use these&amp;nbsp;&lt;code dir="ltr"&gt;nrfx_gpiote_input_configure&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code dir="ltr"&gt;nrfx_gpiote_trigger_enable functions instead&amp;nbsp;&lt;/code&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.5.2/page/nrfx/drivers/gpiote/driver.html"&gt;GPIOTE driver&lt;/a&gt;. It&amp;#39;s also mentioned here&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112726/warning-implicit-declaration-of-function-nrfx_gpiote_in_uninit-did-you-mean-nrfx_gpiote_pin_uninit-on-ncs-v2-5-2"&gt;(+) warning: implicit declaration of function &amp;#39;nrfx_gpiote_in_uninit&amp;#39;; did you mean &amp;#39;nrfx_gpiote_pin_uninit&amp;#39;? on ncs v2.5.2 - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;And for the second error, you can not set&amp;nbsp;&lt;code dir="ltr"&gt;CONFIG_NRFX_GPIOTE=y&lt;/code&gt;&amp;nbsp;in&amp;nbsp;&lt;code dir="ltr"&gt;prj.conf&lt;/code&gt;&amp;nbsp;in NCS v2.7.0+; use&amp;nbsp;&lt;code dir="ltr"&gt;CONFIG_NRFX_GPIOTE0&lt;/code&gt;&amp;nbsp;or&amp;nbsp;&lt;code dir="ltr"&gt;CONFIG_NRFX_GPIOTE1&lt;/code&gt;&amp;nbsp;if needed. You can read this case&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116250/upgrading-toolchain-sdk-from-2-5-2-to-2-7-0-error-with-gpiote"&gt;(+) Upgrading ToolChain/SDK from 2.5.2 to 2.7.0 error with GPIOTE - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>