<?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>Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46732/flashing-and-debugging-an-external-nrf52840-board</link><description>Hi, 
 I&amp;#39;m using the PCA10056 as a JLINK to my custom board. My board is powered by a LiPo battery through VDDH, and I have access to the SWD pins. I&amp;#39;m also using Segger Embedded Studio on Windows. 
 I get unexpected behaviour. 
 I need to flash and debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 May 2019 12:51:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46732/flashing-and-debugging-an-external-nrf52840-board" /><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/185503?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 12:51:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12ba91e4-bbe5-493a-bb1b-9695dd3f8499</guid><dc:creator>Daniel Reisfeld</dc:creator><description>&lt;p&gt;Thanks Awneil :) I understand my problem is not related to my SES usage.&lt;/p&gt;
&lt;p&gt;Daniel&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184928?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 13:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a311d9e6-9e9c-4f6d-acda-f3b0eadb33e4</guid><dc:creator>awneil</dc:creator><description>[quote userid="67166" url="~/f/nordic-q-a/46732/flashing-and-debugging-an-external-nrf52840-board/184698"]Is there a way to directly use SES to flash in a non-debug mode[/quote]
&lt;p&gt;Yes:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1556804721251v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184920?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 13:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:430a87a7-664a-4d49-addc-8bdf04193669</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Daniel,&amp;nbsp;&lt;/p&gt;
[quote user="danielReisfeld"]My problem is that straight forward use of SES puts my board&amp;#39;s VDD in 3V instead of the default 1.8V and pin 1.09 is trace rather than GPIO.[/quote]
&lt;p&gt;It depends on the power sources.&amp;nbsp;If powered at J2(USB on the short side), it&amp;#39;s 3V, as shown in the table of &lt;a title="VDD power sources" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/vdd_power_sources.html?cp=3_0_4_7_2_1"&gt;VDD power sources&lt;/a&gt;.&amp;nbsp;. If powered at J3&amp;nbsp;(USB on long side labled nRF USB), the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?resultof=%22%52%45%47%4f%55%54%30%22%20%22%72%65%67%6f%75%74%30%22%20#register.REGOUT0"&gt;&lt;span&gt;REGOUT0&lt;/span&gt;&lt;/a&gt; value is used (High voltage mode).&lt;/p&gt;
&lt;p&gt;&lt;a title="Debug input and trace" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_debug_in_trace.html?cp=3_0_4_7_8"&gt;Debug input and trace&lt;/a&gt;&amp;nbsp;indicates p1.09 is&amp;nbsp;&lt;span&gt;TRACEDATA[3].&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="danielReisfeld"]Is there a way to directly use SES to flash in a non-debug mode?[/quote]
&lt;p&gt;It should be fine to use SES directly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184889?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:20:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d63ea30a-f6a3-43c7-8b0d-99d9ec2b2539</guid><dc:creator>Daniel Reisfeld</dc:creator><description>&lt;p&gt;Owneil,&lt;/p&gt;
&lt;p&gt;REGOUT0 is set to 3V (and so is indicated by measurements). I don&amp;#39;t understand why it is not the default 1.8V.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is my question clearer now?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184726?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 20:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e428ba1b-7d71-4bdd-b26f-8101db1f2f39</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Sorry - what do you mean by, &amp;quot;&lt;span&gt;get 3V&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps post your schematic, and highlight where you&amp;#39;re measuring?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184722?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 19:34:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e61ffba4-f0da-403c-a4bd-08309f8bf0a9</guid><dc:creator>Daniel Reisfeld</dc:creator><description>&lt;p&gt;Awneil,&lt;/p&gt;
&lt;p&gt;I understand that the DK works with 3V. I don&amp;#39;t understand how this happens. When I use the DK and SES to flash my board following by detaching the DK further following by resetting my board, I still get 3V although the documentation says the default is 1.8V.&lt;/p&gt;
&lt;p&gt;Daniel&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184703?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 14:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65e2f895-a0b1-437c-a447-4a4632c59553</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The debug out from the DK only supports 3V targets. This is a property of the DK hardware - nothing to do with SES.&lt;/p&gt;
&lt;p&gt;For a 1.8V target, you will need to buy a standalone JLink.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(other debug probes are available, but won&amp;#39;t work with SES).&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184698?ContentTypeID=1</link><pubDate>Wed, 01 May 2019 12:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcd44a40-6123-44e2-9fe6-2b2add6fb41e</guid><dc:creator>Daniel Reisfeld</dc:creator><description>&lt;p&gt;Thanks Amenda,&lt;/p&gt;
&lt;p&gt;My problem is that straight forward use of SES puts my board&amp;#39;s VDD in 3V instead of the default 1.8V and pin 1.09 is trace rather than GPIO. Is there a way to directly use SES to flash in a non-debug mode?&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Daniel&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing and debugging an external nrf52840 board</title><link>https://devzone.nordicsemi.com/thread/184332?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2019 13:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378207ba-abc2-470e-a74b-054610cd7367</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please see the reply in the below:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]1.&amp;nbsp;Can I use the Segger Embedded Studio directly or do I need to use another program?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Yes, you can directly use&amp;nbsp;Segger Embedded Studio to debug.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. What is the flashing command/procedure?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;You can refer to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_nrfjprogexe.html?cp=6_1_3"&gt;&lt;strong&gt;Programming nRF5x SoCs with nrfjprog&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]3. Do I need to wire any pin except the two SWD ones?[/quote]
&lt;p&gt;&amp;nbsp;Please refer to this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32738/debug-connector/125956#125956"&gt;thread&lt;/a&gt; and&amp;nbsp;&lt;a title="Debug output" href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/nrf52840_DK/hw_debug_out.html?cp=3_0_4_7_9"&gt;Debug output&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>