<?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 setting &amp;amp; clearing specific pins</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42042/problem-setting-clearing-specific-pins</link><description>Trying to run the SPI Master application on a custom nrf52382 based device (custom PCB) to communicate with an ADC chip that is taking analog values from a Multiplexer. Not using any softdevice, using SDK 15.1, NRF52382, environment is uVision Keil 5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jan 2019 06:15:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42042/problem-setting-clearing-specific-pins" /><item><title>RE: Problem setting &amp; clearing specific pins</title><link>https://devzone.nordicsemi.com/thread/163639?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 06:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:267d3a18-e805-401f-a69d-c978a2aab2ac</guid><dc:creator>Ashish</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote]&lt;p&gt;&lt;span&gt;I include a line of code &amp;quot;&amp;nbsp;#define CONFIG_NFCT_PINS_AS_GPIOS&amp;quot; in my main project file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This isn&amp;#39;t required. Setting the FLAG in makefile should do it.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote]&lt;p&gt;&lt;span&gt;As for the reset pin 21. I am trying to change the pin number from 21 to sth else in the system_nrf52.c file.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;span&gt;To do this, did you create a new file, named system_nrf52_1.c?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting &amp; clearing specific pins</title><link>https://devzone.nordicsemi.com/thread/163573?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 21:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d87c63e-11d2-4362-972f-67ab1b6a3331</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I include a line of code &amp;quot;&amp;nbsp;#define CONFIG_NFCT_PINS_AS_GPIOS&amp;quot; in my main project file. And I write a line &amp;quot;&lt;span&gt;CFLAGS += -DCONFIG_NFCT_PINS_AS_GPIOS&lt;/span&gt;&amp;quot; in the makefile of the project to disable the use of P0.9, and 10 as nfct as suggested in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29041/how-to-enable-p0-09-and-p0-10-as-gpio-pins-on-the-nrf52-instead-of-nfc-pins"&gt;devzone.nordicsemi.com/.../how-to-enable-p0-09-and-p0-10-as-gpio-pins-on-the-nrf52-instead-of-nfc-pins&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for the reset pin 21. I am trying to change the pin number from 21 to sth else in the system_nrf52.c file.&lt;/p&gt;
&lt;p&gt;But doing this gives me this error.&amp;nbsp;&lt;br /&gt;I think I am doing sth wrong or missing sth out.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1546463529213v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting &amp; clearing specific pins</title><link>https://devzone.nordicsemi.com/thread/163333?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 00:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e12e2be-7aee-4649-9b08-227df99753f1</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS, look into system_nrf52.c for other pre-processor options you can set including the reset one.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting &amp; clearing specific pins</title><link>https://devzone.nordicsemi.com/thread/163332?ContentTypeID=1</link><pubDate>Tue, 01 Jan 2019 23:50:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe34b5a7-ddca-4fb1-8f03-02b4bdf49e40</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;Thanks a lot RK. I think this is the problem because when I redefine the UART TX pin to be P0.5 in the SDK.h , I can set and clear pin 6 at will.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I still could not figure out how to disable the NFC functionality of P0.9 and P0.10 and the reset functionality of P0.21. Would you have any recommendation for that?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting &amp; clearing specific pins</title><link>https://devzone.nordicsemi.com/thread/163312?ContentTypeID=1</link><pubDate>Tue, 01 Jan 2019 00:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a426b2f2-2b84-4cb8-9f5d-74b2bf69b450</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;As pointed out weekly here, P0.09 and P0.10 are NFC by default so you have to turn that off before you can use them as GPIOs. The other two pins are fine for use as GPIOs which makes me wonder if you have assigned them to SPI or UART or one of the other peripherals which means they no-longer function as GPIOs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>