<?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 use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6852/can-i-use-uart-with-an-external-module-linked-up-to-nrf51dk-via-swd</link><description>I am really struggling getting anything to work on my revision 1 module and as it has nothing connected at this moment all I can use is BLE or UART to observe any function. 
 If it is possible.. how to find out the correct values for 
 RX_PIN_NUMBER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 May 2015 06:41:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6852/can-i-use-uart-with-an-external-module-linked-up-to-nrf51dk-via-swd" /><item><title>RE: Can I use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/thread/24146?ContentTypeID=1</link><pubDate>Tue, 05 May 2015 06:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4864770-010e-4d0a-888d-9715eb2f8e8b</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Which target device I chose doesn&amp;#39;t seem to affect my setup. What build code do you have on our chip? Sometimes I have experienced that I need to close and reopen RTT viewer to get it working, but I don&amp;#39;t remember when i occurs and I&amp;#39;m not able to reproduce it now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/thread/24142?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 14:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f84510d6-a010-4891-b684-1ffcda8e980c</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;Got it working and running in a minute. Well that was easy, thanks! At least on the nRF51-DK. But not yet on the module...&lt;/p&gt;
&lt;p&gt;Got it. For the DK I chose the target in the RTT Viewer as in the Guide but for my module I switched to my chip. Looks like I wasn&amp;#39;t suppose to do that. Can you confirm this with your beacon? Everything working now!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/thread/24143?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 13:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fefe1dfe-d2c9-475b-97b3-31894ef1260d</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;@muhkuhns: Yes, that is correct. I have it running like that as we speak (I use a nrf Beacon with a rev 2 IC).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/thread/24144?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 13:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa98778a-933f-49d7-b1e0-a9644d06cfcb</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Of course UART can&amp;#39;t be routed via SWD. There are some logging protocols ARM provides which do run over the debug interface, but the NRF51 doesn&amp;#39;t have any of them and I don&amp;#39;t often see them used anyway. None of them have anything to do with a UART which is entirely a different thing.&lt;/p&gt;
&lt;p&gt;RTT is a Segger thing. Look up Segger RTT, it&amp;#39;s documented on their site. It&amp;#39;s very easy to use and I see now there&amp;#39;s even a tutorial someone has kindly written for Nordic&amp;#39;s chips. yes it uses the USB on the PC but not the serial port piece, it uses the Segger J-Link piece directly. All it really does is read a chunk of memory off the chip at regular intervals like any other chunk of memory can be read, the Segger RTT code sets up a ring buffer to dump text into, bidirectionally. It&amp;#39;s actually very simple, just that Segger have made it into a defined API and integrated it into their debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/thread/24145?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 12:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:318c8377-69c8-4b71-8028-3167bdd3565b</guid><dc:creator>muhkuhns</dc:creator><description>&lt;p&gt;I was hoping I could just use UART, but it seems it can&amp;#39;t be &amp;quot;routed&amp;quot; via SWD and the nRF51-DK.&lt;/p&gt;
&lt;p&gt;But RTT would work this way: PC &amp;lt;-USB-&amp;gt; nRF51-DK &amp;lt;-SWD-&amp;gt; nRF51822 Module ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I use UART with an external module linked up to nRF51DK via SWD?</title><link>https://devzone.nordicsemi.com/thread/24141?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 12:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be6c3db3-e17f-4cc7-87ea-c121689c3d90</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Maybe &lt;a href="https://www.segger.com/jlink-real-time-terminal.html"&gt;J-Link Real Time Terminal&lt;/a&gt; is what you seek? Tutorial here: &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;Debugging with Real Time Terminal&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If this is not applicable to you, what module are you using? Correct values for the pins totally depends on what GPIOs are available on your module. And remember that you can route the UART signals on the nRF51 to any GPIO pins you want and you don&amp;#39;t necessarily need the RTS and CTS pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>