<?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>nrf52832 combining SPI and UART printf problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19778/nrf52832-combining-spi-and-uart-printf-problem</link><description>Hi all, 
 I took the example SPI program and I am trying to add UART code to it to debug the SPI transfers. Both examples are working well for me separately. I was able to combine both sets of code (main.c looks good and sdk_config.h looks good) and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2017 18:26:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19778/nrf52832-combining-spi-and-uart-printf-problem" /><item><title>RE: nrf52832 combining SPI and UART printf problem</title><link>https://devzone.nordicsemi.com/thread/76930?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 18:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0fb0e84-8c0a-453f-b970-b54636cc7ab2</guid><dc:creator>jreid27044</dc:creator><description>&lt;p&gt;I did add that to the sdk_config.h (using 13.x alpha).  We were able to get UART and SPI working at the same time but there definitely is something strange going on with the logging and the UART.  Things we do to get it working are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;remove NRF_LOG_INFO steps from the code&lt;/li&gt;
&lt;li&gt;It never works the first time we run the code, but when you unplug and plug the dev kit and open and close the COM window (I use Putty), there is a combination that allows it to start working.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As you can tell I havent fully debugged but hopefully that helps someone else with the same issues.  Thanks for the debug help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 combining SPI and UART printf problem</title><link>https://devzone.nordicsemi.com/thread/76929?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 15:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8495546b-31e0-4209-9811-1d218554b800</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which SDK version are you using? Have you enabled retarget in &lt;em&gt;sdk_config.h&lt;/em&gt; (if using SDK 12.x)?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifndef RETARGET_ENABLED
#define RETARGET_ENABLED 1
#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 combining SPI and UART printf problem</title><link>https://devzone.nordicsemi.com/thread/76928?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 15:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4b0e1b-489e-49ee-9b4b-2a65dcd8874f</guid><dc:creator>jreid27044</dc:creator><description>&lt;p&gt;Thanks for the response!  When I drill in with the debugger, aa_uart_put() seems to function.  Calls the fifo functions properly.  Im not seeing any errors.  It seems to get to the end of the code to put into the fifo and then doesnt return to the top level to continue executing the code in main().  This is similar behavior to printf().  My latest theory is that the SPI code is using the log functionality which is competing with the UART retarget code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 combining SPI and UART printf problem</title><link>https://devzone.nordicsemi.com/thread/76927?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 13:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0943023d-151d-4f30-8d57-e29adff65acd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you able to use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.2.0/group__app__uart.html#ga2e4c8407274a151e72ed5a226529dc36"&gt;&lt;code&gt;app_uart_put()&lt;/code&gt;&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>