<?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>Programming nRF52840 SOC with SWD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62477/programming-nrf52840-soc-with-swd</link><description>Hi everyone, 
 I am developing a custom PCB that will integrate the nRF52840 SOC. More specifically I will use the MDBT50Q-1MV2 module from Raytac that is approved by Nordic. 
 I will program the chip with SWD. What I have understand so far is that four</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jun 2020 11:02:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62477/programming-nrf52840-soc-with-swd" /><item><title>RE: Programming nRF52840 SOC with SWD</title><link>https://devzone.nordicsemi.com/thread/254973?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 11:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bde7a6a2-57b7-401a-994e-1934b6c784cf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Nikos,&lt;/p&gt;
[quote user="Nikosant03"]by only using SWDIO and SWDSLK I can both debug and connecting via RTT right?[/quote]
&lt;p&gt;&lt;span&gt;You should need (SWDIO, SWCLK, VCC and GND). In the project, you should enable the&lt;a title="Software Development Kit" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__log__backend__rtt__config.html?resultof=%22%52%54%54%22%20%22%72%74%74%22%20"&gt;&amp;nbsp;Log RTT backend configuration&lt;/a&gt;. See d&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debugging-with-real-time-terminal"&gt;ebugging with real-time terminal&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52840 SOC with SWD</title><link>https://devzone.nordicsemi.com/thread/254938?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 09:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afae42b0-afa2-48aa-a8d0-030960d54591</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for your support. Yes I mean connecting via RTT. So, by only using SWDIO and SWDSLK I can both debug and connecting via RTT right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52840 SOC with SWD</title><link>https://devzone.nordicsemi.com/thread/254896?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 07:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c911b970-5e40-4532-92c0-960650e443c9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Nikos,&lt;/p&gt;
[quote user=""]SWO pin is enough for visualing data (e.g using PUTTY)?[/quote]
&lt;p&gt;Not sure what you mean by &amp;quot;visualing data (e.g using PUTTY)&amp;quot;. Do you mean&amp;nbsp;&lt;a title="Connecting via RTT" href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/connect_rtt.html?cp=1_1_2_8_0"&gt;Connecting via RTT&lt;/a&gt;?&amp;nbsp;RTT works over SWD, no need for SWO. As far as I know, &lt;span&gt;SWO is the Serial wire output&lt;/span&gt;&lt;span&gt;&amp;nbsp;trace of ITM data.&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;Please see&amp;nbsp;&lt;/span&gt;&lt;a title="Debug and trace" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/dif.html?cp=4_0_0_3_7"&gt;Debug and trace&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52840 SOC with SWD</title><link>https://devzone.nordicsemi.com/thread/254764?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 13:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33eb22f6-37f5-49bf-9076-6b6ea48123ee</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Thank you Amanda for your assistance so far,&lt;/p&gt;
&lt;p&gt;Sure, I will wait for your complete answer.&lt;/p&gt;
&lt;p&gt;Nick&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming nRF52840 SOC with SWD</title><link>https://devzone.nordicsemi.com/thread/254758?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 13:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1989e2e-f9b0-4f53-bb06-3aacc9ed1993</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Nikos,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I am correct so far? [/quote]
&lt;p&gt;Yes, you should only need (SWDIO, SWCLK, VCC and GND) to program the device. Also remember to power your nRF52 device!&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;VDD: Reference voltage for programmer&lt;/li&gt;
&lt;li&gt;SWDIO: Serial wire debug data&lt;/li&gt;
&lt;li&gt;GND: Ground&lt;/li&gt;
&lt;li&gt;SWDCLK: Serial wire debug clock&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]SWO pin is enough for visualing data (e.g using PUTTY)?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Will give complete answer next week.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]Are these equipement enough for programming the nRF52840 IC?[/quote]
&lt;p&gt;&amp;nbsp;Yes, you also could use nRF52840 DK to connect your custom board to debug. Please see&amp;nbsp;&lt;a title="Debug output" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_debug_out.html?cp=4_0_4_7_9"&gt;Debug output&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]What is the purpose of this pin on the SDW connector?[/quote]
&lt;p&gt;&lt;span&gt;You don&amp;#39;t need RESET pin to program/debug. You can do softreset if you don&amp;#39;t have access to the RESET pin. RESET pin is optional on nRF52, you can actually disable RESET and use the pin as normal GPIO pin.&lt;/span&gt;&lt;/p&gt;
[quote user=""]Should I use these resistors? Maybe they are included inside the&amp;nbsp;&lt;span&gt;MDBT50Q-1MV2 module?&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;No, Please see&amp;nbsp;&lt;a title="Debug and trace" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/dif.html?cp=4_0_0_3_7"&gt;Debug and trace&lt;/a&gt;/&lt;a title="Electrical specification" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/dif.html?cp=4_0_0_3_7_1_1#unique_369981888"&gt;Electrical specification&lt;/a&gt;, nRF52840 already has i&lt;span&gt;nternal SWDIO and SWDCLK pull up/down resistance.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>