<?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>&amp;quot;app_button&amp;quot; functions doesn&amp;#39;t work on  XL1 gpio &amp;quot;P0.00&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43407/app_button-functions-doesn-t-work-on-xl1-gpio-p0-00</link><description>Hello, 
 On my custom board, on nrf52832, I can can use app_buttons for all usual pins, but not the XL1 (P0.00). I didn&amp;#39;t try XL2 (not routed) 
 Using this pin as input or output works fine with standard functions. I use sdk15.2, with softdevice s132</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Apr 2020 01:00:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43407/app_button-functions-doesn-t-work-on-xl1-gpio-p0-00" /><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/246946?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 01:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0d16b8-e4ca-4ff6-8e24-0e3511cef036</guid><dc:creator>Coder_hope</dc:creator><description>&lt;p&gt;thank you very much,I think I should creat my own topic, that would be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/246932?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 18:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db9add39-eda9-402e-96bb-8b3f7b8f01dc</guid><dc:creator>Hugo</dc:creator><description>&lt;p&gt;fine,&lt;br /&gt;you might want to check NRF_GPIO-&amp;gt;PIN_CNF[0]&amp;nbsp; compared to NRF_GPIO-&amp;gt;PIN_CNF[1], after config, and during loop.&lt;br /&gt;If it change, something wrong happened, try to find where.&lt;br /&gt;If it&amp;#39;s not the case, you might need to create you own topic, as it&amp;#39;s not the same bug than me &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;br /&gt;You might have a faster answer from someone from Nordic. Also, you might need to give more details about your problem.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/246778?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 11:16:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fe6a2bc-3207-4442-8a63-a6fa242787c4</guid><dc:creator>Coder_hope</dc:creator><description>&lt;p&gt;Thank you ,I do not use uart&amp;nbsp; and I only use P0.00 to drive LED, I am sure that I didn`t&amp;nbsp; init &amp;quot;NULL&amp;quot; in my gpio`s initlization.&lt;/p&gt;
&lt;p&gt;this bug confused me for days。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/246771?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 11:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07daa963-5bc6-4f25-96e0-6a961c90fe71</guid><dc:creator>Hugo</dc:creator><description>&lt;p&gt;My problem was basically:&lt;br /&gt;-I init the P0 fine&lt;br /&gt;-I accidentally init again P0, though something like:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    app_uart_comm_params_t const comm_params =
    {
        .rx_pin_no    = NULL, //don&amp;#39;t write NULL here but -1
        .tx_pin_no    = TX_PIN_NUMBER,
        .rts_pin_no   = RTS_PIN_NUMBER,
        .cts_pin_no   = CTS_PIN_NUMBER,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;NULL was a very bad idea and &amp;quot;-1&amp;quot; worked much better. I hope this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/246764?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 10:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd87352-a593-4864-ad3a-8e13d07c4b0d</guid><dc:creator>Coder_hope</dc:creator><description>&lt;p&gt;I have the same issue on 52832,without 32.768k,config with this:&lt;/p&gt;
&lt;div&gt;#define NRFX_CLOCK_CONFIG_LF_SRC 0&lt;br /&gt;#define CLOCK_CONFIG_LF_SRC 0&lt;/div&gt;
&lt;div&gt;#define NRF_SDH_CLOCK_LF_SRC 0&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;P0.01 works well,driving a LED,&lt;/div&gt;
&lt;div&gt;P0.00 connected to LED too,but is not undercontrl.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/171146?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 13:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:599520df-0f44-4c0d-9221-a0514d0bccb5</guid><dc:creator>Hugo</dc:creator><description>&lt;p&gt;Thank you.&lt;br /&gt;Actually, I got the bug: it&amp;#39;s from the &amp;quot;...&amp;quot; after the init.&lt;br /&gt;On several driver, asking me a pin that do not exist, I wrote &amp;quot;NULL&amp;quot; instead of the pin name. Null was unfortunately&amp;nbsp; pin P0.00.&lt;br /&gt;Sorry, I guess it was obvious, I was sure it had something to do with the clock setting.now it works perfect! thanks for your help!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/170312?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 10:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea4512e0-a9d0-4417-b115-e67658406978</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try attached example and see if it works on your board. It works on the DK if you cut SB1.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7e1a6ace72f14096815e2c32ff4f7426/ble_5F00_app_5F00_uart_5F00_w_5F00_app_5F00_button.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_w_5F00_app_5F00_button.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/170115?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 12:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b494f056-0c29-49b0-b41e-4bdf9e69b4cf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PIN0.0 is configured as&amp;nbsp;input&amp;nbsp; with pull-up and sense for low level according to log output. PIN_CNF[x] has a bit-field for SENSE configuration. The way I wrote it was a bit misleading. You can see the register description &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=2_1_0_19_2_9#register.PIN_CNF-0"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, can you log the P0.0 register from your main loop to see if the value remains the same?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/170103?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 11:22:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf3fc054-083f-4082-abf4-4ac2a7923208</guid><dc:creator>Hugo</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;of course:&lt;/p&gt;
&lt;p&gt;#define BUTTON_PULL&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_GPIO_PIN_PULLUP&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, NRF_GPIO-&amp;gt;PIN_CNF[0].SENSE doesn&amp;#39;t exist. NRF_GPIO-&amp;gt;PIN_CNF[PIN] is an integer. this is what I get (button 0 is 0): &lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[0] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[0]);
    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1]);
     	nrf_gpio_cfg_input (0,NRF_GPIO_PIN_PULLUP);
