<?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>See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89080/see-debug-logs-from-the-custom-designed-board-using-nrf52840-dk-as-a-programmer-debugger</link><description>Hello, guys! 
 I want to use the nRF52840-DK board as a programmer/debugger for a custom-designed board containing a BC840M-v2 module with nRF52840 SoC on it. Here is the connection diagram between the boards: 
 
 When using Blinky or Hello World examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 19:28:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89080/see-debug-logs-from-the-custom-designed-board-using-nrf52840-dk-as-a-programmer-debugger" /><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/405904?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 19:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b34f7797-559d-4a37-8a89-80ee65bcabb1</guid><dc:creator>bilal337</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/bojan"&gt;bojan&lt;/a&gt;&amp;nbsp;I&amp;#39;m facing the same problem using custom board so I want to &lt;strong&gt;use RTT to get Logs&lt;/strong&gt; as I don&amp;#39;t have UART gpio pins exposed. I&amp;#39;m also using the same setup as you -&amp;gt; flashing using Nrf52840 DK with same connections. Please let me know how you resolved you issue. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/373710?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2022 13:18:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:731e0a46-5129-4c48-bf7a-6d26047b7e94</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hi, @Edvin!&lt;/p&gt;
&lt;p&gt;I was finally able to see debug logs using J-Link RTT Viewer.&lt;/p&gt;
&lt;p&gt;Connecting to RTT through Visual Studio Code does not work for me. Anyway, the issue is resolved. Thanks for your assistance!&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/373270?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 13:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534c7377-b6ba-400e-b189-fafefdc99436</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The built in RTT viewer in nRF Connect for VS Code can be a bit flaky some times. Make sure that you close all previous RTT (or UART) connections first by pressing ctrl + shift + p and start typing &amp;quot;stop terminal&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1655732739039v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t show up, then you can connect like in your screenshot.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, if it doesn&amp;#39;t work, you can try to use Segger RTT Viewer (download as part of &lt;a href="https://www.segger.com/downloads/jlink/"&gt;JLink from segger.com&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;But please try to connect the RTT &lt;strong&gt;after&lt;/strong&gt;&amp;nbsp;you program the custom board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/373268?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 13:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be1b8dfb-e972-409b-a0a2-8b3b7b651c5a</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, @Edvin. &lt;/p&gt;
&lt;p&gt;Is there anything we should explicitly do in nRF Connect SDK to enable RTT backend?&lt;/p&gt;
&lt;p&gt;How can we connect the RTT in the nRF Connect SDK environment? Should we do it from this nRF Connect SDK window:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1655731509588v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/373159?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 07:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e16769e1-335e-4acf-bd46-b5555919e2b2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Bojan,&lt;/p&gt;
&lt;p&gt;Using the RTT backend, it works without any issues here. Note that I just tested this using two nRF52840DKs, so unless there is something I didn&amp;#39;t think of, I don&amp;#39;t see why it wouldn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;RTT is a bit sensitive. Try to erase the custom board completely, in case there is something in the memory that is stuck from previous configurations. Then try to flash your application to the custom board, and connect the RTT backend&amp;nbsp;&lt;strong&gt;after&lt;/strong&gt; the application has started, and let me know if that doesn&amp;#39;t work. As long as you are able to connect to and program the custom board using the nRF52840DKs programmer, then everything you need should be connected correctly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/373058?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 13:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56ffc8e0-7586-485b-8535-c67afb0c3319</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hello, &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;I was aware that we can use either UART or RTT backends. I was hoping to use RTT backend so that debug logs go through the same interface we are using for programming the board (SWDCLK, SWDIO, SWO).&lt;/p&gt;
&lt;p&gt;I tried everything in &lt;span style="background-color:#ccffcc;"&gt;&lt;em&gt;&lt;strong&gt;prj.conf&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; file to activate RTT but to no avail:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# enable uart driver
CONFIG_SERIAL=y

# choose UART console
CONFIG_UART_CONSOLE=n
CONFIG_CONSOLE=y
# Debug config
CONFIG_LOG=y
CONFIG_LOG_BUFFER_SIZE=512
CONFIG_LOG_DEFAULT_LEVEL=4
CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP=y
CONFIG_LOG_BACKEND_SHOW_COLOR=y
# RTT Viewer
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
#CONFIG_LOG_BACKEND_RTT_MODE_DROP=y
CONFIG_LOG_PRINTK=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is it possible at all to achieve that the debug logs go through SWDCLK/SWDIO pair?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: See debug logs from the custom-designed board using nRF52840-DK as a programmer/debugger</title><link>https://devzone.nordicsemi.com/thread/373036?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2022 12:48:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea4f4fb1-8651-447b-be5d-0ec0245ffc62</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I assume you are using the UART backend on your logs (when you can see the logs on the DK)?&lt;/p&gt;
&lt;p&gt;If so, the UART on the DK is by default configured to use TX: P0.06, RX: P0.08. These pins are physically connected to the onboard debugger. which is why yousee the UART output on the computer (the debugger translates from UART to USB protocol, since UART is not supported on PC).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So one way to see UART logs on your other board is to buy a standalone UART -&amp;gt; USB device. Typically just a device that looks like a USB cable with 4 pin connectors in the other end of the cable.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or, if you connect P0.06 on your board to P0.06 on the DK, and the same with P0.08, you should see the UART logs from the other board.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t remember if you can do that while the DK&amp;#39;s debugger is connected to the other board, but at least if you unplut the debugger, and make sure that the nRF on the DK is blank, you should be able to use P0.06 and P0.08 on the DK as a UART bridge.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>