<?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 exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9822/button-exmaple-is-not-working-in-sdk-version-9-0-0</link><description>Hello evryone, 
 i cloned button example form github to sdk version 9.0.0 and i modified the neccesary changes between app.gpiote.c//nrf_drv_gpiote.c files and set the GPIOTE ENABLED to 0 after that it is getting compiled with no errors but the baord</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2016 09:08:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9822/button-exmaple-is-not-working-in-sdk-version-9-0-0" /><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36461?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 09:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:264ed3ab-e6dc-4cf2-a27f-ec6c3bd1f594</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Thanks for your feedback and your help its so nice of you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36460?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 09:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ce3645-f3f3-4a29-8de9-88d3e60a552c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;its not possible. because after three seconds we have to check that the button is still pressed and then you can either release the button after the 3 seconds or continue to press it for two more seconds. The decision cannot be made until 5 seconds are expired.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36459?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c81470c-2ff5-49d5-accf-7d6497ce4f1b</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;yes thanks you i did that voting but there is no other possible ways to start pwm exactly after 3 sec without 2 sec delay  and turn of after 5 sec with one buton?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36458?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:568ca70b-3472-45e7-8039-1f7187f92a78</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Please accept the case here, and create another one when you need more help. It is not good to keep on extending new questions in the same thread. You accept the answer by pressing the ✓ mark to the left side of the answer i gave you on Dec 7, below the voting down and up voting buttons&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36457?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f6d589-aea6-4974-a34c-e53b35dcf283</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;hello aryan thanks for your reply acually am using the same button for three purposes first press the button for 3 sec then it will turn on pwm  and then if i press the press the button for  5seconds it will trun off the pwm and moreover if  i press the button between three and five seconds it has to send notifcation to the central(android phone about the button pressed state) so inorder to achieve this am usign the same button i did not cut of the code but am ttrying to develp the code with your help aryan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36456?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec0d399c-057d-48e9-a25c-85b8023353d8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Now you have to see the same result as me because our main.c file is same, else you are doing something else and not giving me the full code. I have commented all printfs. Please accept the answer if you see the same result.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36455?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2016 08:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c952bec-5e05-4313-87d4-3ca40c6c53d3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I took your main file and compiled today ... i have no idea what you are trying to do?
