<?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 event handler not firing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6038/button-event-handler-not-firing</link><description>Hello EveryOne 
 My button event handler is not being called. following is my code what can be the problem. 
 uint32_t err_code;


 ble_stack_init();

 timers_init();

 APP_GPIOTE_INIT(1);	

 buttons_init();

 device_manager_init();

 gap_params_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2015 14:35:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6038/button-event-handler-not-firing" /><item><title>RE: button event handler not firing</title><link>https://devzone.nordicsemi.com/thread/21120?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 14:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4992538-2c8d-4de8-8e07-17cbdacef0a5</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Can you check content of the flash area that you are writing after you have written it with the methods that I pointed to earlier? Do you get a callback for the pstorage operation indicating that it is complete? Set a breakpoint in the pstorage callback function to see that the callback is received. If it is received, read the memory content with nrfjprog as instructed on the linked thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button event handler not firing</title><link>https://devzone.nordicsemi.com/thread/21119?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 04:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3487f5f-43fa-4d26-81b1-7733c0bf6f8e</guid><dc:creator>asma</dc:creator><description>&lt;p&gt;I am using SDK 7.1.0 and S110 . my example is pretty much like the one you shared.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button event handler not firing</title><link>https://devzone.nordicsemi.com/thread/21118?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2015 14:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a024d102-25cd-4a5d-ad07-2c65ff201b52</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Asma&lt;/p&gt;
&lt;p&gt;I am not sure why your pstorage is not working together with app_button library. Does the app_button operation by any chance block the operation of the flash operation? What do you do in your app_button handler?&lt;/p&gt;
&lt;p&gt;You could find out if your pstorage operation is actually writing something to flash, see &lt;a href="https://devzone.nordicsemi.com/question/22791/how-to-preserve-app-data/?comment=22989#comment-22989"&gt;this thread&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is an example code &lt;a href="https://devzone.nordicsemi.com/question/15271/how-can-i-write-10kb-of-data-to-internal-flash/?answer=17300#post-id-17300"&gt;here&lt;/a&gt; for pstorage. Perhaps you can compare your code with that code.&lt;/p&gt;
&lt;p&gt;What SDK and SD are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button event handler not firing</title><link>https://devzone.nordicsemi.com/thread/21117?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 06:08:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed19bf2c-3906-4133-8919-dc7f285ea8d3</guid><dc:creator>asma</dc:creator><description>&lt;p&gt;my code is working now... in one of my initialization i was using bsp_configurations i.e bsp_buttons_enable after commenting now its working properly
Now there is some other problem after i add app_buttons my pstorage is not working . initially i used to sore data in pstorage and at the time of boot up i read the data whatever is stored . now its coming to be all 0xFF.
Is there any problem using both together , no other thing is added to the code other than buttons_init and enable.&lt;/p&gt;
&lt;p&gt;Thanks Asma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button event handler not firing</title><link>https://devzone.nordicsemi.com/thread/21116?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 04:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db273294-a10f-4337-a184-fde57ba9801b</guid><dc:creator>asma</dc:creator><description>&lt;p&gt;thank you chris for a reply... but i didnt got any hint.can u plz  let me know. if u have understood.&lt;/p&gt;
&lt;p&gt;Thanks asma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: button event handler not firing</title><link>https://devzone.nordicsemi.com/thread/21115?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2015 19:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b82620aa-9210-4ec0-9f8a-6464ff22888e</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;This is a modified version of Nordics example ble_app_uart and the button presses are working for me.&lt;/p&gt;
&lt;p&gt;Maybe it is will give you a hint why your code is not working.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4174.main.c"&gt;main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I basically just added&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = bsp_buttons_enable(0x0F);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void bspEvent(bsp_event_t event) {
    //debug_printf(&amp;quot;bspEvent: %d\n&amp;quot;, event);
    switch(event) {
    case BSP_EVENT_NOTHING:
          debug_printf(&amp;quot;BSP_EVENT_NOTHING\n&amp;quot;);
          break;
    case BSP_EVENT_CLEAR_BONDING_DATA:
          debug_printf(&amp;quot;BSP_EVENT_CLEAR_BONDING_DATA\n&amp;quot;);
          break;
    case BSP_EVENT_CLEAR_ALERT:
          debug_printf(&amp;quot;BSP_EVENT_CLEAR_ALERT\n&amp;quot;);
          break;
    case BSP_EVENT_DISCONNECT:
          debug_printf(&amp;quot;BSP_EVENT_DISCONNECT\n&amp;quot;);
          break;
    case BSP_EVENT_ADVERTISING_START:
          debug_printf(&amp;quot;BSP_EVENT_ADVERTISING_START\n&amp;quot;);
          break;
    case BSP_EVENT_ADVERTISING_STOP:
          debug_printf(&amp;quot;BSP_EVENT_ADVERTISING_STOP\n&amp;quot;);
          break;
    case BSP_EVENT_BOND:
          debug_printf(&amp;quot;BSP_EVENT_BOND\n&amp;quot;);
          break;
    case BSP_EVENT_RESET:
          debug_printf(&amp;quot;BSP_EVENT_RESET\n&amp;quot;);
          break;
    case BSP_EVENT_SLEEP:
          debug_printf(&amp;quot;BSP_EVENT_SLEEP\n&amp;quot;);
          break;
    case BSP_EVENT_WAKEUP:
          debug_printf(&amp;quot;BSP_EVENT_WAKEUP\n&amp;quot;);
          break;
    case BSP_EVENT_DFU:
          debug_printf(&amp;quot;BSP_EVENT_DFU\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_0:
          debug_printf(&amp;quot;BSP_EVENT_KEY_0\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_1:
          debug_printf(&amp;quot;BSP_EVENT_KEY_1\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_2:
          debug_printf(&amp;quot;BSP_EVENT_KEY_2\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_3:
          debug_printf(&amp;quot;BSP_EVENT_KEY_3\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_4:
          debug_printf(&amp;quot;BSP_EVENT_KEY_4\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_5:
          debug_printf(&amp;quot;BSP_EVENT_KEY_5\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_6:
          debug_printf(&amp;quot;BSP_EVENT_KEY_6\n&amp;quot;);
          break;
    case BSP_EVENT_KEY_7:
          debug_printf(&amp;quot;BSP_EVENT_KEY_7\n&amp;quot;);
          break;
 //   case BSP_EVENT_KEY_LAST:
 //         debug_printf(&amp;quot;\n&amp;quot;);
 //         break;
    
    default:
        debug_printf(&amp;quot;Unknown BSP Event: %d\n&amp;quot;, event);
    }


}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>