<?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 J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9520/using-j-link-virtual-com-port-on-10028-dk-w-app_trace</link><description>I would like to see app_trace_log messages on a terminal window on my PC. 
 I did the following things: 
 
 Added the define ENABLE_DEBUG_LOG_SUPPORT to my project in the C/C++ tab. 
 Added a call to app_trace_init() in my main where all the other</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Oct 2015 21:47:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9520/using-j-link-virtual-com-port-on-10028-dk-w-app_trace" /><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35171?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2015 21:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e551aeae-d778-4c12-9c24-77450c16675b</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;The Keil RTT stuff is working like a champ. I had to turn off Device Manager logging, which looks to be on in the template app by default. Otherwise, the &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;tutorial&lt;/a&gt; got me right up and going.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35170?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 22:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:644cfe4f-d4e7-49b5-a7f2-6378129a1e65</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;Anders,&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what happens in the init. This is in app_trace_init:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    const app_uart_comm_params_t comm_params =  
{
    RX_PIN_NUMBER, 
    TX_PIN_NUMBER, 
    RTS_PIN_NUMBER, 
    CTS_PIN_NUMBER, 
    APP_UART_FLOW_CONTROL_DISABLED, 
    false, 
    UART_BAUDRATE_BAUDRATE_Baud38400
}; 
    
APP_UART_FIFO_INIT(&amp;amp;comm_params, 
                   UART_RX_BUF_SIZE, 
                   UART_TX_BUF_SIZE, 
                   uart_error_handle, 
                   APP_IRQ_PRIORITY_LOW,
                   err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that flow control appears to be disabled.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m basing my code on the BLE template project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35169?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 07:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e19826ec-e9c0-44cc-8576-cdf9bd0a2405</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Did you hear about &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;RTT&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35168?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2015 06:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10d37c05-18f2-4428-a296-9492bd8971e1</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Flow control is on by default in most of our example projects. Are you basing your code on one of these? It is set inside uart_init() with the APP_UART_FLOW_CONTROL_ENABLED as the 5th parameter inside the app_uart_comm_params_t struct. &lt;a href="https://devzone.nordicsemi.com/tutorials/4/testing-and-using-a-simple-ble-application/"&gt;This tutorial&lt;/a&gt; discussed flow control on the nRF51 DK, as well as various terminal applications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35167?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 22:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e04ac5-008f-4f50-be89-c3b7308bf245</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;If I run app_trace_log in a loop I get occasional random characters in the terminal session. This looks a lot like a baud rate issue but I can&amp;#39;t find any mismatch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35166?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 22:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc4507f2-0d62-495e-8bff-4b4dcae2daba</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;Here are the pin settings for the UART (from pca10028.h):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define RX_PIN_NUMBER  11
#define TX_PIN_NUMBER  9
#define CTS_PIN_NUMBER 10
#define RTS_PIN_NUMBER 8
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I believe these are the correct pins for the UART to talk to the Segger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using J-Link Virtual Com Port on 10028 DK w/ app_trace</title><link>https://devzone.nordicsemi.com/thread/35165?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2015 22:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21ffde89-d6b2-4708-8d7c-d54ef8929b20</guid><dc:creator>Bret Foreman</dc:creator><description>&lt;p&gt;Actually, I&amp;#39;m getting a few &amp;#39;[&amp;#39; characters from time to time, as if the baud rate was wrong. But I notice that app_trace_init is setting UART_BAUDRATE_BAUDRATE_Baud38400, which is the same baud I&amp;#39;m using in tera term.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>