<?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>Problems to get the RTT SWD output in a custom board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29667/problems-to-get-the-rtt-swd-output-in-a-custom-board</link><description>Hi to everyone! 
 I have been getting the output of NRF_LOG_INFO functions through RTT in J-Link RTT Viewer terminal. The code has been executing in nRF52832DK. 
 Now I want to execute the code in a custom board with the same MCU (nRF52832), but I don</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 11:34:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29667/problems-to-get-the-rtt-swd-output-in-a-custom-board" /><item><title>RE: Problems to get the RTT SWD output in a custom board.</title><link>https://devzone.nordicsemi.com/thread/117780?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 11:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51635931-ad9a-4561-aaca-e9a13bca0d7f</guid><dc:creator>nemunoz</dc:creator><description>&lt;p&gt;Yeah! it worked!&lt;/p&gt;
&lt;p&gt;So the problem was I didn&amp;#39;t configure the crystals for my custom board.&lt;/p&gt;
&lt;p&gt;The fact is I saw that question before but to see how to configure, program and use the crystals. I didn&amp;#39;t figure out this could be a problem to get an output from a terminal, especially after seen that some components were working.&lt;/p&gt;
&lt;p&gt;Thank you so much, AmbystomaLabs!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems to get the RTT SWD output in a custom board.</title><link>https://devzone.nordicsemi.com/thread/117778?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 21:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941e5c8a-a4ed-440e-bb05-99f95050acf3</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Since you are using the SWD ports on the DK and have successfully loaded your app code, you have a working SWD/RTT port by virtue of the segger chip on the DK which is what routes the SWD to USB.&lt;/p&gt;
&lt;p&gt;So, no need to have a segger on your board as long as you use the DK or a J-Link programmer for SWD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems to get the RTT SWD output in a custom board.</title><link>https://devzone.nordicsemi.com/thread/117779?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 21:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea9c1c08-fa2d-4cd2-abff-709ec8c61b9c</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;Can you be certain that the code is executing correctly just from the LED activity?&lt;/p&gt;
&lt;p&gt;Clock config issues can keep your code from executing and installing the RTT function which is not native to the SWD port. It is possible some aspects of RTT support are not running yet your LED activity is still the same.&lt;/p&gt;
&lt;p&gt;Here is a blog entry where someone had precisely that type of problem: &lt;a href="https://devzone.nordicsemi.com/question/112102/test-program-not-working-in-custom-board/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems to get the RTT SWD output in a custom board.</title><link>https://devzone.nordicsemi.com/thread/117777?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 20:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0ba6df9-acd6-4ba1-a210-70306d0105ec</guid><dc:creator>nemunoz</dc:creator><description>&lt;p&gt;Maybe I&amp;#39;m confusing UART with RTT a little bit, but I&amp;#39;m sure I&amp;#39;m using RTT because in sdk_config.h file I have checked NRF_LOG_BACKEND_RTT_ENABLED and unchecked NRF_LOG_BACKEND_UART_ENABLED.&lt;/p&gt;
&lt;p&gt;Also, I followed &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal" title="Debugging with Real Time Terminal"&gt;the tutorial&lt;/a&gt; to getting started with RTT and in that tutorial doesn&amp;#39;t say if I have to change something to use RTT with a custom board.&lt;/p&gt;
&lt;p&gt;You say there is a Segger chip on developer board for virtual SWD comms. So, if there is not that chip on the custom board, I can&amp;#39;t use RTT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems to get the RTT SWD output in a custom board.</title><link>https://devzone.nordicsemi.com/thread/117776?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 17:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df7945c7-67e8-4b35-973f-2259e93b9388</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;I think you are confusing standard UART terminal sessions and Segger RTT.  RTT uses SWD for its communications path and does not require UART. And, SWD comms are not on gpio but are dedicated pins on nRF.&lt;/p&gt;
&lt;p&gt;The segger chip on the DKs provides for virtual SWD comms and also a virtual UART. RTT uses SWD but it sounds like you were actually using UART for logging/debug info and when you switched to your custom board you lost the virtual UART connection that the DKs provide.&lt;/p&gt;
&lt;p&gt;At this point you will either have to provide for the UART path from your custom board or you will need to go through the process to correctly setup RTT.&lt;/p&gt;
&lt;p&gt;Here is some info on RTT:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/real-time-transfer/about-real-time-transfer/"&gt;www.segger.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>