<?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>nrfx_gpiote_init undefined reference</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45828/nrfx_gpiote_init-undefined-reference</link><description>Hi, 
 I have shifted from Arduino to nrf. Arduino is straight forward and with very less dev time. I understand this is way more powerful and next level platform, but does it have to be so painful to work on this platform? 
 
 From the past four hours</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Apr 2019 15:33:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45828/nrfx_gpiote_init-undefined-reference" /><item><title>RE: nrfx_gpiote_init undefined reference</title><link>https://devzone.nordicsemi.com/thread/180549?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 15:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db092f31-53df-4a29-bfe7-aa928026c6be</guid><dc:creator>ifithegr8</dc:creator><description>&lt;p&gt;For people out there they need to do the following.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Include file from &lt;strong&gt;nRF5_SDK\modules\nrfx\drivers\src\nrfx_gpiote.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. Copy `sdk_config.h` text&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//==========================================================
// &amp;lt;e&amp;gt; GPIOTE_ENABLED - nrf_drv_gpiote - GPIOTE peripheral driver - legacy layer
//==========================================================
#ifndef GPIOTE_ENABLED
#define GPIOTE_ENABLED 1
#endif
// &amp;lt;o&amp;gt; GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins 
#ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif

// &amp;lt;o&amp;gt; GPIOTE_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef GPIOTE_CONFIG_IRQ_PRIORITY
#define GPIOTE_CONFIG_IRQ_PRIORITY 6
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
//==========================================================
#ifndef NRFX_GPIOTE_ENABLED
#define NRFX_GPIOTE_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins 
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#endif

// &amp;lt;o&amp;gt; NRFX_GPIOTE_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
#define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 6
#endif

// &amp;lt;e&amp;gt; NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
#define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRFX_GPIOTE_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
#define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; NRFX_GPIOTE_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_GPIOTE_CONFIG_INFO_COLOR
#define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRFX_GPIOTE_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
#define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;/e&amp;gt; REMOVE ME OR ELSE CMSIS WILL NOT WORK
// &amp;lt;/h&amp;gt; &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;3. Remove one // &amp;lt;/e&amp;gt; from bottom of text out of 2 otherwise CMISS wont work&lt;/p&gt;
&lt;p&gt;4. Go armgcc folder and open makefile. in SRC files add&amp;nbsp;&lt;strong&gt;$(SDK_ROOT)/modules/nrfx/drivers/src/nrfx_gpiote.c \&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Too much to do for a simple task.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_gpiote_init undefined reference</title><link>https://devzone.nordicsemi.com/thread/180545?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 15:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba4f9912-4c8c-47b6-95c2-bfcec15aaf98</guid><dc:creator>ifithegr8</dc:creator><description>&lt;p&gt;That is what I had previously. The errors are interesting&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_gpiote_init undefined reference</title><link>https://devzone.nordicsemi.com/thread/180544?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 15:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d97b455-3bce-4e6d-82e1-cbc8ee5a7f5b</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;The simplest way is probably going to be to change the function calls in your original message to nrf_drv_gpiote_ rather than nrfx_gpiote_&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_gpiote_init undefined reference</title><link>https://devzone.nordicsemi.com/thread/180543?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 15:13:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db1f795f-2cb6-4d20-9159-3f6b57e09c99</guid><dc:creator>ifithegr8</dc:creator><description>&lt;p&gt;It is enabled in sdk_config. What source file are you referring? the example uses&amp;nbsp;&lt;span&gt;nrf_drv_gpiote..h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_gpiote_init undefined reference</title><link>https://devzone.nordicsemi.com/thread/180542?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 15:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cab6237-d0b3-485c-be6d-e84f61303217</guid><dc:creator>Patrick</dc:creator><description>&lt;p&gt;It looks like you have either forgotten to add #include nrfx_gpiote.h to your source file or you have not added the nrfx_gpiote files to your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check your sdk_config.h for nrfx_gpiote and make sure it is enabled. While you&amp;rsquo;re there you can also delete references to nrf_drv_gpiote.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>