<?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>BSP and nRF52 custom board - P0.9/P0.10 GPIO LED issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14319/bsp-and-nrf52-custom-board---p0-9-p0-10-gpio-led-issue</link><description>Hi Everyone, 
 So I have a custom board with an LED on P0.9. I have confirmed it works by applying power to it, so no issue with the LED itself or the way it is connected. 
 I created a custom_board.h from the pca10040.h mapping LED_1 to P0.9. I commented</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Mar 2018 04:00:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14319/bsp-and-nrf52-custom-board---p0-9-p0-10-gpio-led-issue" /><item><title>RE: BSP and nRF52 custom board - P0.9/P0.10 GPIO LED issue</title><link>https://devzone.nordicsemi.com/thread/123537?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 04:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa02d2bb-8457-46d6-b35b-9de9f942877f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;We all got caught by these at some time or other .. and the rest:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Important Heardware Pin Options - used in system_nrf52.c, typically added to project options
// ===============================
// ENABLE_SWO activates SWO pin, otherwise SWO pin is available as GPIO
// ENABLE_TRACE activates TRACE pins, otherwise TRACE pins are available as GPIOs
// CONFIG_NFCT_PINS_AS_GPIOS bypasses NFC input circuitry and enables 2 GPIO pins, otherwise 2 pins are NFC only
// CONFIG_GPIO_AS_PINRESET activates pin reset, otherwise pin nRESET is available as GPIO
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP and nRF52 custom board - P0.9/P0.10 GPIO LED issue</title><link>https://devzone.nordicsemi.com/thread/123526?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 01:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfc46bae-2a3e-4c47-9950-1f3d967fff3e</guid><dc:creator>Cy</dc:creator><description>&lt;p&gt;Using command line development relying on the makefile, this preprocessor needed to be added in the makefile. Using a custom board within the blinky project I added line 144&amp;nbsp;CFLAGS += -DCONFIG_NFCT_PINS_AS_GPIOS within the makefile. It would not work placed inside the pca10056.h file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP and nRF52 custom board - P0.9/P0.10 GPIO LED issue</title><link>https://devzone.nordicsemi.com/thread/54652?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 14:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3765218-2bcc-4a3d-b3bb-beec29669c25</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;I edited the heading because as more and more nRF52 custom boards are built this could keep coming up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BSP and nRF52 custom board - P0.9/P0.10 GPIO LED issue</title><link>https://devzone.nordicsemi.com/thread/54653?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2016 14:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6ed1d71-2f03-4730-9dcc-6349fbcd46b8</guid><dc:creator>RichieJH</dc:creator><description>&lt;p&gt;Ok, solved this and thankfully don&amp;#39;t feel so silly.&lt;/p&gt;
&lt;p&gt;It appears pins 0.9 and 0.10 for the nRF52 are set for use with the NFC antenna out of the box.  So in the preprocessor you need to set CONFIG_NFCT_PINS_AS_GPIOS to turn them into GPIOs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>