<?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>No data output from uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37279/no-data-output-from-uart</link><description>Hi, Everyone 
 My development environment is PCA10028, SoftDevice 130, SDK12.3.0 
 I am testing the input and output of the uart using nRF5_SDK_12.3.0_d7731ad\examples\peripheral\uart
I use RTT for debugging and uart for communication with sensor.
Terminal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Aug 2018 11:57:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37279/no-data-output-from-uart" /><item><title>RE: No data output from uart</title><link>https://devzone.nordicsemi.com/thread/145110?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 11:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:146f78e7-fa2d-441b-ae35-66d120c55181</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay, have you had any progress with this issue?&lt;br /&gt;If so could you give an update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No data output from uart</title><link>https://devzone.nordicsemi.com/thread/143649?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2018 04:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d1b150a-e186-4481-897a-845c58dde643</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi, Martin&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added log_init () to main.c as advised by you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; The result of the program execution &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. log_init ()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;APP_UART_FIFO_INIT () &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;=&amp;gt; error_code 0x08 occurs in nrf_drv_uart_init () &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. APP_UART_FIFO_INIT ()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;log_init () &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; =&amp;gt; No error occurred &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. #define NRF_LOG_BACKEND_SERIAL_USES_UART 1 &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; #define NRF_LOG_BACKEND_SERIAL_USES_RTT 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; If the setting is as above&amp;nbsp; I can not get uart input as input to app_uart_get () &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Best regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No data output from uart</title><link>https://devzone.nordicsemi.com/thread/143550?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2018 11:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e62217-7c47-4115-b36d-9a094d1b973a</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Alex,&lt;/p&gt;
&lt;p&gt;I would recommend that you take a look at the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.3.0%2Fnrf_log.html&amp;amp;cp=4_0_6_3_17" target="_blank" rel="noopener noreferrer"&gt;logger module documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here is how you can set the sdk_config.h to &lt;em&gt;enable RTT.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;

#ifndef SDK_CONFIG_H
#define SDK_CONFIG_H
// &amp;lt;&amp;lt;&amp;lt; Use Configuration Wizard in Context Menu &amp;gt;&amp;gt;&amp;gt;\n
#ifdef USE_APP_CONFIG
#include &amp;quot;app_config.h&amp;quot;
#endif
// &amp;lt;h&amp;gt; nRF_Drivers 

//==========================================================
// &amp;lt;e&amp;gt; PERIPHERAL_RESOURCE_SHARING_ENABLED - nrf_drv_common - Peripheral drivers common module
//==========================================================
#ifndef PERIPHERAL_RESOURCE_SHARING_ENABLED
#define PERIPHERAL_RESOURCE_SHARING_ENABLED 0
#endif
#if  PERIPHERAL_RESOURCE_SHARING_ENABLED
// &amp;lt;e&amp;gt; COMMON_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef COMMON_CONFIG_LOG_ENABLED
#define COMMON_CONFIG_LOG_ENABLED 0
#endif
#if  COMMON_CONFIG_LOG_ENABLED
// &amp;lt;o&amp;gt; COMMON_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef COMMON_CONFIG_LOG_LEVEL
#define COMMON_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; COMMON_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef COMMON_CONFIG_INFO_COLOR
#define COMMON_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; COMMON_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef COMMON_CONFIG_DEBUG_COLOR
#define COMMON_CONFIG_DEBUG_COLOR 0
#endif

#endif //COMMON_CONFIG_LOG_ENABLED
// &amp;lt;/e&amp;gt;

#endif //PERIPHERAL_RESOURCE_SHARING_ENABLED
// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver
//==========================================================
#ifndef UART_ENABLED
#define UART_ENABLED 1
#endif
#if  UART_ENABLED
// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_HWFC  - Hardware Flow Control
 
// &amp;lt;0=&amp;gt; Disabled 
// &amp;lt;1=&amp;gt; Enabled 

#ifndef UART_DEFAULT_CONFIG_HWFC
#define UART_DEFAULT_CONFIG_HWFC 0
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_PARITY  - Parity
 
// &amp;lt;0=&amp;gt; Excluded 
// &amp;lt;14=&amp;gt; Included 

#ifndef UART_DEFAULT_CONFIG_PARITY
#define UART_DEFAULT_CONFIG_PARITY 0
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_BAUDRATE  - Default Baudrate
 
