<?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>Problem with detecting Button push on PCA10056 and SDK 17.0.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77713/problem-with-detecting-button-push-on-pca10056-and-sdk-17-0-2</link><description>Description of setup/problem. 
 1 PCA10056 is defined as Central 
 1 PCA10056 defined as Peripheral. 
 
 I have used the “ble_app_uart_c” and “ble_app_uart” examples as starting point for my applications. 
 I have added functionality and removed functionalities</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jul 2021 12:08:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77713/problem-with-detecting-button-push-on-pca10056-and-sdk-17-0-2" /><item><title>RE: Problem with detecting Button push on PCA10056 and SDK 17.0.2</title><link>https://devzone.nordicsemi.com/thread/321344?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 12:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b2451a0-bfd5-42cc-81b3-ad32af62a344</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Svein&lt;/p&gt;
[quote user="Svein"]Thanks for the reply; it helped, and the problem has been found and solved.[/quote]
&lt;p&gt;No problem at all, I am happy to help and glad to hear that the issue now is resolved.&lt;/p&gt;
[quote user="Svein"]As you pointed out it was a conflict with PINs already in use on the DK10056 and those PIN we wanted to use.[/quote][quote user="Svein"]I was not aware about that those PINs we wanted to use in our custom design was allocated to external memory on PCA10056. I will put in front of me a list of PINs that is allocated on PCA10056 and then hopefully I will not run in to the same problem again.&amp;nbsp;[/quote]
&lt;p&gt;Yes, the DK already uses quite a lot of the available pins for different purposes, to make development on the DK easier.&lt;br /&gt;However, you could of course &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/solder_bridge.html"&gt;choose to disconnect this functionality, by connecting or cutting the solder bridges&lt;/a&gt;, if there should be a particular DK functionality you do not need, or if you need to use a particular pin..&lt;br /&gt;Please also keep in mind &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fpin.html"&gt;the SoC&amp;#39;s Pin Assignment&lt;/a&gt;&amp;nbsp;when choosing pins to use on your custom board.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to open another ticket if you should encounter any issues or questions in the future.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards.&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with detecting Button push on PCA10056 and SDK 17.0.2</title><link>https://devzone.nordicsemi.com/thread/321322?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 11:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f186b6-d593-46ed-9def-dcf458275680</guid><dc:creator>Svein</dc:creator><description>&lt;p&gt;Hi Karl,&lt;/p&gt;
&lt;p&gt;Thanks for the reply; it helped, and the problem has been found and solved.&lt;br /&gt;As you pointed out it was a conflict with PINs already in use on the DK10056 and those PIN we wanted to use.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I was not aware about that those PINs we wanted to use in our custom design was allocated to external memory on PCA10056. I will put in front of me a list of PINs that is allocated on PCA10056 and then hopefully I will not run in to the same problem again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Again, thanks a lot for your informative answer.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Svein&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with detecting Button push on PCA10056 and SDK 17.0.2</title><link>https://devzone.nordicsemi.com/thread/321160?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 13:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98338dd6-132a-4935-806e-b0e98c41e2e2</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Svein,&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this. The summer holidays have begun here in Norway, and DevZone is therefore operating with reduced staff for the time being. Sorry for any inconvenience this might cause.&lt;br /&gt;&lt;br /&gt;Sorry in advance for all the questions; I am not sure that I understand you issue correctly, with regards to what tests have worked on which device, and what tests have failed on the customer board.&lt;br /&gt;Is the issue here that you are unable to use the P0.19 pin for a button pin on the nRF52840 DK?&lt;br /&gt;Or is the issue that you are unable to use the pins that are used for buttons on the DK, as button pins on your custom board? In case of the former, it might be that &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/connector_if.html"&gt;the pins are already in use on the DK&lt;/a&gt;, and that you need to disable this functionality by cutting or soldering some solder bridges.&lt;br /&gt;In case of the latter we will need to look into the hardware of your custom board, to see why it is not registering the buttons presses on these pins.&lt;/p&gt;
[quote user=""]when it comes to our custom central board, I cannot use any of the pins that are assigned to Button1 to Button 4 on the PCA10056.[/quote]
&lt;p&gt;Are you saying that this is an unexpected issue, or as a statement to explain why you need to use other pins for this?&lt;br /&gt;In case of the former, please elaborate what you mean when you say that you can not use these pins.&lt;br /&gt;In case of the latter, you can overlook this question.&lt;/p&gt;
[quote user=""]pin 19 (P0.19) but could not detect any event when that button (connected to pin 19) was pushed. (I use a breadboard to connects buttons, LED, analogue and digital sensors). If I use one of the PCA10056 buttons I can detect an event if the button is pushed,[/quote]
&lt;p&gt;Are you saying that you were able to use the P0.19 pin on the DK (which &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_external_memory.html"&gt;by default is used for the QSPI external memory&lt;/a&gt;), but not on the custom board?&lt;br /&gt;Could you provide a small schematic to illustrate how you have connected the button to your P0.19 on the breadboard, or could you confirm that it is connected &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_buttons_leds.html"&gt;like the buttons are connected to the pins on the DK&lt;/a&gt;?&lt;/p&gt;
[quote user=""]I assume there is something in the SDK that overwrite my settings, but I cannot figure out what it could be. Do you have any ide of what this may be due to?[/quote]
&lt;p&gt;As for this, there is only one instance of overwritten sdk_config that I know of, and that is the case when a legacy definition is left defined while you attempt to use the NRFX driver for the same peripheral.&lt;br /&gt;Basically, it means that if you leave *_ENABLED defined, while you simultaneously try to define NRFX_*_ENABLED 1, then the apply_old_config file will overwrite your NRFX_*_ENABLED define, to instead use the legacy driver.&lt;br /&gt;This feature exists to support backwards compatibility, but it is known to cause some confusion.&lt;br /&gt;You can &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60127/compare-sdk_config-files"&gt;read more about this in this ticket&lt;/a&gt;.&lt;br /&gt;However, I would not think that this is the case here, since you say that you are flashing the same firmware to both the DK and the custom board.&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>