<?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>GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51321/gpiote-input-pins-dont-work</link><description>Hello, 
 I use NRF52810 with SDK 14.2.0 and softdevice 112. I need to use 7 input pins, but if I config more than 3 pins, all signals disappear. 
 GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS is setted to 7. My configuration for each pins is like below:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Sep 2019 07:30:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51321/gpiote-input-pins-dont-work" /><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/207287?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 07:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b38220-3762-4962-8c94-e130ed4b5565</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;No, I used HITOLOW or LOWTOHI mode.&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/206512?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 07:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7749e3-ebd4-439f-ae04-3f2a35381b73</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is good news. I didn&amp;#39;t understand exactly what the issue was. Didn&amp;#39;t you already use toggle?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/206425?ContentTypeID=1</link><pubDate>Tue, 27 Aug 2019 14:34:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a67882-9138-45ba-a6fa-0c1469eeeb42</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;I dont now, why RTT Viewer doesnt work. But I find the &lt;span class="gt-baf-term-text"&gt;&lt;span class="gt-baf-cell gt-baf-word-clickable"&gt;solution! My problem is the same as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18230/gpiote-interrupt-nrf51822-freezing"&gt;this&lt;/a&gt; .&amp;nbsp; Now all is well.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/206025?ContentTypeID=1</link><pubDate>Mon, 26 Aug 2019 07:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7fdd455-6edd-4d7d-9918-43156423dc38</guid><dc:creator>Edvin</dc:creator><description>[quote user="LeonardPak"]and rtt logging with RTT Viewer doesnt work.[/quote]