//! if you want more buttons, change value GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS in sdk_config.h
    static app_button_cfg_t p_button[] = {  {BUTTON_0, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_1, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_2, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_3, APP_BUTTON_RELEASE, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_4, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler}};

    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[0] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[0]);
    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1]);
    app_button_init(p_button,sizeof(p_button) / sizeof(p_button[0]),100);
    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[0] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[0]);
    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1]);
    app_button_enable();
    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[0] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[0]);
    NRF_LOG_INFO(&amp;quot;NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] %d&amp;quot;,NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1]);
&lt;/pre&gt;and its log:&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[0] 2&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] 2&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[0] 12&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] 2&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[0] 12&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] 12&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[0] 196620&lt;br /&gt;&amp;lt;info&amp;gt; app: NRF_GPIO-&amp;gt;PIN_CNF[BUTTON_1] 196620&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sorry, I cannot give you my code. I tryed with no success to make a standalone app_button example. (it seems complicated with timers, clock, etc...). But you have all the interesting part.&lt;br /&gt;Kind regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/170059?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 08:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a524066-ebfa-462c-ba83-f09023bce6fd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Is&amp;nbsp;BUTTON_PULL defined as &amp;quot;pull up&amp;quot; in your board header? In that case I don&amp;#39;t see why app_button_init would clear this setting. Could you upload your project here so I can try to replicate it? Also if you could verify that&amp;nbsp;NRF_GPIO-&amp;gt;PIN_CNF[0].SENSE is not &amp;#39;0&amp;#39; after app_button_enable().&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/169953?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 14:18:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:632aee7e-d930-4995-9e76-766d84e0e9ee</guid><dc:creator>Hugo</dc:creator><description>&lt;p&gt;I&amp;#39;m using 5 buttons(P0.28 P0.30,P0.00,P0.02,P0.03). Code is working for the 4 other buttons. Defining the button &amp;quot;P0.00&amp;quot; to pin P0.31 (a sixth button no defined at all yet anywhere in the code), works very fine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is my code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_gpio_cfg_input (0,NRF_GPIO_PIN_PULLUP);
//! if you want more buttons, change value GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS in sdk_config.h
static app_button_cfg_t p_button[] = {  {BUTTON_1, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_2, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_3, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_4, APP_BUTTON_RELEASE, BUTTON_PULL, button_pressed_handler},
                                            {BUTTON_5, APP_BUTTON_PUSH, BUTTON_PULL, button_pressed_handler}};

    app_button_init(p_button,sizeof(p_button) / sizeof(p_button[0]),100);
    app_button_enable();
&lt;/pre&gt;&lt;br /&gt;By making this new test, one more info: I&amp;#39;m using internal pull-up. This pull up is not active.and in it I specify the pin 0 as input pull up, so the app_button_init seems to erase this setting.&lt;br /&gt;If I change to P0.31, the pull-up works great on P0.00&lt;br /&gt;At last, even if the pull up is not active, connecting the pin to the ground or VCC does not call an handler.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "app_button" functions doesn't work on  XL1 gpio "P0.00"</title><link>https://devzone.nordicsemi.com/thread/169939?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 13:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:131be8fb-9846-4f7a-9cbd-7c2f839cb521</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There shouldn&amp;#39;t be any restrictions on P0.00 as long as you use the internal RC.&amp;nbsp;Are you using the same button/IO configuration for all the pins you test with&amp;nbsp;and do you have pull up/down enabled so that isn&amp;#39;t floating?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>