<?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 16 character limit?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82878/cli-16-character-limit</link><description>I have a small program that is to be used in production to test my device. It has to be scriptable so I&amp;#39;m using teraterm over rtt. 
 No external IO for a serial port. 
 Everything is working great until I try to issue a long command, anything &amp;gt; 16 characters</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Dec 2021 16:19:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82878/cli-16-character-limit" /><item><title>RE: CLI 16 character limit?</title><link>https://devzone.nordicsemi.com/thread/344429?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 16:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75c4e423-ae7c-4d63-bb93-9dceb5208742</guid><dc:creator>Keith V</dc:creator><description>&lt;p&gt;found it, there IS a setting in the sdk_config:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer. 
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Change that to something bigger, I went to 32 and it all works as expected.&lt;/p&gt;
&lt;p&gt;I suspect that the RTT viewer does a retry if the max number of characters is hit, while teraterm just throws it over the wall and hopes for the best&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI 16 character limit?</title><link>https://devzone.nordicsemi.com/thread/344417?ContentTypeID=1</link><pubDate>Mon, 20 Dec 2021 15:30:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb08ed6-8fca-4ea4-a495-cb43681bbd2c</guid><dc:creator>Keith V</dc:creator><description>&lt;p&gt;Well Thats good&lt;/p&gt;
&lt;p&gt;did you see the issue where you have to press enter twice for strings longer that 15 chars too?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI 16 character limit?</title><link>https://devzone.nordicsemi.com/thread/344206?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 17:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4187c421-d170-4826-83d4-59d7a9c5a5f6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Aha, so it is all RTT. I thought you were using PuTTY and Tera Term for UART. Then this is really strange, and I do not expect to find an explanation in sdk_config.h.&lt;/p&gt;
&lt;p&gt;I gave this a test now, and see the same as you. Using the unmodified CLI example I see the following (erroneous) behavior:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;rtt_cli:~$ rtt_cli:~$ print all a b c d e f g h i k
print all a b c
a b c&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Using UART (with PuTTY) I get the expected result:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart_cli:~$ print all a b c d e f g h i k
a b c d e f g h i k&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am not able to explain this at the moment but I will look at it again in Monday.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI 16 character limit?</title><link>https://devzone.nordicsemi.com/thread/344196?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 16:09:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f979bffb-44ce-4452-bd8a-e127c7312c69</guid><dc:creator>Keith V</dc:creator><description>&lt;p&gt;I do agree it&amp;#39;s likely something in the terminal programs&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not using the UART, I&amp;#39;m using putty and teraterm in telnet mode. port 19021&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK v17.0.2&lt;/p&gt;
&lt;p&gt;Soft device 7.2.0&lt;/p&gt;
&lt;p&gt;Here is my sdk_config&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3465.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../3465.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI 16 character limit?</title><link>https://devzone.nordicsemi.com/thread/344151?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2021 12:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22033d77-aab9-476d-9b36-85daa91fdbf5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Keith,&lt;/p&gt;
&lt;p&gt;There is not 16 character limit in the CLI. I notice that you only see issues with the UART backend and not the RTT backend, so perhaps there is something related to your UART buffer configuration? Can you share your sdk_config.h so I can see if I spot anything there? Which SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>