// &amp;lt;323584=&amp;gt; 1200 baud 
// &amp;lt;643072=&amp;gt; 2400 baud 
// &amp;lt;1290240=&amp;gt; 4800 baud 
// &amp;lt;2576384=&amp;gt; 9600 baud 
// &amp;lt;3862528=&amp;gt; 14400 baud 
// &amp;lt;5152768=&amp;gt; 19200 baud 
// &amp;lt;7716864=&amp;gt; 28800 baud 
// &amp;lt;10289152=&amp;gt; 38400 baud 
// &amp;lt;15400960=&amp;gt; 57600 baud 
// &amp;lt;20615168=&amp;gt; 76800 baud 
// &amp;lt;30924800=&amp;gt; 115200 baud 
// &amp;lt;61865984=&amp;gt; 230400 baud 
// &amp;lt;67108864=&amp;gt; 250000 baud 
// &amp;lt;121634816=&amp;gt; 460800 baud 
// &amp;lt;251658240=&amp;gt; 921600 baud 
// &amp;lt;268435456=&amp;gt; 57600 baud 

#ifndef UART_DEFAULT_CONFIG_BAUDRATE
#define UART_DEFAULT_CONFIG_BAUDRATE 30924800
#endif

// &amp;lt;o&amp;gt; UART_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 

#ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY 3
#endif

// &amp;lt;q&amp;gt; UART_EASY_DMA_SUPPORT  - Driver supporting EasyDMA
 

#ifndef UART_EASY_DMA_SUPPORT
#define UART_EASY_DMA_SUPPORT 1
#endif

// &amp;lt;q&amp;gt; UART_LEGACY_SUPPORT  - Driver supporting Legacy mode
 

#ifndef UART_LEGACY_SUPPORT
#define UART_LEGACY_SUPPORT 1
#endif

// &amp;lt;e&amp;gt; UART0_ENABLED - Enable UART0 instance
//==========================================================
#ifndef UART0_ENABLED
#define UART0_ENABLED 1
#endif
#if  UART0_ENABLED
// &amp;lt;q&amp;gt; UART0_CONFIG_USE_EASY_DMA  - Default setting for using EasyDMA
 

#ifndef UART0_CONFIG_USE_EASY_DMA
#define UART0_CONFIG_USE_EASY_DMA 1
#endif

#endif //UART0_ENABLED
// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; UART_CONFIG_LOG_ENABLED - Enables logging in the module.
//==========================================================
#ifndef UART_CONFIG_LOG_ENABLED
#define UART_CONFIG_LOG_ENABLED 0
#endif
#if  UART_CONFIG_LOG_ENABLED
// &amp;lt;o&amp;gt; UART_CONFIG_LOG_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef UART_CONFIG_LOG_LEVEL
#define UART_CONFIG_LOG_LEVEL 3
#endif

// &amp;lt;o&amp;gt; UART_CONFIG_INFO_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef UART_CONFIG_INFO_COLOR
#define UART_CONFIG_INFO_COLOR 0
#endif

// &amp;lt;o&amp;gt; UART_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef UART_CONFIG_DEBUG_COLOR
#define UART_CONFIG_DEBUG_COLOR 0
#endif

#endif //UART_CONFIG_LOG_ENABLED
// &amp;lt;/e&amp;gt;

#endif //UART_ENABLED
// &amp;lt;/e&amp;gt;

// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;h&amp;gt; nRF_Libraries 

//==========================================================
// &amp;lt;q&amp;gt; APP_FIFO_ENABLED  - app_fifo - Software FIFO implementation
 

#ifndef APP_FIFO_ENABLED
#define APP_FIFO_ENABLED 1
#endif

// &amp;lt;e&amp;gt; APP_UART_ENABLED - app_uart - UART driver
//==========================================================
#ifndef APP_UART_ENABLED
#define APP_UART_ENABLED 1
#endif
#if  APP_UART_ENABLED
// &amp;lt;o&amp;gt; APP_UART_DRIVER_INSTANCE  - UART instance used
 
// &amp;lt;0=&amp;gt; 0 

#ifndef APP_UART_DRIVER_INSTANCE
#define APP_UART_DRIVER_INSTANCE 0
#endif

#endif //APP_UART_ENABLED
// &amp;lt;/e&amp;gt;

// &amp;lt;q&amp;gt; RETARGET_ENABLED  - retarget - Retargeting stdio functions
 

#ifndef RETARGET_ENABLED
#define RETARGET_ENABLED 1
#endif

// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;h&amp;gt; nRF_Log 

