<?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>can i print char tpye variable in RTT segger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30135/can-i-print-char-tpye-variable-in-rtt-segger</link><description>can i print char tpye variable in RTT segger</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Feb 2018 12:21:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30135/can-i-print-char-tpye-variable-in-rtt-segger" /><item><title>RE: can i print char tpye variable in RTT segger</title><link>https://devzone.nordicsemi.com/thread/121514?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 12:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd176d7-f54d-44f4-b0b4-a519d10e04ef</guid><dc:creator>kirt</dc:creator><description>&lt;p&gt;thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i print char tpye variable in RTT segger</title><link>https://devzone.nordicsemi.com/thread/121280?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 14:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0454f219-5e2d-4297-8024-83854e766088</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I think it should be %7d and not %.7d. I believe it asks the interpreter to display a decimal integer&amp;nbsp;of 7 ciphers.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Try this:&amp;nbsp;SEGGER_RTT_printf(0, &amp;quot;Number is: %d\n&amp;quot;, 2);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i print char tpye variable in RTT segger</title><link>https://devzone.nordicsemi.com/thread/121243?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 12:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2289ec1-d134-4f33-9a79-6dcf9b008bd2</guid><dc:creator>kirt</dc:creator><description>&lt;p&gt;Thank you haaakonsh.I am not gettting above command&amp;nbsp;SEGGER_RTT_printf(0, &amp;quot;%sTime: %s%s%.7d\n&amp;quot;, RTT_CTRL_RESET, RTT_CTRL_BG_BRIGHT_RED, RTT_CTRL_TEXT_BRIGHT_WHITE, 2222222);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;what is .7d ?&lt;/p&gt;
&lt;p&gt;and char type var can print 0-255 data&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can i print char tpye variable in RTT segger</title><link>https://devzone.nordicsemi.com/thread/119690?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 09:30:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46cb21a9-82bb-4692-aece-468617a212d9</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Yes, use SEGGER_RTT_printf():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;SEGGER_RTT_printf(0, &amp;quot;%sTime: %s%s%7d\n&amp;quot;, RTT_CTRL_RESET, RTT_CTRL_BG_BRIGHT_RED, RTT_CTRL_TEXT_BRIGHT_WHITE, 2222222);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I believe the only difference from the standard C library definition of printf is the addition of the first parameter, &amp;#39;0&amp;#39;, who refereres to the RTT channel. Should be &amp;#39;0&amp;#39; as a default value.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>