<?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>app_gpiote_user_register doesn&amp;#39;t work with nRF52 SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13144/app_gpiote_user_register-doesn-t-work-with-nrf52-sdk</link><description>My code is as follows: 
 APP_GPIOTE_INIT(4);
retcode = app_gpiote_user_register(&amp;amp;gpioID, 0, (1 &amp;lt;&amp;lt; INT_PIN_MAXIM), interrupt); 
 The latter function call seems to fail with retcode == NRF_ERROR_NO_MEM. When I look at the documentation, it says: 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 May 2016 11:09:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13144/app_gpiote_user_register-doesn-t-work-with-nrf52-sdk" /><item><title>RE: app_gpiote_user_register doesn't work with nRF52 SDK</title><link>https://devzone.nordicsemi.com/thread/50105?ContentTypeID=1</link><pubDate>Fri, 13 May 2016 11:09:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a073e9d5-09f6-448e-8e37-846750ba06e1</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Thanks for that hint! I my case the problem was caused maybe because of stack overflows within freeRTOS tasks. The problem disappeared when I adjusted the stack size parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_gpiote_user_register doesn't work with nRF52 SDK</title><link>https://devzone.nordicsemi.com/thread/50104?ContentTypeID=1</link><pubDate>Thu, 12 May 2016 17:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4464a1ef-ceea-416e-8938-bfd101f165a1</guid><dc:creator>fung</dc:creator><description>&lt;p&gt;I encountered the similar issue and finally found that there is an Macro declaration in nrf_drv_config.h that limited an array size that handling gpiote user registration. The macro is GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS which is set to a value of 4. However, it is due to the SDK has already registered 4 buttons, the array has used up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_gpiote_user_register doesn't work with nRF52 SDK</title><link>https://devzone.nordicsemi.com/thread/50101?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 11:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb66b58-c8f5-4cbc-925b-bf97c6668566</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So channel_port_alloc returns NO_CHANNELS. If you examine channel_port_alloc(), can you figure out why?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_gpiote_user_register doesn't work with nRF52 SDK</title><link>https://devzone.nordicsemi.com/thread/50103?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 10:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7bd25c-6d25-48f4-9e82-7ad23759c153</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Thanks for commenting! The code does not fail in that, I just edited the question to show where the error is hit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_gpiote_user_register doesn't work with nRF52 SDK</title><link>https://devzone.nordicsemi.com/thread/50102?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 09:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b20dd8-99fb-4672-be72-d818b7c4766e</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Firstly, you should use the alpha version. You should use SDK 11 with S132 2.0.0.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing this comming from:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (m_user_count &amp;gt;= m_user_array_size)
{
    return NRF_ERROR_NO_MEM;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;inside app_gpiote_user_register().&lt;/p&gt;
&lt;p&gt;If you init with 4, m_user_array_size should be 4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>