<?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>UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93674/uart-communication-between-nrf9160-and-nrf52840</link><description>I am have programmed serial_lte_modem (ncs 2.1.0) to nrf9160DK with following configuration: 
 
 and overlay file: 
 
 Then I have connected my external nrf52840 p0.19 to nrf9160DK p0.10 and nrf52840 p0.20 to nrf9160DK p0.11. 
 Initialize UART on nrf52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Nov 2022 06:03:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93674/uart-communication-between-nrf9160-and-nrf52840" /><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394825?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 06:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:933f3d6c-34f8-4c0d-9c5f-ef2d42f8440c</guid><dc:creator>ericlestor</dc:creator><description>&lt;p&gt;Thank you very much both for your support! It works now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394740?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 14:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9eb689d-2c3e-4e07-b1e5-d866f439ab14</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Unfortunately, there is no easy way to check this other than reprogramming the board controller. The&amp;nbsp;board controller firmware can be found in the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF9160-DK/Download#infotabs"&gt;download tab of the nRF9160DK product page&lt;/a&gt;. Please reprogram the onboard nRF52840 with this firwmare and redo your tests.&lt;/p&gt;
&lt;p&gt;More information can be found in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.1/nrf/ug_nrf9160.html#board-controller"&gt;Board controller chapter of&amp;nbsp;Developig&amp;nbsp;with nRF9160 DK&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If this does not work I will need more information on how to reproduce this issue on my side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394724?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 13:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5ea023-9c25-419a-856a-d6efbc8fa693</guid><dc:creator>ericlestor</dc:creator><description>&lt;p&gt;Where can I check this if it is enabled or disabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394690?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 12:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58ac78e-24ef-404e-967f-aa23341e1f1a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please make sure that the nRF9160 Board Controller has not enabled external&amp;nbsp;memory control.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667912062470v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394682?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 12:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42bb79c6-766f-466e-a2bf-a9074f1b361d</guid><dc:creator>ericlestor</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did remove it. Here is the prj.conf code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
# General config
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_STACK_SENTINEL=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_RING_BUFFER=y

# Segger RTT
CONFIG_USE_SEGGER_RTT=n
CONFIG_RTT_CONSOLE=n
CONFIG_UART_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=n
CONFIG_LOG_BACKEND_UART=y

# Network
CONFIG_NETWORKING=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_NATIVE=n

# Modem library
CONFIG_NRF_MODEM_LIB=y
# Align the max FD entry to NRF_MODEM_MAX_SOCKET_COUNT(8)
CONFIG_POSIX_MAX_FDS=8
# Enable below for modem trace
#CONFIG_NRF_MODEM_LIB_TRACE=y
# Handle modem fault
CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y

# Use GPIO
CONFIG_GPIO=y
CONFIG_GPIO_NRFX=y

# UART interface
CONFIG_SERIAL=y
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_TIMER2=y

# Stacks and heaps
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

# Device power management
CONFIG_PM_DEVICE=y

# FOTA
CONFIG_HTTP_PARSER_URL=y
CONFIG_FOTA_DOWNLOAD=y
CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y
CONFIG_DFU_TARGET=y
CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096
CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_IMG_MANAGER=y

# FLASH
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

# Settings
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y
CONFIG_FCB=y

# nRF Cloud
#CONFIG_NRF_CLOUD_IPV6=y
CONFIG_NRF_CLOUD_MQTT=y
CONFIG_NRF_CLOUD_FOTA=n
CONFIG_NRF_CLOUD_AGPS=y
CONFIG_NRF_CLOUD_AGPS_FILTERED=n
CONFIG_NRF_CLOUD_PGPS=y
CONFIG_NRF_CLOUD_CELL_POS=y
CONFIG_NRF_CLOUD_LOG_LEVEL_INF=y
CONFIG_NRF_CLOUD_GPS_LOG_LEVEL_INF=y
CONFIG_DATE_TIME=y
CONFIG_MODEM_INFO=y
CONFIG_MODEM_INFO_ADD_DATE_TIME=n
CONFIG_AT_MONITOR=y
CONFIG_MODEM_JWT=y
CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y

#
# SLM-specific configurations
#
CONFIG_SLM_CUSTOMIZED=n
CONFIG_SLM_LOG_LEVEL_INF=y
CONFIG_SLM_EXTERNAL_XTAL=n
CONFIG_SLM_START_SLEEP=n

# nRF Cloud based location services
CONFIG_SLM_AGPS=n
CONFIG_SLM_PGPS=n
CONFIG_SLM_CELL_POS=n

# Serial DFU support
CONFIG_SLM_NRF52_DFU=n
CONFIG_SLM_NRF52_DFU_LEGACY=n
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394678?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 12:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b23dce-0287-4c6f-b062-f0006db1c1ca</guid><dc:creator>JoEi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;if you don&amp;#39;t want to use it you have to remove the &amp;quot;hw-flow-control&amp;quot; from your overlay file.&lt;br /&gt;Could you post your whole prj.conf?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Johannes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394656?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 11:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db6c7c6-d592-46cb-ac94-ab7e00dc43be</guid><dc:creator>ericlestor</dc:creator><description>&lt;p&gt;Transmission finishes, but I get no response from nrf9160, I.e. no&amp;nbsp;APP_UART_DATA_READY or&amp;nbsp;APP_UART_DATA events or any response to AT commands. Not using flow control, disabled it from the nrf9160 side as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART communication between nrf9160 and nrf52840</title><link>https://devzone.nordicsemi.com/thread/394650?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 11:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b33df5b-8380-4cb6-b38a-2d34f606b67a</guid><dc:creator>JoEi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;APP_UART_TX_EMPTY just means that the transmission has finished, so there isn&amp;#39;t a problem.&lt;br /&gt;You can use this event to start another transmission if for instance you saved another message inside a fifo.&lt;/p&gt;
&lt;p&gt;Are you really using flow control?&lt;br /&gt;According to your nrf9160 overlay file you are using it, but when initialising the uart on the nrf52840 you are disabling it.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Johannes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>