<?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>nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94284/nrf9160-dk-not-responding-to-at-commands-from-external-mcu-over-uart</link><description>Hello, 
 I am trying to connect the nrf9160 dk with the SLM application to our STM32. 
 The idea is to use the nrf9160 modem to connect to NB-IoT/LTE-M and control the modem by sending AT commands from the stm32 over a UART connection. 
 I have changed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2022 11:02:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94284/nrf9160-dk-not-responding-to-at-commands-from-external-mcu-over-uart" /><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/399615?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 11:02:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b6a53f1-0e8c-4193-b234-26d74aaae870</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;That&amp;#39;s great to hear.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/399332?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 08:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e70cceb-b5cc-40b2-a914-fb22908dd862</guid><dc:creator>Jacqueline Koch</dc:creator><description>&lt;p&gt;In my code on the STM I forgot CR and LF. Now the UART connection between them is working. I don&amp;#39;t know why it does not work with Putty but since that is not important for my work I will close the ticket now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/399224?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 14:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a713e841-06bb-4a85-9392-1b4cb7b31ff9</guid><dc:creator>Jacqueline Koch</dc:creator><description>&lt;p&gt;I have tried different combinations of CR and LF. The only reaction I sometimes get is this warning &amp;lt;wrn&amp;gt; slm_at_host: RX_STOPPED (4) but I cannot find a pattern that triggers it. In this screenshot it appeared after the last command I send.&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/pastedimage1670334933676v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/399153?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 11:09:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec5a4416-255a-403c-9274-9c44f5006070</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Yes. There was a space after CONFIG_SLM_LOG_LEVEL_DBG this. What line endings you have used?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/399150?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 11:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85cf7e54-f25c-4cf7-86ad-44a9418d0ccc</guid><dc:creator>Jacqueline Koch</dc:creator><description>&lt;p&gt;I just realized my mistake was that I forgot to remove the spaces in&amp;nbsp;&lt;span&gt;CONFIG_SLM_LOG_LEVEL_DBG = y. That&amp;#39;s why it did not compile. Now the RTT output is this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1670324753801v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/398997?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 14:01:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d62fed4d-8e91-4e7f-80dc-546671e3e9c8</guid><dc:creator>Jacqueline Koch</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Here is the proj.conf:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_RTT=y
CONFIG_LOG_BACKEND_UART=n

# 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
CONFIG_AT_MONITOR_HEAP_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_LOCATION=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_LOG_LEVEL_DBG = y
CONFIG_SLM_EXTERNAL_XTAL=n
CONFIG_SLM_START_SLEEP=n
CONFIG_SLM_DATAMODE_URC=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;p&gt;the nrf9160dk_nrf9160_ns.conf:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Configuration file for nRF9160DK.
# This file is merged with prj.conf in the application folder, and options
# set here will take precedence if they are present in both files.

# Use UART_0 (when working with PC terminal)
# unmask the following config
#CONFIG_SLM_CONNECT_UART_0=y
#CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
#CONFIG_UART_0_NRF_HW_ASYNC=y
#CONFIG_SLM_WAKEUP_PIN=6
#CONFIG_SLM_INDICATE_PIN=2

# Use UART_2 (when working with external MCU)
# unmask the following config
CONFIG_SLM_CONNECT_UART_2=y
CONFIG_UART_2_NRF_HW_ASYNC_TIMER=2
CONFIG_UART_2_NRF_HW_ASYNC=y
CONFIG_SLM_WAKEUP_PIN=31
CONFIG_SLM_INDICATE_PIN=30
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the&amp;nbsp;&lt;span&gt;nrf9160dk_nrf9160_ns.overlay:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2021 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
 */