//==========================================================
// &amp;lt;e&amp;gt; NRF_LOG_ENABLED - nrf_log - Logging
//==========================================================
#ifndef NRF_LOG_ENABLED
#define NRF_LOG_ENABLED 1
#endif
#if  NRF_LOG_ENABLED
// &amp;lt;e&amp;gt; NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
//==========================================================
#ifndef NRF_LOG_USES_COLORS
#define NRF_LOG_USES_COLORS 0
#endif
#if  NRF_LOG_USES_COLORS
// &amp;lt;o&amp;gt; NRF_LOG_COLOR_DEFAULT  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRF_LOG_COLOR_DEFAULT
#define NRF_LOG_COLOR_DEFAULT 0
#endif

// &amp;lt;o&amp;gt; NRF_LOG_ERROR_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRF_LOG_ERROR_COLOR
#define NRF_LOG_ERROR_COLOR 0
#endif

// &amp;lt;o&amp;gt; NRF_LOG_WARNING_COLOR  - ANSI escape code prefix.
 
// &amp;lt;0=&amp;gt; Default 
// &amp;lt;1=&amp;gt; Black 
// &amp;lt;2=&amp;gt; Red 
// &amp;lt;3=&amp;gt; Green 
// &amp;lt;4=&amp;gt; Yellow 
// &amp;lt;5=&amp;gt; Blue 
// &amp;lt;6=&amp;gt; Magenta 
// &amp;lt;7=&amp;gt; Cyan 
// &amp;lt;8=&amp;gt; White 

#ifndef NRF_LOG_WARNING_COLOR
#define NRF_LOG_WARNING_COLOR 0
#endif

#endif //NRF_LOG_USES_COLORS
// &amp;lt;/e&amp;gt;

// &amp;lt;o&amp;gt; NRF_LOG_DEFAULT_LEVEL  - Default Severity level
 
// &amp;lt;0=&amp;gt; Off 
// &amp;lt;1=&amp;gt; Error 
// &amp;lt;2=&amp;gt; Warning 
// &amp;lt;3=&amp;gt; Info 
// &amp;lt;4=&amp;gt; Debug 

#ifndef NRF_LOG_DEFAULT_LEVEL
#define NRF_LOG_DEFAULT_LEVEL 4
#endif

// &amp;lt;e&amp;gt; NRF_LOG_DEFERRED - Enable deffered logger.

// &amp;lt;i&amp;gt; Log data is buffered and can be processed in idle.
//==========================================================
#ifndef NRF_LOG_DEFERRED
#define NRF_LOG_DEFERRED 0
#endif
#if  NRF_LOG_DEFERRED
// &amp;lt;o&amp;gt; NRF_LOG_DEFERRED_BUFSIZE - Size of the buffer for logs in words. 
// &amp;lt;i&amp;gt; Must be power of 2

#ifndef NRF_LOG_DEFERRED_BUFSIZE
#define NRF_LOG_DEFERRED_BUFSIZE 256
#endif

#endif //NRF_LOG_DEFERRED
// &amp;lt;/e&amp;gt;

// &amp;lt;q&amp;gt; NRF_LOG_USES_TIMESTAMP  - Enable timestamping
 

// &amp;lt;i&amp;gt; Function for getting the timestamp is provided by the user

#ifndef NRF_LOG_USES_TIMESTAMP
#define NRF_LOG_USES_TIMESTAMP 0
#endif

#endif //NRF_LOG_ENABLED
// &amp;lt;/e&amp;gt;

// &amp;lt;h&amp;gt; nrf_log_backend - Logging sink

//==========================================================
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_MAX_STRING_LENGTH - Buffer for storing single output string 
// &amp;lt;i&amp;gt; Logger backend RAM usage is determined by this value.

#ifndef NRF_LOG_BACKEND_MAX_STRING_LENGTH
#define NRF_LOG_BACKEND_MAX_STRING_LENGTH 256
#endif

// &amp;lt;o&amp;gt; NRF_LOG_TIMESTAMP_DIGITS - Number of digits for timestamp 
// &amp;lt;i&amp;gt; If higher resolution timestamp source is used it might be needed to increase that

#ifndef NRF_LOG_TIMESTAMP_DIGITS
#define NRF_LOG_TIMESTAMP_DIGITS 8
#endif

// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_SERIAL_USES_UART - If enabled data is printed over UART
//==========================================================
#ifndef NRF_LOG_BACKEND_SERIAL_USES_UART
#define NRF_LOG_BACKEND_SERIAL_USES_UART 0
#endif
#if  NRF_LOG_BACKEND_SERIAL_USES_UART
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE  - Default Baudrate
 
