<?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>[button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8503/button-debouncer-nrf51822</link><description>Hello Nordic~ 
 I want to control button debouncing on my nrf51822 based custom board. I went through the button_debounce example found in [Board/nrf6310/debounce_example........] 
 I tried to run it on my custom board with nrf51822+SD110; but its not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Aug 2015 05:47:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8503/button-debouncer-nrf51822" /><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31044?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2015 05:47:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e6958f4-e120-4d53-9e85-ad68cd955a2b</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi Aryan,
Thanks for your help so far.
Actually my question is mainly related to [Button bouncing control]. How can I see the bouncing phenomenon when button is pressed on this example or any other more specifically prepared for Button bouncing application. Please suggest. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31043?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 08:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4ffe8d0-079d-495d-bb0d-c8f8a845ecb0</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Sure, Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31042?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 08:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8b11a90-cd41-4805-916a-25251e66db04</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;app_gpiote.c is a library which gives little more functionality than a driver and nrf_drv_gpiote.c is driver which just abstracts the hardware.&lt;/p&gt;
&lt;p&gt;Ideally app_gpiote.c should have used nrf_drv_gpiote.c but it did not, which is a bug and hence you had to modify those files. If everything works for you can you please accept this answer by clicking the ✓ left to the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31041?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 07:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54448a6c-ddb2-410c-91ff-f6d5eb22a599</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi Aryan~&lt;/p&gt;
&lt;p&gt;Thanks a lot. I can see it working. There is very important role of configuring the software packs.&lt;/p&gt;
&lt;p&gt;well, could you plz tell me, what is the main difference between [app_gpiote.c and nrf_drv_gpiote.c] ?&lt;/p&gt;
&lt;p&gt;Thanks for your great help and efforts.&lt;/p&gt;
&lt;p&gt;Regards/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31040?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 07:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c847869d-b85f-45f4-8e0b-304625e46b67</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;damn, some magic of packs has removed all the work I did. I will send you clearer instructions soon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31039?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 07:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa718a55-c4c6-4d05-9b6a-b5bb4aa9b89a</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi Aryan,
In the case old Github app-button application, I didnt find any packet missing error but its showing the error of &lt;em&gt;[RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error:  #5: cannot open source input file &amp;quot;nrf_drv_gpiote.h&amp;quot;: No such file or directory]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In case of your fixed -app-button application, showing same error while compiling [RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error:  #5: cannot open source input file &amp;quot;nrf_drv_gpiote.h&amp;quot;: No such file or directory], though the file [nrf_drv_gpiote.h] is already there.&lt;/p&gt;
&lt;p&gt;Also showing &lt;strong&gt;&amp;quot;Device&amp;quot; and &amp;quot;nRF_Libraries&amp;quot;&lt;/strong&gt; with red cross sign on green square icon (Manage Run-Time Environment]. After loading the missing packets too, its showing the red cross on these two Device and nRF Library.&lt;/p&gt;
&lt;p&gt;Please suggest some solution.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31038?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 04:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce993a55-8dc6-43a4-b836-faf85932f216</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;maybe you are missing some pack modules? go to the packs selector (this green button on top-middle of your keil editor) and select any missing modules, unfortunately I do not use packs much, so I do not know what might go wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31037?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 00:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad96eed6-cacf-404a-8fb1-d7dba2c10a9b</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi Aryan,
Sorry, still m facing the same error while compiling it from SDK_8.1.0 folder, not from keil. Its showing the dependency error in &amp;quot;Device&amp;quot; and &amp;quot;nRF_Libraries&amp;quot;.
Please suggest~
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31036?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 12:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad9428fb-d40c-4d68-86b9-c882628917bf</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have this dependency, you can download SDK8.1, extract it and extract the zip i attached to CnRF51_SDK_8.1.0_b6ed55f\examples\ble_peripheral.&lt;/p&gt;
&lt;p&gt;Do not run it inside the Keil folder, i am not sure how those dependencies work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31035?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 11:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:760e8625-5230-4017-9cc1-011ef6a2a39c</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Thanks Aryan for the clarification.
but in my case when I try your fixed standalone project...its shows &amp;quot;manage run time environment error for &amp;quot;Device&amp;quot; and for &amp;quot;nRF_Libraries&amp;quot;. I simply try to download project zip file and placed at &lt;em&gt;[Keil5\ARM\Devices..........\SDK_8.1.0....\ble_peripheral]&lt;/em&gt;; showing the same error while compiling: &lt;em&gt;[RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error:  #5: cannot open source input file &amp;quot;nrf_drv_gpiote.h&amp;quot;: No such file or directory]]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Do I need to add something more?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31034?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 09:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3a28806-7642-4cd7-be58-47a1a8d257b6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I see your problem, you have to add nrf_drv_gpiote and nrf_drv_common packs to the project.
Also nrf_drv_config.h-&amp;gt;you have to change GPIOTE_ENABLED to 1&lt;/p&gt;
&lt;p&gt;There is also a merge conflict with GPIOTE_IRQHandler() mentioned here
&lt;a href="https://devzone.nordicsemi.com/question/40670/sdk81-app_gpiote-and-nrf_drv_gpiote-conflict/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have fixed all for you and made a standalone project, attached in my answer, this does not need softdevice, so if you have one then do &amp;quot;nrfjprog -e&amp;quot; on you command prompt before flashing this application-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31033?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 09:12:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f56c18a-0aa3-414d-986e-219a2f32e3f7</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi Aryan,&lt;/p&gt;
&lt;p&gt;Thanks, I tried this too using SDK8.1.0; still showing the same error. :(&lt;/p&gt;
&lt;p&gt;Also configured IROM and IRAM as you suggested.&lt;/p&gt;
&lt;p&gt;Please help. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31032?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 08:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e7d61f3-b5be-4905-bc1d-b2cdb2395dd2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf51_2D00_app_2D00_button_2D00_example_2D00_master.zip"&gt;nrf51-app-button-example-master.zip&lt;/a&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6330.Capture.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4604.Capture1.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Then go to nrf_drv_config.h and  set&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define GPIOTE_ENABLED 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then you need fixes from &lt;a href="https://devzone.nordicsemi.com/question/40670/sdk81-app_gpiote-and-nrf_drv_gpiote-conflict/"&gt;here&lt;/a&gt;. The project I attached has fixed app_gpiote.c file, and you need to replace your nrf_drv_gpiote.c file with &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf_5F00_drv_5F00_gpiote.c"&gt;nrf_drv_gpiote.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Tell me if this works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31031?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 08:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c941a8a7-8896-4558-a885-3a32535c150c</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi~&lt;/p&gt;
&lt;p&gt;Thanks for clearing my confusion. I am trying the second link example now. I also configured it as you suggested using IROM and IRAM setting, but its not compiling well. Showing error:&lt;/p&gt;
&lt;p&gt;[RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error: #5: cannot open source input file &amp;quot;nrf_drv_gpiote.h&amp;quot;: No such file or directory]; Please suggest.&lt;/p&gt;
&lt;p&gt;Where this file is located ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31028?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 06:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d79c816b-47c8-48ba-a285-673778990a19</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The first link you provided is from SDK 4.x, which is very very very old. Why are you using such old examples?
The second link in the GitHub is for SDK 8.0, so you have to download S110 from
SDK8.0\components\softdevice\s110\hex and make sure that the &lt;a href="https://devzone.nordicsemi.com/question/31703/nrf51822-iram-and-irom-settings-for-s110-sd/"&gt;IROM and IRAM&lt;/a&gt; values in your debounce application project are set correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31030?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 01:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdae8a0a-2fa9-4788-9be7-1ef83bc3e56f</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;Hi Aryan,&lt;/p&gt;
&lt;p&gt;Thanks for your reply~&lt;/p&gt;
&lt;p&gt;well, I am just trying the application program (button-debounce) on sd110 from here &lt;em&gt;[https://devzone.nordicsemi.com/documentation/nrf51/4.4.1/html/group__debouncer__example.html]&lt;/em&gt;.
I am not changing the soft device program. I just want to know how can I try the &amp;quot;button debounce&amp;quot; example to understand, if any.&lt;/p&gt;
&lt;p&gt;later I tried this:  &lt;em&gt;[https://github.com/NordicSemiconductor/nrf51-app-button-example]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;During compiling, it showing error: &lt;em&gt;[RTE\nRF_Libraries\nRF51422_xxAC\app_button.c(19): error:  #5: cannot open source input file &amp;quot;nrf_drv_gpiote.h&amp;quot;: No such file or directory]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I am confusing in both the examples, which one I have to follow to understand the &amp;quot;de-bouncing functionality of button.&lt;/p&gt;
&lt;p&gt;Please clear. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [button debouncer nrf51822]</title><link>https://devzone.nordicsemi.com/thread/31029?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 11:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9679615c-7e7d-4fb2-a809-ce0537f7eb56</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Debounce example is made to be standalone. If you want it to work with the softdevice then you have to set the &lt;a href="https://devzone.nordicsemi.com/question/31703/nrf51822-iram-and-irom-settings-for-s110-sd/"&gt;IRAM and IROM&lt;/a&gt; settings correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>