&amp;amp;uart0 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;uart2 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	//hw-flow-control;

	pinctrl-0 = &amp;lt;&amp;amp;uart2_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart2_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;i2c2 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;pinctrl {
	uart2_default_alt: uart2_default_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 10)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 11)&amp;gt;;
				//&amp;lt;NRF_PSEL(UART_RTS, 0, 12)&amp;gt;,
				//&amp;lt;NRF_PSEL(UART_CTS, 0, 13)&amp;gt;;
		};
	};

	uart2_sleep_alt: uart2_sleep_alt {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 10)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 11)&amp;gt;;
				//&amp;lt;NRF_PSEL(UART_RTS, 0, 12)&amp;gt;,
				//&amp;lt;NRF_PSEL(UART_CTS, 0, 13)&amp;gt;;
			low-power-enable;
		};
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have upgraded to the&amp;nbsp;&lt;span&gt;nrf Connect SDK v2.2.0.-rc1 and created a new build configuration with debug configurations turned off because that enabled me to start a debugging session like in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94267/debugging-in-vs-code-does-not-halt-in-main-and-can-not-view-peripherals/398232"&gt;thread&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This was the RTT output:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&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/pastedimage1670248513327v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I tried to insert&amp;nbsp;&lt;span&gt;CONFIG_SLM_LOG_LEVEL_DBG = y in the proj.conf file, however, if I do the project fails to compile.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building serial_lte_modem
west build --build-dir c:\Nordic\examplePojects\serial_lte_modem\build c:\Nordic\examplePojects\serial_lte_modem

[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/Nordic/examplePojects/serial_lte_modem
-- Found Python3: C:/ncs/toolchains/v2.2.0-rc1/opt/bin/python.exe (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: C:/ncs/v2.2.0-rc1/zephyr/.cache
-- Zephyr version: 3.2.99 (C:/ncs/v2.2.0-rc1/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
-- Found host-tools: zephyr 0.15.1 (C:/ncs/toolchains/v2.2.0-rc1/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (C:/ncs/toolchains/v2.2.0-rc1/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.2.0-rc1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: C:/Nordic/examplePojects/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.overlay
-- Generated zephyr.dts: C:/Nordic/examplePojects/serial_lte_modem/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Nordic/examplePojects/serial_lte_modem/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Nordic/examplePojects/serial_lte_modem/build/zephyr/dts.cmake

warning: Experimental symbol HTTP_CLIENT is enabled.


C:/Nordic/examplePojects/serial_lte_modem/prj.conf:97: warning: attempt to assign the value &amp;#39; y&amp;#39; to the undefined symbol SLM_LOG_LEVEL_DBG 
Parsing C:/Nordic/examplePojects/serial_lte_modem/Kconfig
Loaded configuration &amp;#39;C:/ncs/v2.2.0-rc1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Nordic/examplePojects/serial_lte_modem/prj.conf&amp;#39;
Merged configuration &amp;#39;C:/Nordic/examplePojects/serial_lte_modem/boards/nrf9160dk_nrf9160_ns.conf&amp;#39;

error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v2.2.0-rc1/zephyr/cmake/modules/kconfig.cmake:328 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v2.2.0-rc1/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
  C:/ncs/v2.2.0-rc1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.2.0-rc1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
See also &amp;quot;C:/Nordic/examplePojects/serial_lte_modem/build/CMakeFiles/CMakeOutput.log&amp;quot;.
See also &amp;quot;C:/Nordic/examplePojects/serial_lte_modem/build/CMakeFiles/CMakeError.log&amp;quot;.
FAILED: build.ninja 
C:\ncs\toolchains\v2.2.0-rc1\opt\bin\cmake.exe --regenerate-during-build -SC:\Nordic\examplePojects\serial_lte_modem -BC:\Nordic\examplePojects\serial_lte_modem\build
ninja: error: rebuilding &amp;#39;build.ninja&amp;#39;: subcommand failed
FATAL ERROR: command exited with status 1: &amp;#39;c:\ncs\toolchains\v2.2.0-rc1\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;c:\Nordic\examplePojects\serial_lte_modem\build&amp;#39;

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 dk not responding to at commands from external mcu over uart</title><link>https://devzone.nordicsemi.com/thread/397926?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 14:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f148734d-17a0-4f33-9b32-1f1fd51d49ae</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please send the configuration files? We also need to look at the RTT log to see if the modem receives any data. You need to set CONFIG_SLM_LOG_LEVEL_DBG = y to get the RTT log.&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>