<?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>nRF52833 UART1 NCS v1.6.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79576/nrf52833-uart1-ncs-v1-6-1</link><description>Hi, 
 I am using the nRF52833DK with NCS v1.6.1 in SES for a multiperipheral application. The application has the LIS2DH accelerometer which is communicating with nRF52833 using I2C. Started with the peripheral UART example and am able to print messages</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Sep 2021 13:16:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79576/nrf52833-uart1-ncs-v1-6-1" /><item><title>RE: nRF52833 UART1 NCS v1.6.1</title><link>https://devzone.nordicsemi.com/thread/329249?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 13:16:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019f756a-cea9-4859-9f5a-dbc0d766b3a4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry, this has changed and I did not notice before. In recent NCS versions you set flow control in the device tree / overlay, using&amp;nbsp;hw_flow_control.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 UART1 NCS v1.6.1</title><link>https://devzone.nordicsemi.com/thread/329237?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 12:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f445319-f897-4988-8dcc-8b7b4ecd2f3d</guid><dc:creator>GPS</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;I added the line to my prj.conf. I am getting this error&amp;nbsp; &lt;strong&gt;&amp;quot;warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol UART_1_NRF_FLOW_CONTROL&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;my prj.conf looks like this &lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
CONFIG_BOOT_BANNER=n

CONFIG_CBPRINTF_FP_SUPPORT=y
CONFIG_SERIAL=y

CONFIG_I2C=y
CONFIG_GPIO=y
CONFIG_SENSOR=y
CONFIG_LIS2DH=y

CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_ASYNC_API=y
CONFIG_UART_1_NRF_FLOW_CONTROL=y

CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_MAX_CONN=1
CONFIG_BT_L2CAP_TX_BUF_COUNT=5
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Test_BLE&amp;quot;
CONFIG_BT_DEVICE_APPEARANCE=962
CONFIG_HEAP_MEM_POOL_SIZE=2048

# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048&lt;/pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2018 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
cmake_minimum_required(VERSION 3.8)
set(DTC_OVERLAY_FILE &amp;quot;nrf52833dk_nrf52833.overlay&amp;quot;)

#include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(NONE)

# NORDIC SDK APP START

target_sources(app PRIVATE
  src/main.c 
  services/test_ble.c
  drivers/test_sensor.c
)

# NORDIC SDK APP END
zephyr_library_include_directories(.)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and my CMakeLists.txt looks like&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52833 UART1 NCS v1.6.1</title><link>https://devzone.nordicsemi.com/thread/329212?ContentTypeID=1</link><pubDate>Mon, 13 Sep 2021 11:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a79ee2-5124-4a7d-92b4-5848cbc5c544</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]What is the correct way of using UART1 with flow control?[/quote]
&lt;p&gt;To enable flow control on UART1 you have to set&amp;nbsp;&lt;code&gt;CONFIG_UART_1_NRF_FLOW_CONTROL=y&lt;/code&gt; in your prj.conf (in addition to specifying the rts and cts pins in the overlay as you have allready done).&lt;/p&gt;
[quote user=""]2) I will have to use a second UART instance to connect with another IC. The plan is that UART0 to be used up for the IC. UART1 for the module and I2C0 for the accelerometer (both described above). How will by device overlay change for this?[/quote]
&lt;p&gt;You can add a second UART (0) to your overlay file and use that in that same way as you do with 1.&lt;/p&gt;
[quote user=""]I want to output messages on to a terminal application on the laptop for debugging etc. How do I go about that?[/quote]
&lt;p&gt;There ARE only two UARTE peripherals, so you cannot use UART loggging if both UARTE peripherals are used for something else. An alternative then is to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_logging.html#rtt"&gt;RTT logging&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>