<?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>nrf51822 Debug</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6314/nrf51822-debug</link><description>Hi Team, 
 My application is based on nrf51822 SoC in which I am using
BLE and UART interfaces. 
 There is single UART available and I have used it in communicating with
other serial device. Now the problem is to debug the application. 
 Is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Nov 2015 16:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6314/nrf51822-debug" /><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22040?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2015 16:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b12d975f-28dc-426d-805c-0bd694dd1120</guid><dc:creator>los</dc:creator><description>&lt;p&gt;I got same problem. First I bit banged UART Tx using a timer. But when radio is active, you get a bad uart timing because of ble higher priority ITs. You will find code of this first version here :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Lahorde/AltSoftSerial/commit/5577588df9d7b418ea3ccfbf9ae2721766e69345"&gt;github.com/.../5577588df9d7b418ea3ccfbf9ae2721766e69345&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After, I used softdevice timeslot API with timer 0 to bit bang UART, you will find code here :
&lt;a href="https://github.com/Lahorde/AltSoftSerial"&gt;github.com/.../AltSoftSerial&lt;/a&gt;
I&amp;#39;ve tested it @9600bps&lt;/p&gt;
&lt;p&gt;AltSoftSerial library is used on top of Arduino Core. You will find a full &amp;quot;nrf51 arduino application&amp;quot; using AltSoftSerial here :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Lahorde/nrf51_template_application"&gt;github.com/.../nrf51_template_application&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;lah&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22033?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2015 09:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6c481ae-ce5a-4e84-9faa-062ffa2efa9b</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;As several others have posted, you can use a J-Link and the RTT feature.&lt;/p&gt;
&lt;p&gt;See this &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;tutorial&lt;/a&gt; for how to set it up&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22032?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 09:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:476e91ce-3af1-43d5-8aed-239686a9a703</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Yup I think with s120 softdevice it is achievable !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22039?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 09:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:167465ec-41f2-482e-bb6a-a82c1a1dc737</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Nice but this will add cost!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22035?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 09:09:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54552780-7b09-41f8-8a62-6a5e683b1800</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;I think two TX pin could serve, to transmit debug I may change the TX &lt;strong&gt;pin number&lt;/strong&gt; and restore to &lt;strong&gt;normal&lt;/strong&gt; to talk with the other device connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22038?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 18:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53289eac-747d-4295-8c54-fc5b7e789246</guid><dc:creator>Nick Pelis</dc:creator><description>&lt;p&gt;If your only option for communicating with the other device is over serial, and if you also need a second UART into the Nordic part for debugging/validation/test/etc., one alternative is to use an I2C-to-UART bridge chip.  NXP makes decent parts, check out &lt;a href="http://www.nxp.com/products/interface_and_connectivity/bridges/i2c_spi_slave_to_uart_irda_gpio_bridges/#products"&gt;this link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22031?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 12:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4c38d9c-ada2-4e4b-9ec9-50fa2ff5b968</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;How about sending the debug print over BLE ? assuming BLE part is already functioning of course.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22037?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 12:37:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf3c8f7-5767-4667-90bf-243b43e40b71</guid><dc:creator>Daniel Tralamazza</dc:creator><description>&lt;p&gt;If you have a JLink I recommend using their &lt;a href="https://www.segger.com/jlink-real-time-terminal.html"&gt;RTT&lt;/a&gt; for debug logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22036?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 11:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75ac6a68-61f8-42d8-a68c-6abba86b2fd3</guid><dc:creator>JohnBrown</dc:creator><description>&lt;p&gt;You could bit-bang a UART, but probably not with the BLE stack running. You could also possibly use another output pin to select one of two possible routes for you serial data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22034?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2015 05:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e24b481a-2d5f-4429-a921-e3acf1803fa5</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;Is there any other option to have debug?
Something like implementing UART on normal GPIO pins?
Or any other idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22030?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2015 09:18:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5ac94a7-0327-4ecd-8513-21d5687b8fd6</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;I have access of SWD interface but I don&amp;#39;t have UART for normal debugging without J-Link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22028?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2015 09:16:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a947be02-bf7f-4e0c-b580-90b4648560de</guid><dc:creator>Milan</dc:creator><description>&lt;p&gt;Yes, I am planning to make a board for my application with nRF51822 SoC.
I am worried that I won&amp;#39;t have UART for debugging as UART is already busy communicating with
other device.&lt;/p&gt;
&lt;p&gt;Any Idea on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22027?ContentTypeID=1</link><pubDate>Wed, 01 Apr 2015 11:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca609e6-1c0b-4f0d-82aa-7e1a30c88e78</guid><dc:creator>Vebj&amp;#248;rn</dc:creator><description>&lt;p&gt;Is it a custom board? Which pins do you have access to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 Debug</title><link>https://devzone.nordicsemi.com/thread/22029?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2015 14:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d61bae7-babe-4c84-8941-e046de25972e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Do you have access to the SWD interface pins ?  You use the SWD interface with a Jtag tool such as J-Link or CMSIS-DAP for Flashing &amp;amp; debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>