<?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>I can&amp;#39;t get/set gpio value.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94611/i-can-t-get-set-gpio-value</link><description>Hi Nordic. 
 
 I am developing with nRF52832DK and SDK 17.1.0 
 And it&amp;#39;s connected with my Qualcomm board. 
 
 I want check GPIO input interrupt and output settings. 
 But I can&amp;#39;t read the signal from the outside into the input properly. 
 Also, even</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2022 10:33:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94611/i-can-t-get-set-gpio-value" /><item><title>RE: I can't get/set gpio value.</title><link>https://devzone.nordicsemi.com/thread/399612?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 10:33:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcb08c12-61ce-43a1-a0cd-1adaba471094</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You&amp;#39;re mixing the usage between the GPIOTE and the GPIO driver which is not the same peripheral. Can you test this simple fw on your code and see if you&amp;#39;re able to see LED1 blinking? If you are, can you change PIN 17 to 10 with&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS added to the preprocessor settings and see if you&amp;#39;re also able to see PIN 10 toggling?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;



#define PIN 17


int main(void)
{

nrf_gpio_cfg_output(PIN);


while(1)
{

    nrf_gpio_pin_toggle(PIN);
    nrf_delay_ms(500);
}

}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't get/set gpio value.</title><link>https://devzone.nordicsemi.com/thread/399555?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 01:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701f7e73-342f-48ba-8b5d-3c4cc0142efb</guid><dc:creator>Jack.Hong</dc:creator><description>&lt;p&gt;Hi Jared&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added CONFIG_NFCT_PINS_AS_GPIOS into preprocessor.&lt;/p&gt;
&lt;p&gt;But still no drive gpio set high.&lt;/p&gt;
&lt;p&gt;And also I can&amp;#39;t read input gpio value of P0.03&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't get/set gpio value.</title><link>https://devzone.nordicsemi.com/thread/399426?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 13:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c02e45d-5d74-4a7b-8e26-a71b35729e04</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Pin P0.10 is used for NFC. You have to&amp;nbsp;add&amp;nbsp;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS&amp;nbsp;to your preprocessor settings.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>