<?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>Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40217/unable-to-see-uart-logging-from-nrf51822-with-st-link-v2-and-openocd</link><description>I&amp;#39;m attempting to modify some open source software for an nRF51822 chip found here: https://github.com/reversebias/mitosis 
 
 In this code there are some debugging lines that use uart to print some things out. The lines that I am referring to are in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 25 Nov 2018 06:50:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40217/unable-to-see-uart-logging-from-nrf51822-with-st-link-v2-and-openocd" /><item><title>RE: Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/thread/158925?ContentTypeID=1</link><pubDate>Sun, 25 Nov 2018 06:50:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaa44d57-00e3-4a29-a1a1-8cbb35175fd1</guid><dc:creator>GlenPickle</dc:creator><description>&lt;p&gt;I never did end up figuring out how to read print statements, but I found a different solution. I only wanted to print things in order to debug the program, and gdb ended up being the best way to do that. OpenOCD automatically starts a gdb session when you use it, which allowed me to make progress in my project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/thread/157685?ContentTypeID=1</link><pubDate>Fri, 16 Nov 2018 10:51:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c37e9781-ea4a-4fc0-ad0e-092eb0b90d8e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Well. I am not sure, actually. The SEGGER chip does this.&lt;/p&gt;
&lt;p&gt;A JLink will be able to use RTT logging.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want an easy way to see UART logging, you can check out some of the devices from the pictures when googling &amp;quot;&lt;a href="https://www.google.no/search?q=uart+usb+cable&amp;amp;rlz=1C1GCEU_enNO820NO820&amp;amp;tbm=isch&amp;amp;tbo=u&amp;amp;source=univ&amp;amp;sa=X&amp;amp;ved=2ahUKEwjjvoq_3tjeAhWUhKYKHcHzBxsQsAR6BAgDEAE&amp;amp;biw=1718&amp;amp;bih=1319" rel="noopener noreferrer" target="_blank"&gt;Uart USB cable&lt;/a&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But with a JLink, you should be able to see the RTT log using RTT Viewer.&amp;nbsp;See this guide from my previous reply to see how to set it up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/thread/157376?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 23:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b94e494-dc73-4ea2-b5d5-31282adfcca6</guid><dc:creator>GlenPickle</dc:creator><description>&lt;p&gt;Sorry for the delay. To connect to the SWDIO and SWDCLK to program the nRF51 I use an ST-Link v2. I&amp;#39;ll look into some way to translate UART to USB so that I can open a putty session. A J link would be able to do that if I bought one right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/thread/156421?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 08:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9484bee1-635a-42fc-92e8-0605796c4666</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. I see. What do you connect to SWDIO and SWDCLK to program your nRF51?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UART should work either way, but note that you need something to translate from UART to &amp;quot;Simulated UART&amp;quot;(USB), so that you can use a terminal like Termite or Putty.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/thread/156400?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 02:22:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8ebd464-9c5e-4da4-a954-32f0db055ba2</guid><dc:creator>GlenPickle</dc:creator><description>&lt;p&gt;Thank you for the response! I have done some research into the RTT logging, but unless I&amp;#39;m understanding something incorrectly it seems I might need to buy some new debugging tools (like a JLink) to use that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will experiment with trying to open a UART Terminal, thanks!&lt;/p&gt;
&lt;p&gt;I am not using an NRF51 DK, I have the core nRF51822 module SMD soldered to my PCB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to see uart logging from nRF51822 with ST-Link v2 and openOCD</title><link>https://devzone.nordicsemi.com/thread/156356?ContentTypeID=1</link><pubDate>Wed, 07 Nov 2018 15:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c86598-7483-4aeb-a0c5-0caf9e4e0735</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t see UART messages via openOCD. I suspect what you are looking for is RTT logging. Please check out &lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/debugging-with-real-time-terminal"&gt;this blog post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Alternatively you can use a UART terminal (Putty or Termite) to watch the UART log.&lt;/p&gt;
&lt;p&gt;I assume you aren&amp;#39;t using an nRF51 DK, since you are using ST-Link?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>