<?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>Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4691/debug-uart-with-sdk-7-1</link><description>I just switched over from SDK v6 to SDK v7.1 (installed via those Keil Packs). The UART has suddenly stopped working (via Segger USB COM port) and I can no longer see any debug console output. It&amp;#39;s just giving me garbage characters. 
 I&amp;#39;m using the NRF51822</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 May 2015 18:29:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4691/debug-uart-with-sdk-7-1" /><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16634?ContentTypeID=1</link><pubDate>Fri, 22 May 2015 18:29:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e117fc26-e3f7-43d2-a73d-9abcd02df1b3</guid><dc:creator>Jerod</dc:creator><description>&lt;p&gt;Thanks for the tip!  I was just running into this when upgrading from SDK 6.&lt;/p&gt;
&lt;p&gt;The big question is &amp;quot;why&amp;quot;?    What has broken?&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the default HRS example&amp;#39;s output with device_manager output turned on:&lt;/p&gt;
&lt;p&gt;[DM]: &amp;gt;&amp;gt; dm_init.
[DM]: Initializing Application Instance 0x00000000.
[DM]: Initializing Connection Instance 0x00000000.
[DM]: Initializing Peer Instance 0x00000000.
[DM]: Initializing Peer Instance 0x00000001.
[DM]: Initializing Peer Instance 0x00000002.
[DM]: Initializing Peer Insta0[DM]ae[DM]aa[DM]nt[DM]:n[DM]:[e[DM][e[DM]: DevFF[DM]:c4[DM]]F[DM]: Dedx[DM]:[e[DM]:e[DM]: Dev00[DM]: F[DM]x0[DM]: DeeF[DM]:[a[DM]:e[DM]: Dev  [DM]:BF[DM]xF[DM]: DeA0[DM]:[l[DM]:c[DM]: Dev0 [:[D_[DMa[D&amp;lt;[ADV]: Starting fast advertisement[DM]: Request to allocation connection instance
[DM]:[00]: Connection Instance Allocated.
[DM]: Searching for device 0x8F 0xEC 0x53 0x9B 0x38 0x6C.
[DM]:[DI 0x00]: Device type 0xFF.
[DM]: Device Addr 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF.
[DM]:[DI 0x01]: Device type 0xFF.
[DM]: Device Addr 0xFF 0xFF 0xFF 0xFF 0F[DM]e[DM]: Decx
[DMDe[DM]: Dedx[DM]:c[DM][DM:y[DM]: DeA [DM] t&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16633?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2015 15:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a30bb068-a514-404d-8519-56704ac4571c</guid><dc:creator>Seth</dc:creator><description>&lt;p&gt;I&amp;#39;m currently having the same problem, but Keil packs is requiring that I include app_trace_init and log because I&amp;#39;m using the BLE device manager library, which requires them. Any solutions/way around this to get retarget and printf working again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16635?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2014 01:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c73afa-def2-432d-a06a-29cd5d6e5a2b</guid><dc:creator>jt</dc:creator><description>&lt;p&gt;I&amp;#39;m porting my existing application to SDK 7.1. I just got the new NRF51 dev kit (was using PCA10001), so I&amp;#39;ll be doing a more major port in the coming week to that + new SDK.&lt;/p&gt;
&lt;p&gt;Wojciech - thanks, didn&amp;#39;t know that, will give that a shot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16632?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 02:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50bf2943-b7da-4912-af8d-c0c2772921fa</guid><dc:creator>jt</dc:creator><description>&lt;p&gt;Thank you!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16628?ContentTypeID=1</link><pubDate>Mon, 08 Dec 2014 10:49:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffa0f8b4-2a38-40d2-be6b-5c2ae99c4403</guid><dc:creator>Wojciech Jasko</dc:creator><description>&lt;p&gt;Hello,
You have to check which kind of app_uart you have linked to your project. App_trace requires app_uart_fifo.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16631?ContentTypeID=1</link><pubDate>Sat, 06 Dec 2014 01:51:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e593a23e-2ad0-4c34-84f7-45038071ee4c</guid><dc:creator>cpignol</dc:creator><description>&lt;p&gt;Found a solution for the UART problem.&lt;/p&gt;
&lt;p&gt;Stop using app_trace_init and app_trace_log (deselect app_trace in pack routine selection)
import from ble_app_hrs_printf the routine retarget.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;simple_uart.h&amp;quot;
#include &amp;quot;nordic_common.h&amp;quot;
#include &amp;quot;nrf51.h&amp;quot;
#include &amp;quot;nrf51_bitfields.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;**

struct __FILE { int handle; /* Add whatever you need here */ };
FILE __stdout;
FILE __stdin;

void retarget_init(void)
{
    simple_uart_config(RTS_PIN_NUMBER, TX_PIN_NUMBER, CTS_PIN_NUMBER, RX_PIN_NUMBER, HWFC);
}

int fputc(int ch, FILE * p_file) 
{
    simple_uart_put((uint8_t)ch);
    return 0;
}

/**
 *@}

 **/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then use retarget_init(); to initialize the UART and printf to output message. With this setup the baudrate is 38400 no parity no flow control.&lt;/p&gt;
&lt;p&gt;This works with PCA10001  (COM3) and PCA10028 (COM6).&lt;/p&gt;
&lt;p&gt;Claude&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16630?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 09:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08764552-3c45-44d5-bf05-876a27e3e657</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;What do you mean with &amp;quot;switched over&amp;quot;? Are you trying to port your existing application over to SDK 7.1, or did you just start with a fresh example from SDK 7.1?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug UART with SDK 7.1</title><link>https://devzone.nordicsemi.com/thread/16629?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 07:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020351cf-4490-4ef8-98e1-edba944294c6</guid><dc:creator>cpignol</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am also using SDK7.1 with the new nRF6824 (nRF51 Development kit), When I try to use app_trace_init and app_trace_log via Segger USB COM I get the first character of each app_trace_log call. app_trace_log(&amp;quot;Test\r\n&amp;quot;) will print T. I am using PuTTY 115200bps 8 bits no parity no HWFC.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>