<?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>CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29387/cli-rtt-monitor-mode-issue</link><description>Monitor mode debugging seems to have crippled the CLI over RTT. 
 Edit: Reflecting further, ignoring the black vs white background symptom - the issue might simply be that the CLI RTT output is broken. 
 I have a project that implements the CLI over</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jan 2018 15:47:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29387/cli-rtt-monitor-mode-issue" /><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116892?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 15:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d61e781-7d61-4000-b012-c4b5a993063e</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Thanks Jakub, that is working so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116891?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2018 06:23:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09c6ebe-5fe6-4e36-9551-835c659f4e1e</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;I think I have a solution for you. In file: nrf_cli_rtt.c, function: &lt;em&gt;cli_rtt_write&lt;/em&gt; you need to remove following code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (!(CoreDebug-&amp;gt;DHCSR &amp;amp; CoreDebug_DHCSR_C_DEBUGEN_Msk))
    {
        /* If RTT session is not active but RTT console is processed program may stuck.
         * Workaround: If debugger is not connected always return NRF_SUCCESS
         */
         *p_cnt = length;
        return NRF_SUCCESS;
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When you will be not using monitor debug mode this code shall be restored.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116890?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 19:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76811978-3e44-4506-8b3d-56666c2e2f12</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;&amp;quot;echo on&amp;quot; has no effect when using MMD.  It does work without MMD, so I did learn something new!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116886?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 14:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a7768f6-3efe-4c92-9972-fb3444f7344e</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;I can just type &amp;quot;echo on&amp;quot; from PuTTY?    When I switch between Debug Terminal and PuTTY, I have to modify the CLI-RTT ECHO_ON_STATUS in sdk_config.h.  On for PuTTY, off for Debug Terminal.  I&amp;#39;ll try &amp;quot;echo on&amp;quot; from the command line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116889?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 13:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427989d6-5967-437d-bccf-fb7e1e519db3</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Ok, we will investigate that.&lt;/p&gt;
&lt;p&gt;Just to exclude obvious root cause, please send command: &amp;quot;echo on&amp;quot; and check if there is any change.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116888?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 13:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b5c6718-a85c-409a-a1b7-3d8d6a333ab2</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;To clarify - I&amp;#39;ve been using the CLI successfully every day for a couple of months.  Mostly from the Debug Terminal, but sometimes from PuTTY.  Not simultaneously, of course.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116887?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 13:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56d39aa1-3f96-428d-adc3-5c7d031f8b2f</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Thanks for the response Jakub, but it doesn&amp;#39;t it doesn&amp;#39;t address my issue, which is that Monitor Mode debugging is suppressing RTT CLI output.  I&amp;#39;m not trying to run PuTTY and Debug Terminal simultaneously.  Note that I say &amp;quot;Disabling the Debug Terminal and connecting with PuTTY&amp;quot;.  Both PuTTY and Debug Terminal behaviosr are mentioned just to describe the debugging I&amp;#39;ve done so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI RTT Monitor Mode Issue</title><link>https://devzone.nordicsemi.com/thread/116885?ContentTypeID=1</link><pubDate>Fri, 12 Jan 2018 06:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d1635a-8746-4ad6-8a53-4150220a400e</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi Jason,&lt;/p&gt;
&lt;p&gt;This is a known problem, quote from Segger forum:
&amp;quot;The issue is that RTT data can only be grabbed once from J-Link. So when there are multiple terminals &amp;quot;competing&amp;quot; data will be spread or even lost among them.&amp;quot;&lt;/p&gt;
&lt;p&gt;Easy fix for that is to deactivate RTT via Segger Embedded Studio:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Project settings-&amp;gt;Debug-&amp;gt;Debugger-&amp;gt;RTT Enable-&amp;gt; Set to &lt;em&gt;No&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/rtt_5F00_fix.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;What is more, SES RTT terminal is not handling VT100 commands at all so you need to run PuTTY to use CLI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>