&lt;p&gt;&amp;nbsp;Why?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="LeonardPak"]I use define DEBUG, but I havent got hard error.[/quote]
&lt;p&gt;Do you mean that it doesn&amp;#39;t stop on line 73 in app_error.c?&lt;/p&gt;
&lt;p&gt;If you want to check whether it is the application that contains a bug or not, you can try your project on a DK, and just test by shorting GND to the pins that you use as input (remember to set pullup in the configuration, since the DK doesn&amp;#39;t have external pull-up resistors).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205928?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 14:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2a1efa9-1c58-477d-973a-9a349e676181</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;NRF_LOG_ENABLED is set.&lt;/p&gt;
&lt;p&gt;I can not use logging, because it`s a custom board,&amp;nbsp; and it hasnt got any external pin for uart logging and rtt logging with RTT Viewer doesnt work.&lt;/p&gt;
&lt;p&gt;I use define DEBUG, but I havent got hard error.&lt;/p&gt;
&lt;p&gt;Now, I trying to find mistake in the board. Maybe, it is not problem in the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205904?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 13:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54cba083-ba42-46ba-8d2f-bf2f60536319</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. And NRF_LOG_ENABLED is 0 or 1?&lt;/p&gt;
&lt;p&gt;The reason I ask is because it sounds like somewhere in the project the application &amp;quot;crashes&amp;quot;, and the most common reason is because an APP_ERROR_CHECK(err_code) receives an err_code != 0.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what HW you are testing on, but if you can connect an UART to it (if it is a DK, then it is connected to the on board Segger chip). Alternatively you can use the RTT backend if you have a segger debugger. You can use &lt;a href="https://www.segger.com/products/debug-probes/j-link/tools/rtt-viewer/" rel="noopener noreferrer" target="_blank"&gt;JLink RTT Viewer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The error handler is a very useful tool while developing, and one way is to monitor it via the log. It will let you know if APP_ERROR_CHECK() receives != 0.&lt;/p&gt;
&lt;p&gt;Another way is to define DEBUG in your preprocessor defines and set a breakpoint on line 73 in the app_error.c. But you may need to disable optimization to see what err_code it was and where it occured.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205869?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 11:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac532733-a0bc-4de6-bb5c-d9d884809d7a</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;Yes. I have this function and log_init(), but dont undestand, how it can help me.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;h&amp;gt; nRF_Log 

//==========================================================
// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
//==========================================================
#ifndef NRF_LOG_BACKEND_RTT_ENABLED
#define NRF_LOG_BACKEND_RTT_ENABLED 0
#endif
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings. 
// &amp;lt;i&amp;gt; Size of the buffer is a trade-off between RAM usage and processing.
// &amp;lt;i&amp;gt; if buffer is smaller then strings will often be fragmented.
// &amp;lt;i&amp;gt; It is recommended to use size which will fit typical log and only the
// &amp;lt;i&amp;gt; longer one will be fragmented.

#ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
#define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
#endif

// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
//==========================================================
#ifndef NRF_LOG_BACKEND_UART_ENABLED
#define NRF_LOG_BACKEND_UART_ENABLED 1
#endif
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin 
#ifndef NRF_LOG_BACKEND_UART_TX_PIN
#define NRF_LOG_BACKEND_UART_TX_PIN 6
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205866?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 11:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39ed25df-f96f-479f-8b9d-244a06e53f42</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;If you use one of the examples with BLE, then you probably see some calls to NRF_LOG_INFO(); in the project, do you?&lt;/p&gt;
&lt;p&gt;What is the following defines set to in your sdk_config.h:&lt;/p&gt;
&lt;p&gt;NRF_LOG_ENABLED&lt;br /&gt;NRF_LOG_BACKEND_UART&lt;br /&gt;NRF_LOG_BACKEND_RTT&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205865?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 11:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92950bd0-602d-47da-a9d9-9235d7926398</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;What do you mean by logging?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &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 8
#endif&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205849?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 10:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c366ec9-c2fe-4068-8367-d160824d3b45</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What is your&amp;nbsp;GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS defined to in sdk_config.h?&lt;/p&gt;
&lt;p&gt;And do you have logging enabled? Can you please try to define DEBUG in your preprocessor defines, and monitor the log? Does the log say anything?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205821?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 09:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f02756f7-0df3-4f6e-a6d7-fd64380adb03</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;Input pin has external pullup, no pullup settings in code. It switche like this &lt;a href="https://www.digikey.com/product-detail/en/panasonic-electronic-components/ESE-22MV21/P122547-ND/749938"&gt;ESE22MV21&lt;/a&gt; . And it pulls down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205814?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 09:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:099ca8d8-174f-44b1-84fc-9710a9f3adf2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;How about your pullup/down settings on the input pins? How do you trigger the pins? The thing that you use to trigger them, does it pull up or down?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205803?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:51:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281a6e7d-33c9-4aa5-a5e0-dd22bdb8db79</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;err_code = 0 always. I have found than it doesnt connect with number of pins. So, if i config some pin (for example, 31), &lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;response &lt;/span&gt;&lt;/span&gt;of&amp;nbsp; GPIOTE_IRQHandler will &lt;span lang="en"&gt;&lt;span title=""&gt;disappear. State in IN register is&amp;nbsp;toggled, but CNF-&amp;gt;SENS&amp;nbsp; doesnt react &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205796?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e6cd40-9bfe-47a6-b5e9-802d07efd3c9</guid><dc:creator>LeonardPak</dc:creator><description>&lt;p&gt;No.&amp;nbsp; it`s right.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205786?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 08:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60506065-9e2c-472d-8929-736491cc4373</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]but if I config more than 3 pins, all signals &lt;span lang="en"&gt;&lt;span title=""&gt;disappear.&lt;/span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;It sounds like your error handler catches something. Have you tried to debug?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Probably one of your APP_ERROR_CHECK(err_code) receives an err_code != 0. Turn off optimization to&amp;nbsp; be able to see the value of err_code while debugging, and set breakpoints on APP_ERROR_CHECK(). Which one has an err_code != 0?&lt;/p&gt;
&lt;p&gt;(NRF_SUCCESS = 0)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GPIOTE input pins dont work</title><link>https://devzone.nordicsemi.com/thread/205699?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 18:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dcee838-7035-44bc-addc-a02a29380ad1</guid><dc:creator>tommy.lane</dc:creator><description>&lt;p&gt;Just a guess, but make sure you&amp;#39;re using the digital pin numbers, not the physical pin numbers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>