// &amp;lt;323584=&amp;gt; 1200 baud 
// &amp;lt;643072=&amp;gt; 2400 baud 
// &amp;lt;1290240=&amp;gt; 4800 baud 
// &amp;lt;2576384=&amp;gt; 9600 baud 
// &amp;lt;3862528=&amp;gt; 14400 baud 
// &amp;lt;5152768=&amp;gt; 19200 baud 
// &amp;lt;7716864=&amp;gt; 28800 baud 
// &amp;lt;10289152=&amp;gt; 38400 baud 
// &amp;lt;15400960=&amp;gt; 57600 baud 
// &amp;lt;20615168=&amp;gt; 76800 baud 
// &amp;lt;30924800=&amp;gt; 115200 baud 
// &amp;lt;61865984=&amp;gt; 230400 baud 
// &amp;lt;67108864=&amp;gt; 250000 baud 
// &amp;lt;121634816=&amp;gt; 460800 baud 
// &amp;lt;251658240=&amp;gt; 921600 baud 
// &amp;lt;268435456=&amp;gt; 57600 baud 

#ifndef NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE
#define NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE 30924800
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_SERIAL_UART_TX_PIN - UART TX pin 
#ifndef NRF_LOG_BACKEND_SERIAL_UART_TX_PIN
#define NRF_LOG_BACKEND_SERIAL_UART_TX_PIN 9
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_SERIAL_UART_RX_PIN - UART RX pin 
#ifndef NRF_LOG_BACKEND_SERIAL_UART_RX_PIN
#define NRF_LOG_BACKEND_SERIAL_UART_RX_PIN 11
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN - UART RTS pin 
#ifndef NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN
#define NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN 8
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN - UART CTS pin 
#ifndef NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN
#define NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN 10
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL  - Hardware Flow Control
 
// &amp;lt;0=&amp;gt; Disabled 
// &amp;lt;1=&amp;gt; Enabled 

#ifndef NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL
#define NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL 0
#endif

// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_UART_INSTANCE  - UART instance used
 
// &amp;lt;0=&amp;gt; 0 

#ifndef NRF_LOG_BACKEND_UART_INSTANCE
#define NRF_LOG_BACKEND_UART_INSTANCE 0
#endif

#endif //NRF_LOG_BACKEND_SERIAL_USES_UART
// &amp;lt;/e&amp;gt;

// &amp;lt;e&amp;gt; NRF_LOG_BACKEND_SERIAL_USES_RTT - If enabled data is printed using RTT
//==========================================================
#ifndef NRF_LOG_BACKEND_SERIAL_USES_RTT
#define NRF_LOG_BACKEND_SERIAL_USES_RTT 1
#endif
#if  NRF_LOG_BACKEND_SERIAL_USES_RTT
// &amp;lt;o&amp;gt; NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE - RTT output buffer size. 
// &amp;lt;i&amp;gt; Should be equal or bigger than \ref NRF_LOG_BACKEND_MAX_STRING_LENGTH.
// &amp;lt;i&amp;gt; This value is used in Segger RTT configuration to set the buffer size
// &amp;lt;i&amp;gt; if it is bigger than default RTT buffer size.

#ifndef NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
#define NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE 512
#endif

#endif //NRF_LOG_BACKEND_SERIAL_USES_RTT
// &amp;lt;/e&amp;gt;

// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;h&amp;gt; nRF_Segger_RTT 

//==========================================================
// &amp;lt;h&amp;gt; segger_rtt - SEGGER RTT

//==========================================================
// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer. 
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 64
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Size of upstream buffer. 
#ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
#define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of upstream buffer. 
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
#define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
#endif

// &amp;lt;o&amp;gt; SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Size of upstream buffer. 
#ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
#define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
#endif

// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;/h&amp;gt; 
//==========================================================

// &amp;lt;&amp;lt;&amp;lt; end of configuration section &amp;gt;&amp;gt;&amp;gt;
#endif //SDK_CONFIG_H

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Remembember to add:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void log_init(void)
{
    ret_code_t err_code = NRF_LOG_INIT(NULL);
    APP_ERROR_CHECK(err_code);

    
		NRF_LOG_INFO(&amp;quot;RTT Logging initialized&amp;quot;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to main.c.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This thread could also &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33781/use-uart-and-rtt-debug-interface-on-the-same-time" target="_blank" rel="noopener noreferrer"&gt;be interesting.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>