<?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>On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9947/on-rtt-viewer-log-value</link><description>I would like to log the adc value on the RTT Viewer. 
 uint16_t adc_result;	This is the variable, which I would like to log. 
 So after the measuring I call: 
 SEGGER_RTT_WriteString(0, adc_value); 
 This will throw an error, because the second parameter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2015 09:38:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9947/on-rtt-viewer-log-value" /><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36927?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 09:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da2354a9-f426-48c7-ba40-fc045a104dc6</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m using a softdevice. And its also programed on the board. I&amp;#39;m sure because when I add retarget.c file again to my project everything will work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36926?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 09:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c17d8378-b803-4594-9f92-a7dd0dabb48c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Are you using a Softdevice and have you remembered to program it to your board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36923?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 08:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41eca02d-dd7c-4775-be68-30e72dd6ee7e</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;No, because the breakpoint wont hit anywhere. I can set a breakpoint on the first initialization of my program and it will not hit. And there is another thing. Usually when I debugg and click on the run symbole(in the left corner), the run symbole wont be clickable until the program is running. But when I remove the retarget.c file and enter the debugg mode and then click on run, the symbole will always stay clickable. And this is the reason, why I assume that the program wont run, when I remove retarget.c file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36922?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2015 08:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c518be18-c601-4dbc-bff2-5acfc912f5ae</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;What sort of debugging? Are you getting hardfaults?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36925?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 14:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:303c655c-e9b7-49d8-b449-cdff65f41804</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;Well, I can build the project without any error or warnings. But the program will not run anymore. With not run, I mean the DK wont be visible anymore and the outputs wont be controled trough the switch. And debugging is also not possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36924?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2015 14:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48b80c99-97ab-4dc5-a88f-9929ddbd49b9</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;More details please? &amp;quot;Doesn&amp;#39;t work&amp;quot; doesn&amp;#39;t tell us much. My application works fine without retarget.c and with RTT printf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36921?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 14:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8f94c33-dc00-4dde-a1a8-8363377b81cc</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;My application doesnt work anymore, since i removed retarget.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36920?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 14:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a8a4bcf-b7a4-4396-adb9-790085d6b673</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;SEGGER_RTT_printf(0, &amp;quot;variable value: %d\n&amp;quot;, variable);&lt;/p&gt;
&lt;p&gt;where the first parameter specifies that the output should be printed to Terminal 0 in the J-Link RTT Viewer, second parameter is the string to print, and the value of &amp;quot;variable&amp;quot; is inserted for &amp;quot;%d&amp;quot;&lt;/p&gt;
&lt;p&gt;I found it. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On RTT Viewer log value</title><link>https://devzone.nordicsemi.com/thread/36919?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 14:01:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc4e54da-8c93-4b89-b9c3-ff9c69dd6147</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi. Have a look at this tutorial: &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;Debugging with Real Time Terminal&lt;/a&gt;. It shows you how to use SEGGER_RTT_printf() to print strings and various different parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>