<?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>nRF52 - SAADC no output in serial terminal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29749/nrf52---saadc-no-output-in-serial-terminal</link><description>Hello, 
 In the blinky project, I have added the following peripherals to build up an application 
 
 Timer 
 UART 
 SAADC 
 PPI 
 
 I have followed the saadc peripheral example to build up the blinky project.
No compile errors. No linker errors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jan 2018 11:32:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29749/nrf52---saadc-no-output-in-serial-terminal" /><item><title>RE: nRF52 - SAADC no output in serial terminal</title><link>https://devzone.nordicsemi.com/thread/117985?ContentTypeID=1</link><pubDate>Thu, 25 Jan 2018 11:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81e6b107-e413-4624-9809-ca85ad6d7787</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;All the printing commands in your application is done using &lt;code&gt;NRF_LOG_INFO()&lt;/code&gt;, but you have not enabled NRF_LOG in your sdk_config.h file. I see you have implemented UART, and included retarget.c in your project, but you do not use &lt;code&gt;printf&lt;/code&gt; for printing any strings. You either have to enable NRF_LOG in sdk_config.h and select the UART backend (see sdk_config.h file of for instance SAADC example), or swap the &lt;code&gt;NRF_LOG_INFO()&lt;/code&gt; calls for &lt;code&gt;printf&lt;/code&gt;. In this case, you also need to enable retargeting of the STDIO functions in sdk_config.h:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// &amp;lt;q&amp;gt; RETARGET_ENABLED  - retarget - Retargeting stdio functions

#ifndef RETARGET_ENABLED
#define RETARGET_ENABLED 1
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>