<?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>Some GPIO pins don&amp;#39;t work in nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34029/some-gpio-pins-don-t-work-in-nrf52840</link><description>I was facing some issues getting PWM peripheral work on my custom nRF52840 board. And then I tried the pwm output on P0.08 instead of P0.06 and the signal came out just fine. 
 So I tried the following code snippet on a modified ble_app_hrs example on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 May 2018 07:20:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34029/some-gpio-pins-don-t-work-in-nrf52840" /><item><title>RE: Some GPIO pins don't work in nRF52840</title><link>https://devzone.nordicsemi.com/thread/131287?ContentTypeID=1</link><pubDate>Tue, 08 May 2018 07:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d031d180-32ba-43d1-8a8e-af1846ca0eea</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;If you make a change to the&amp;nbsp;pca10056.h header file, then it will affect all sdk examples that have support for the pca10056 board. Sorry if I misunderstood, but I thought you wanted to run this code on your custom board. Either way, if you want to make changes to the regular pca10056.h header file, it is recommended to make your own &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18554/custom-board-pin-mapping"&gt;custom_board.h header file&lt;/a&gt; &amp;amp; include that in the project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you take a look at boards.h, you&amp;nbsp;can see this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#elif defined(BOARD_CUSTOM)
  #include &amp;quot;custom_board.h&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you remove the&amp;nbsp;BOARD_PCA10056 definition, replace that with&amp;nbsp;BOARD_CUSTOM in the preprocessor definitions in your IDE &amp;amp; include the custom_board.h header file (you can add the custom_board.h header file in the components/boards/ folder), the custom board definition will be included in the project. It could be a good idea to copy the&amp;nbsp;pca10056.h header file, rename it &amp;amp; use that as a starting point.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some GPIO pins don't work in nRF52840</title><link>https://devzone.nordicsemi.com/thread/131149?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 09:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55ed7846-9c66-4d8a-aa18-c339502c23d0</guid><dc:creator>cjishnu</dc:creator><description>&lt;p&gt;Hi, I am using SDK15.0.0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try this and let you know. But doing this will affect the whole SDK right? I mean if I change TX_PIN_NUMBER to say pin number 8, and if there are other projects in the SDK that use the pin number 8, those projects will get affected right?&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the recommended way to edit SDK files for individual projects? Currently we do have problem porting projects from one PC to another due to edits in SDK files that goes untracked and the projects that work on one PC won&amp;#39;t compile in another after a simple git pull (unless you create a git repo with the whole SDK which&amp;#39;s a bit overkill).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some GPIO pins don't work in nRF52840</title><link>https://devzone.nordicsemi.com/thread/131144?ContentTypeID=1</link><pubDate>Mon, 07 May 2018 08:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47b84106-0a93-4930-ac05-ad8e201e803c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Which SDK version are you currently using? I just took a look at the pca10056.h board file from SDK 15 &amp;amp; that header file sets the TX_PIN_NUMBER from UART to 6.&amp;nbsp;It could be that you are setting the UART TX Pin to 6 in your custom board file &amp;amp; using UART logging. Therefore, when you enable logging, the P0.06 is being used by UART. You could try changing the TX_PIN_NUMBER to an unused GPIO on your custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some GPIO pins don't work in nRF52840</title><link>https://devzone.nordicsemi.com/thread/131001?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 11:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ceb643-1986-448b-b475-d46978105994</guid><dc:creator>cjishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is solved.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Based on the PDK User guide, I realised that P0.00 &amp;amp; P0.01 are used for crystals and the appropriate solder bridges had to be cut to access these. Same for GPIOs 17-23 since they are being used for QSPI.&lt;/p&gt;
&lt;p&gt;Got control of P0.06 back after disabling the log. Too bad since our custom board had p0.06 used for something and now we can&amp;#39;t have log functionality for that board? Let me know.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some GPIO pins don't work in nRF52840</title><link>https://devzone.nordicsemi.com/thread/130976?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 09:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91719cc8-31dd-4e0b-9e09-725edb7106b3</guid><dc:creator>cjishnu</dc:creator><description>&lt;p&gt;Hi, I tried the same in a modified version of &lt;strong&gt;examples/peripheral/blinky&lt;/strong&gt; and the same problem is happening although P0.06 is working.&lt;/p&gt;
&lt;p&gt;This is my entire code&lt;/p&gt;
&lt;p&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;nrf_gpio.h&amp;quot;
//#include &amp;quot;boards.h&amp;quot;

/**
 * @brief Function for application main entry.
 */
int main(void)
{
    /* Configure board. */
    nrf_gpio_cfg_output(6);
    nrf_gpio_cfg_output(1);

    /* Toggle LEDs. */
    while (true)
    {
            nrf_gpio_pin_toggle(6);
            nrf_gpio_pin_toggle(1);                        
            nrf_delay_ms(2000);
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here pin 6 is toggling on the PDK board, but not pin 1.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>