<?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>nRF52840 GPIO definition issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33909/nrf52840-gpio-definition-issue</link><description>Hi, 
 
 I am downloading my code to my custom board and sending commands through a USB virtual COM port. I basically echo and execute some GPIO operations after decoding the commands, then printing stuff to check that the right code was executed. 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 May 2018 08:36:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33909/nrf52840-gpio-definition-issue" /><item><title>RE: nRF52840 GPIO definition issue</title><link>https://devzone.nordicsemi.com/thread/130753?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 08:36:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a57676-6f78-4372-994a-5649a411831f</guid><dc:creator>adragocelestica</dc:creator><description>&lt;p&gt;Well, I am trying to test the functionalities of the board, and it would make easy to know if that bit works properly. I will measure if the result of the state change has occurred, then. Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 GPIO definition issue</title><link>https://devzone.nordicsemi.com/thread/130728?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 07:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:331fe220-8b89-494e-92a5-e901989faa43</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;A GPIO pin can only be configured to be in or out, not in &lt;em&gt;and&lt;/em&gt; out. But why would you want that in the first place? If you have set or cleared a gpio output pin, you know it&amp;#39;s state, so why do you want to read it?&lt;/p&gt;
&lt;p&gt;That said, if you you change a pin to an input it will be in a high impedance state (not driven high or low), regardless of what it was before when it was configured as an output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 GPIO definition issue</title><link>https://devzone.nordicsemi.com/thread/130621?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 14:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74c02ad2-2ab0-41d6-a931-4642eb6959d4</guid><dc:creator>adragocelestica</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Today I have managed to make the GPIOs work by redefining them as outputs when I set or clear them. However, after that I cannot successfully read the value of the GPIO. I imagine that I could define the GPIO as input before reading its state, but i don&amp;#39;t know if when doing that the nRF52840 would keep driving the GPIO or I would have to inmediately redefine the GPIO as output and re-write its value, which doesn&amp;#39;t look quite optimal. If you could clarify me how is the best method of doing that, it would save me a lot of time and trial-and-error. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 GPIO definition issue</title><link>https://devzone.nordicsemi.com/thread/130523?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 12:01:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92fbdfd1-6764-4e15-a103-7f20eca01d7a</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Alin,&lt;/p&gt;
&lt;p&gt;Have you had any progress with this issue? I do not know anything about your code, but&amp;nbsp;it seems more likely that there is a flaw in your application logic somewhere, and not with the GPIO mapping itself. Have you stepped through the code or added debug printouts that show the flow of your application, and when it changes the state of GPIOs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>