The main function should end with while(1){};  .. this is an embedded platform and the main function cannot return. Also your printfs are used before even initializing uart.&lt;/p&gt;
&lt;p&gt;You were using app timer with one shot, so you need not cancel the app_timer_2_sec when you release the button.&lt;/p&gt;
&lt;p&gt;I am uploading the main file that i tested in SDK10. After pressing the button, and i verified that it works with pin 6 as pwm signal.&lt;/p&gt;
&lt;p&gt;NOTE: The side effect of using the same button to detect on and off with timer is that. When you press the button for 3 seconds, the pwm will start 2 with 2 seconds delay. When you press button for 5 seconds, the pwm will stop immediately. This is because the decision is taken after 5 seconds of the button push.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4152.main.c"&gt;main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5076.Capture.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36454?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 13:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:902b1456-4079-4e97-9d43-c83f458f051f</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;I have tried your main file but it is responding poorly i checked with the putty terminal they total 3+2sec timer is getting executed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36453?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 13:37:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:011ea651-3acf-4500-9b02-82bc397b82e9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;please try out the main file i gave you i my last comment and it should work what you need. Please close this case after that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36449?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 12:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4006b162-1198-4cc0-b950-fdb27a6eebbf</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;hello aryan i not like that am sorry dont mistaken me am facing lot of other problems because of that timer issue and i really need your grea inputs to proceed further in my project please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36448?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 12:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be1a65b4-e194-4abd-9dd2-f987e17b3af1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You now have opened a new case regarding the exact same thing we were dealing here.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/69027/how-to-clear-the-timer-handler-issue/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
I have asked you to implement a logic and looking at the main file attached in the new thread, you have not implemented it.
Another problem in your code is that In the pwm_init function you initialize pwm library start pwm, wait for 10ms and stop pwm and uninit the pwm library.&lt;/p&gt;
&lt;p&gt;I am attaching the code fixed with my suggestion. I have not compiled it but you can see the logic i was suggesting.&lt;/p&gt;
&lt;p&gt;edit: removed old main.c file which is outdated and not relavant&lt;/p&gt;
&lt;p&gt;I will close the other case as duplicate.
I can see that you are not happy with my inputs here, even though i have spent hours on trying to explain you things in detail. So I will stop looking into this case from now. Wish you good luck with your project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36452?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 08:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b26402f4-e1f9-4ff1-bc58-b65092b00aa9</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Thfor your feedback and suggestion i will try to implement that logic and meanwhile could you give me some solution for overcome this isssue  if possible it would be really helpful for me to proceed further
&lt;a href="https://devzone.nordicsemi.com/question/68827/ble_lbs-always-indicating-button-pressed-state/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36451?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 08:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:084dd2fd-bea5-4a1f-bb32-fb778d576cf1</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;When you are using the same button for recognizing 3 seconds push and 5 seconds push then it is normal that it is getting confused when you 3 seconds are expired.&lt;/p&gt;
&lt;p&gt;t
You can change your logic like this.
When you press the button, start the 3 second timer. When the 3 sec timer expires and its callback is called, check if the button is still pressed, If it is still shows that the button is pressed, start 2 seconds timer. When the two seconds timer expires and the callback is called, check again if the button is being pressed. If it is not pressed, then it was 3 seconds push and start the buzzer. If it is still being pressed it is a 5 second push so stop the buzzer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36404?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 08:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c70050a-a39d-495d-91b8-c02a5959abad</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;yes am still facing a lot of problems concerning the timer issue i am using 2 timers one for 3sec and another for 5 sec but the real problem is when i press the button for 3 sec it is making buzzer beep and whenever i press the button for 5 sec it is making buzzer beep when it reaches 3 sec and at the end of 5 sec it turns of device could you tell me how to resolve this issue i want buzzer to be beeped only for 3 sec timer not for 5 sec timer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36450?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 07:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e59526-1d11-4c2f-9731-1c8330cb32f4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;has there been any progress prabhu here? I am working from home today, so i will not get a chance to run your project as i do not have any devices here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36447?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 10:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cad17b63-69ac-4bb9-b252-2025b2a673ef</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;my question concerning to how make the android phone ring by pressing the button is similar to thi question&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/68643/how-to-make-a-phone-ring-via-nrf51dk-button-press/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36446?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 10:03:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2da93123-d9a3-48f9-9f1f-1a0825f6a111</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Hello Aryan as i am right now focusing on using only on SDK 9 because i dont want to waste more time by fixing the issue between SDK9 and sdk10 But am not able to find the issue in the above program it is not even getting executed in sdk10&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36445?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2016 09:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6b1d76-302d-49ea-83d7-d6d5b2243176</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;did you have any progress in this Prabhu?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36444?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 10:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6924ccbd-cd34-4cbb-bf96-3dfd58bf07e6</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Thanks i have uploaded the project as you see in the project it is working well for the SDK 9 and the sdk 10 it is not even getting executed and when i press the button for 3sec  it turns on   the buzzer and start advertsing and if i press the same button for 5 sec it is stop advertsing and also again the buzzer beeps when it cross the 3sec so could you tell me how cna i stop the buzzer wheni press the button for 5sec&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36443?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 10:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5bb7d6e-2f09-44db-bff5-6732ce6b0f0f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;edit your question and add it as an attachment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36442?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 09:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fba48348-3409-4bcb-be17-bf13fcbd9231</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;could you please tell me how can i send you the full updated project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36441?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2016 09:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8146bafa-a206-4e0d-9019-922751bad8a3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;i need your full updated project to see this, so that i can save some time to recreate your settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36440?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 14:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8230a52-5096-4f25-8112-f436d26dcd25</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;Hello aryan i was able to manage the PWM functions in the program but the real issue is when i modifed the program for the SDK10 it is not getting bonded only its get connected after if i select bond it is not getting disconnected could you please verify the issue i almost verified each and everything but not able to find the issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36435?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 13:30:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf220821-81fd-4f5c-94a5-d643908b2954</guid><dc:creator>MARTIN FR</dc:creator><description>&lt;p&gt;can you please tell me how can i make the pin 6 and pin 7 as output(high impedance state )only during the button press event and it  has to be connected to low impedance state (GND ) except the button press event&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button exmaple is not working in SDK version 9.0.0</title><link>https://devzone.nordicsemi.com/thread/36434?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2015 12:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31329b9a-b30d-4307-9e92-6dc434fead2e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I think it will tell the polarity of PWM signal which is important to set its initial state
active high means that the pin is value with start will logic 0. I am not 100% sure about it so i might be wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>