<?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>Using P0.07 as GPIO, not TRACECLK (nRF52840-QFAA-F-7)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108281/using-p0-07-as-gpio-not-traceclk-nrf52840-qfaa-f-7</link><description>Hi, 
 I am trying to use P0.07 as GPIO (output), for driving a LED. However I cannot see the LED driven. I suspect that this pin is used as TRACECLK. How to be sure (how to configure) this pin to be GPIO for sure?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Feb 2024 07:27:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108281/using-p0-07-as-gpio-not-traceclk-nrf52840-qfaa-f-7" /><item><title>RE: Using P0.07 as GPIO, not TRACECLK (nRF52840-QFAA-F-7)</title><link>https://devzone.nordicsemi.com/thread/468937?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 07:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3902a64-8248-48ae-a1a1-7f96b934a38e</guid><dc:creator>JWalker</dc:creator><description>&lt;p&gt;This was the problem. I moved the signal to another pin.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using P0.07 as GPIO, not TRACECLK (nRF52840-QFAA-F-7)</title><link>https://devzone.nordicsemi.com/thread/468814?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2024 12:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eba5972-8ed2-472e-b0eb-cd3a0a11a6f2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you have the UARTE0 instance enabled in your project? I&amp;#39;m asking because this pin is assigned to the CTS handshake signal by default (&lt;a title="Virtual COM port" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/vir_com_port.html?cp=5_0_4_6_1"&gt;Virtual COM port&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using P0.07 as GPIO, not TRACECLK (nRF52840-QFAA-F-7)</title><link>https://devzone.nordicsemi.com/thread/468758?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2024 09:06:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53781026-8d21-43c4-abd3-2ac3c1f18f4d</guid><dc:creator>JWalker</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Using above if, it was seen that the pin P0.07 is not in debug mode. Some else is the problem. The LED is connected to VDD_nRF and P0.07 and when set P0.07 to 0 LED should light, but it does not light. Instead a voltage about 2.2V is seen at P0.07.&lt;br /&gt;&lt;br /&gt;However I found another register, &lt;span class="fontstyle0"&gt;TRACECONFIG&lt;/span&gt; which have TRACEMUX field. After reset it is 0, which means GPIO, and no trace signals are routed. I searched how to access &lt;span class="fontstyle0"&gt;TRACECONFIG&lt;/span&gt; register, but did not found it defined. How to access it to see what is its value?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using P0.07 as GPIO, not TRACECLK (nRF52840-QFAA-F-7)</title><link>https://devzone.nordicsemi.com/thread/468723?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 23:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a0c43f4-d7bb-41f1-9bf9-198307ca270d</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You can check it with debug or in the code; default value is 0 which is io pin:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // TRACE pins can be used as GPIOs or Trace, special case - Debug Exception and Monitor Control Register
    if ( (CoreDebug-&amp;gt;DEMCR &amp;amp; CoreDebug_DEMCR_TRCENA_Msk) == CoreDebug_DEMCR_TRCENA_Msk )
    {
        // Debug pin, not io pin
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://booksite.elsevier.com/9780124080829/downloads/APP-07.pdf"&gt;APP-07.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>