<?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>Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23015/using-rtt-viewer-in-sdk-12-2-ses</link><description>sdkconfig.txt mainc.txt (/attachment/6fb97103178e9eb2c30302351e63ce8f)Can you please tell whether i follow the the entire tutorial as in the link or just the first step for SDK 12.2 SES.
Even if i use the first step, i need the CMSIS wizard that uses</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 14:24:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23015/using-rtt-viewer-in-sdk-12-2-ses" /><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90555?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef9bec1c-a583-49a2-a144-c6988d5a7f5b</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;sure.&lt;/p&gt;
&lt;p&gt;Thnks again!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90545?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c28976f-7394-419a-a43d-498572cf3e8c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Great! Let me know if you run into more troubles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90553?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e960e0-1f7d-4419-a150-1dcb656f3894</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;ya. its diplaying the text APP:INFO: on the window. But i am using only terminal 0 for the moment. Hope thats okay
Now i will try resetting the board and extracting the samples&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90552?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78caa9c2-86f1-4fba-af3b-aad01019407b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did not see your comment above. You got it working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90554?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3dd335-afb8-4c85-9adf-5499be201f5f</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;i have nrf51-PCA10028 for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90551?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:28:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addfa547-83f8-4ecd-b768-c05c9ca9f031</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Flash your board with it (it is for the nRF52 DK - PCA10040 board, if you have other board, let me know), either using &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html?cp=5_1_3"&gt;nrfjprog&lt;/a&gt;, &lt;a href="http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRFgo-Studio/"&gt;nRFgo Studio&lt;/a&gt;, or drop it to the JLINK drive. Your device will print &amp;quot;Hello&amp;quot; to the RTT terminal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90550?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22ab51c7-6a74-4613-a2f0-b4fdca8c1760</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;what should i do with this file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90549?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:277e4548-8195-4efc-b8e0-0533decfcc32</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I tried your code (compiled with Keil 5, commented out some lines causing errors) and it&amp;#39;s printing fine to the RTT terminal. Could you try the attached HEX-file, to see if the error is in the application or in the RTT connection? &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4401.nrf52832_5F00_xxaa.hex"&gt;nrf52832_xxaa.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90548?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d50e8f9-489d-42e5-8e62-77afab2ea689</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Finally it goes okay for now.&lt;/p&gt;
&lt;p&gt;Thanks!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90544?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 13:00:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddc5027e-b6b3-4237-b9f9-e5700d76517f</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;everything seems okay.
i have got the time samples accurately on the logic analyzer.
now i just have to print the time samples on the RTT. I also tried setting break points on nrf log info and the other one i added. its executing okay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90561?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 12:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d25bcc0-e133-4442-9d98-a8dd837b47ac</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You should not need to run termite. Are you sure the code is actually executing and that you did not end up in the error handler? Have you tried &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;debugging&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90560?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 12:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca1dbd87-2760-4fdb-be7d-a8f6f6bac77e</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;i can remove the printf but still when i open the black window, no text appears, it says RTT is connected but when i go to input- sending-send on enter, no data shows up.
Do i have to open the termite window also while logging maybe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90547?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 12:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c665c90-7c59-4c6d-9dd8-a058f450f57a</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;sure.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90556?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 12:13:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28915fd6-97b5-4961-9f31-d290da59bce3</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I would also recommend that you remove the call to &lt;code&gt;printf&lt;/code&gt;, as this can cause your code to halt if stdio functions are not retargeted to UART etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90558?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 12:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a43a0dd-2d56-418b-b272-d752298daa74</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;I have added APP_ERROR_CHECK(NRF_LOG_INIT(NULL));  and NRF_LOG_INFO() just at the start of the curly bracket&lt;/p&gt;
&lt;p&gt;hope this works!!! I will verify it&lt;/p&gt;
&lt;p&gt;Thanks for this!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90557?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 11:49:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dc0b034-37e3-4e29-bdd9-6b3f23516fee</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In addition to enabling the log module in &lt;em&gt;sdk_config.h&lt;/em&gt; and selecting the RTT backend, you also need to initalize the log module, by adding the line &lt;code&gt;APP_ERROR_CHECK(NRF_LOG_INIT(NULL));&lt;/code&gt; in the start of the main function. You can now print to RTT using &lt;code&gt;NRF_LOG_INFO()&lt;/code&gt;, as shown in many of the other examples (SPI, SAADC, etc.).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90546?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 11:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c15095-8161-46ba-b596-c75a9db85266</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Hi, as i told you i was using sdk 12.2 SES. So for that the tutorial mentions at the very beginning to enable the log module which is done.&lt;/p&gt;
&lt;p&gt;You can verify the changes in attached files at the topmost comment.&lt;/p&gt;
&lt;p&gt;But the basic things like starting the jlink window and seeing the text looked obvious to start the viewer.&lt;/p&gt;
&lt;p&gt;But let me know the way to do this for my sdk version.&lt;/p&gt;
&lt;p&gt;thanks in advance!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90543?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 11:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:971ddde3-6ca0-4b88-a9de-37cb94e278e1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please upload your main.c and sdk_config.h file, and specify which example you are using. Note that the information in the tutorial does not apply if you use NRF_LOG for RTT printing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90559?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 10:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:028b0c9b-31e4-46bb-8e13-50bedcea5e64</guid><dc:creator>khosla</dc:creator><description>&lt;p&gt;Hi, I have done all the necessary changes in the SDKconfig.h file but when i open the rtt viewer command window, as per the tutorial some text hello should be printed as shown in my mainc file. but nothing is printed. So probably, the RTT isn&amp;#39;t working. Can you help me fix this?&lt;/p&gt;
&lt;p&gt;I even tried to put the #define NRF_LOG_DEFERRED 0 as it was already 1 when i first viewed the file. This would have made things a bit easier for operating the RTT viewer. But still nothing is being printed.&lt;/p&gt;
&lt;p&gt;I quote the line from the tutorial referred to earlier saying &amp;quot;Now, load the code you compiled above onto your device, and you should see the text &amp;quot;Hello World!&amp;quot; appear. Notice if you open Termite you will also see the text &amp;quot;Start..&amp;quot; which is still printed on the serial port as before. You can now use the ble_app_uart project as intended, but also send text to RTT in order to debug. Keep in mind that SEGGER_RTT_WriteString() is much faster than printf, so you can safely call this function without it affecting the real time properties of your application.&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTT viewer in SDK 12.2 SES</title><link>https://devzone.nordicsemi.com/thread/90542?ContentTypeID=1</link><pubDate>Fri, 23 Jun 2017 08:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fbe1f90-dd5b-4ba7-9f53-c8f73381c02b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be sufficient to enable NRF_LOG in &lt;em&gt;sdk_config.h&lt;/em&gt; and set the backend to use RTT.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any other tools that can edit the CMSIS files, except Keil and CMSIS Configuration Wizard. Why not try to undertand how the file works and fix the errors instead of looking for another tool? The documentation can be found &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v13.0.0/sdk_config.html?cp=4_0_0_1_6"&gt;here&lt;/a&gt;, and on the Keil page linked there. If you have some issues, post it here and I will try to help you solve it.&lt;/p&gt;
&lt;p&gt;To enable logging over RTT, set the following defines in your &lt;em&gt;sdk_config.h&lt;/em&gt; file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_LOG_ENABLED 1

#define NRF_LOG_BACKEND_SERIAL_USES_UART 0

#define NRF_LOG_BACKEND_SERIAL_USES_RTT 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you have enabled deferred logging by setting &lt;code&gt;#define NRF_LOG_DEFERRED 1&lt;/code&gt;, you need to call NRF_LOG_PROCESS() or NRF_LOG_FLUSH() in you main loop, to process the log queue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>