<?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 VDDH and SWD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38823/nrf52840-vddh-and-swd</link><description>Dear All, 
 we use Reference configuration 4 and have connected the DK to our custom PCB. 3.3V of the DK go into VDDH and otherwise only GND and SWDIO/SWCLK are connected. We see 1.8V at VDD, but can&amp;#39;t use SWD. In another thread I&amp;#39;ve read that the SWD</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Sep 2018 11:03:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38823/nrf52840-vddh-and-swd" /><item><title>RE: nRF52840 VDDH and SWD</title><link>https://devzone.nordicsemi.com/thread/150000?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 11:03:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c00c16ca-1938-47c2-82e8-4355347efe7d</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;well, sometimes I should just try. Was not sure how to do it because we&amp;#39;re using Zephyr for this project, but simply adding a board.c (only important for those using Zephyr as well) with this code (copied from pca10059):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
static int board_nrf52840_pca10056_init(struct device *dev)
{
	ARG_UNUSED(dev);

	/* if the nrf52840_pca10059 board is powered from USB
	 * (high voltage mode), GPIO output voltage is set to 1.8 volts by
	 * default and that is not enough to turn the green and blue LEDs on.
	 * Increase GPIO voltage to 3.0 volts.
	 */
	if ((nrf_power_mainregstatus_get() == NRF_POWER_MAINREGSTATUS_HIGH) &amp;amp;&amp;amp;
	    ((NRF_UICR-&amp;gt;REGOUT0 &amp;amp; UICR_REGOUT0_VOUT_Msk) ==
	     (UICR_REGOUT0_VOUT_DEFAULT &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos))) {

		NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
		while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {
			;
		}

		NRF_UICR-&amp;gt;REGOUT0 =
		    (NRF_UICR-&amp;gt;REGOUT0 &amp;amp; ~((uint32_t)UICR_REGOUT0_VOUT_Msk)) |
		    (UICR_REGOUT0_VOUT_3V3 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos);

		NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos;
		while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {
			;
		}

		/* a reset is required for changes to take effect */
		NVIC_SystemReset();
	}

	return 0;
}

SYS_INIT(board_nrf52840_pca10056_init, PRE_KERNEL_1,
	 CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;will give you 3.3V and make SWD attached to DK working nicely&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>