<?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>Can I use the NRF52 DK JTAG port to program my own custom built device? And does it happen automatically when I upload code to the DK through Segger?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56937/can-i-use-the-nrf52-dk-jtag-port-to-program-my-own-custom-built-device-and-does-it-happen-automatically-when-i-upload-code-to-the-dk-through-segger</link><description>Hello, 
 I have tested and verified the code for my application on the NRF52 DK, but now I need to program my own custom device using the nRF52832 chip. I saw there was a JTAG port for Serial wire debugging on the DK and so I was wondering if I can use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2020 16:30:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56937/can-i-use-the-nrf52-dk-jtag-port-to-program-my-own-custom-built-device-and-does-it-happen-automatically-when-i-upload-code-to-the-dk-through-segger" /><item><title>RE: Can I use the NRF52 DK JTAG port to program my own custom built device? And does it happen automatically when I upload code to the DK through Segger?</title><link>https://devzone.nordicsemi.com/thread/230928?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 16:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61c8c672-3513-477d-870f-fbceaf2cb0ac</guid><dc:creator>jkyle</dc:creator><description>&lt;p&gt;Yes, the debug out connector will not supply power to your custom board. You will need to power it from another source, which can be the VDD and GND pins of the dev kit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use the NRF52 DK JTAG port to program my own custom built device? And does it happen automatically when I upload code to the DK through Segger?</title><link>https://devzone.nordicsemi.com/thread/230914?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 15:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10c02e36-2ee6-475f-8f41-6e52313dc58c</guid><dc:creator>RyanA</dc:creator><description>&lt;p&gt;Thanks, I am getting the picture now but I am still confused on these GND and VCC pins. So I need to bus the VCC and GND pins on my device not only to the Debug out connector but also to the boards actual 3.3V out pin and GND pin?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use the NRF52 DK JTAG port to program my own custom built device? And does it happen automatically when I upload code to the DK through Segger?</title><link>https://devzone.nordicsemi.com/thread/230751?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 00:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c843cc73-fbd1-429e-92d3-cb8f2a90a0b9</guid><dc:creator>jkyle</dc:creator><description>&lt;p&gt;Your custom device needs to have power supplied to it in some way. This can be a battery, external power supply, or Vdd and GND from the DK board. &lt;br /&gt;&lt;br /&gt;The VTG and GND Detect pins on the dev kit sense the voltage level on the target board, so they should be connected to VDD and GND on your custom device. The SWD IO and SWD CLK also should be connected to the corresponding pins on your device. You can do this either with P20 on the DK or using P19 (schematic below)&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579825543627v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Once everything is connected you should be able to upload code as you normally would with SES. If everything is connected correctly your custom device will be programmed instead of the chip on the dev kit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use the NRF52 DK JTAG port to program my own custom built device? And does it happen automatically when I upload code to the DK through Segger?</title><link>https://devzone.nordicsemi.com/thread/230747?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 23:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72d676fe-1d43-436e-8afc-5bc9063346f0</guid><dc:creator>RyanA</dc:creator><description>&lt;p&gt;Are you referring to Vref when you say power? Does the JTAG port do this automatically or would I need to conect it to a 3.3 V pin on the board? Also once connected, can I upload code to it through Segger embedded studio as I would regularly for the DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use the NRF52 DK JTAG port to program my own custom built device? And does it happen automatically when I upload code to the DK through Segger?</title><link>https://devzone.nordicsemi.com/thread/230738?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2020 19:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32942796-a3c7-49ab-b4b0-c996933a5df0</guid><dc:creator>jkyle</dc:creator><description>&lt;p&gt;Yes you can, just make sure the external device is powered first. You can connect the &lt;strong&gt;Debug out&lt;/strong&gt; port (P19 on the DK) to your custom board with a ribbon cable if you included a similar 10 pin header in your design. You can also connect the boards using P20 on the DK as described in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/14058/external-programming-using-nrf52-dk"&gt;this&lt;/a&gt;&amp;nbsp;answer (note that the diagram in the answer given by Remi is powering the board from the DK so no external power is needed). If the DK detects an external voltage is connected it will automatically program the external board instead of the chip on the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>