<?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, custom and AT commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56438/uart-custom-and-at-commands</link><description>Hi, 
 I have been trying to get UART working properly on my custom board but also on nRF9160 DK. I&amp;#39;m using only UART_0. 
 With CONFIG_USE_AT_HOST and without any uart code inside my own code, AT commands are working but if I wrote something else like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Feb 2020 09:26:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56438/uart-custom-and-at-commands" /><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/234582?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 09:26:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea19b04a-c475-4ad9-ba8e-78081d48cc7c</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;In this case I haven&amp;#39;t. I don&amp;#39;t know how to make the LTE LC work with UART commands so for now I have send AT+CFUN=1 to modem and then have sent data to server etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/234578?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 09:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41d8963f-6de3-4b2b-b8d4-cf409c6d720b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It seems like connecting to the modem from a work queue thread does not work. I haven&amp;#39;t had time to get to the bottom of it, unfortunately. Have you made any progress yourself?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/232977?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 09:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3b6d18d-f100-482f-8dbb-d7d8a66474a0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Okay, I will take a look at again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/232094?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 13:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e2a2f6f-461a-422e-8cfb-1c404362299b</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I checked it and it works when calling it from main(). Please notice that I&amp;#39;m using NB-IoT and no fallback.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CONFIG_LTE_NETWORK_MODE_NBIOT=y&lt;br /&gt;CONFIG_LTE_NETWORK_USE_FALLBACK=n&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Tero&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/232087?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 12:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:834eea1d-8c71-4854-ad5d-87406a8ca6e9</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;In my case, the ETIMDEOUT comes from calling &lt;em&gt;modem_connect()&lt;/em&gt; from &lt;em&gt;main()&amp;nbsp;&lt;/em&gt;as well as from &lt;em&gt;debug_console.c&lt;/em&gt;→&lt;em&gt;handle_custom_command()&lt;/em&gt;→&lt;em&gt;modem_connect().&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Could you check again and see if the same is happening to you, just to make sure we are on the same page.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/231446?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2020 14:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:226b84c9-4ead-4d6f-a5c2-df53c9483d2a</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;I cleaned the code a little bit so there should not be any useless stuff for this case for now.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2626.test.rar"&gt;devzone.nordicsemi.com/.../2626.test.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Tero&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/231124?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2020 12:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adc49b59-24f6-4773-b58c-3983961d214f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;It seems like modem_connect() and modem_offline() are some custom functions. Could you upload your code? Then I can try to reproduce it on my side.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/230010?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 08:47:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9886c4aa-2b35-4b6c-a014-1e5b58c20201</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I tried your Serial LTE Modem sample and modified it a little bit to compare custom commands first and then if it is an AT command then send it to a modem.&lt;/p&gt;
&lt;p&gt;I imported that sample into my code (which is based on Asset Tracker application) and removed&amp;nbsp;&lt;span&gt;CONFIG_USE_AT_HOST so now it&amp;#39;s working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now I have one problem with commanding LTE. I have modem_connect() and modem_offline() in main.c that uses the LTE Link Control. When I put those functions in main() they are working but if I try to call them from slm_at_host.c there comes an -ETIMEDOUT error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In slm_at_host.h I have used these lines:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;extern int modem_connect(void);
extern int modem_offline(void);
extern int gps_control(bool);&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But for example, GPS operation is starting and stopping properly via gps_control().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any idea why LTE is not working with commands from that other class?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Tero&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/229965?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 23:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4504a228-94e6-4482-a063-0544ff2c894a</guid><dc:creator>Simon</dc:creator><description>[quote userid="83406" url="~/f/nordic-q-a/56438/uart-custom-and-at-commands"]With&amp;nbsp;CONFIG_USE_AT_HOST and without any uart code inside my own code, AT commands are working but if I wrote something else like &amp;quot;hi&amp;quot; to terminal, the device is giving a HARD FAULT.[/quote]
&lt;p&gt;I am not sure what specifically causes the error, however, I know that CONFIG_USE_AT_HOST will include the library &lt;em&gt;ncs\nrf\lib\at_host\at_host.c&amp;nbsp;&lt;/em&gt;and that is&amp;nbsp;built to work with AT commands. The received messages are handled by &lt;em&gt;isr()--&amp;gt;uart_rx_handler(), &lt;/em&gt;before getting sent to the modem through&amp;nbsp;cmd_send() (this happens in &lt;em&gt;at_host.c&lt;/em&gt;) You have to modify the library if you want to send other kinds of messages to it.&lt;/p&gt;
[quote userid="83406" url="~/f/nordic-q-a/56438/uart-custom-and-at-commands"]I&amp;#39;m able to write whatever I want to terminal and it echoes that back from uart_cb(). But AT commands are NOT working, the code is understanding them as just similar text like &amp;quot;hi&amp;quot; and is echoing them back and not doing anything with the modem.[/quote]
&lt;p&gt;The reason this happens is because you are calling device_get_binding() two times for the same device name (&lt;em&gt;&amp;quot;UART_0&amp;quot;&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;If you look at the bottom of &lt;em&gt;ncs\nrf\lib\at_host\at_host.c&lt;/em&gt;, you can see&amp;nbsp;the &lt;a href="https://docs.zephyrproject.org/latest/reference/drivers/index.html#system-drivers"&gt;SYS_INIT macro&lt;/a&gt;. This macro will&amp;nbsp;run&amp;nbsp;&lt;em&gt;at_host_init()--&amp;gt;at_uart_init()--&amp;gt;device_get_binding()&lt;/em&gt; at bootup. Thus, if you include&amp;nbsp;&lt;span&gt;CONFIG_USE_AT_HOST in addition to calling&amp;nbsp;uart_init()--&amp;gt;device_get_binding() in main(), the call from main will always execute last and will override the first call. That is the reason you only see the text getting echoed back (uart_cb() in main.c will execute and not isr() in at_host.c).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think one way of going about it is to copy and modify the at_host.c library according to your own needs. E.g. if the message starts with&amp;nbsp;a specific character then you know whether it is a normal message or an AT command, and you can deal with it accordingly.&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;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/229953?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 19:51:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66acc26c-7f96-464b-a320-2f0bb8561a09</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am sorry for the delay, I have been quite busy lately. I will take a look at your code asap.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/228991?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 10:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40bc703-487b-4925-8322-3f30485b531b</guid><dc:creator>anicare-tero</dc:creator><description>&lt;p&gt;I cleaned my code a little bit so there is not anything&amp;nbsp;useless.&lt;/p&gt;
&lt;p&gt;Here is the prints of execution when uart_init() has been done in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Flash region		Domain		Permissions
00 0x00000 0x08000 	Secure		rwxl
01 0x08000 0x10000 	Non-Secure	rwxl
02 0x10000 0x18000 	Non-Secure	rwxl
03 0x18000 0x20000 	Non-Secure	rwxl
04 0x20000 0x28000 	Non-Secure	rwxl
05 0x28000 0x30000 	Non-Secure	rwxl
06 0x30000 0x38000 	Non-Secure	rwxl
07 0x38000 0x40000 	Non-Secure	rwxl
08 0x40000 0x48000 	Non-Secure	rwxl
09 0x48000 0x50000 	Non-Secure	rwxl
10 0x50000 0x58000 	Non-Secure	rwxl
11 0x58000 0x60000 	Non-Secure	rwxl
12 0x60000 0x68000 	Non-Secure	rwxl
13 0x68000 0x70000 	Non-Secure	rwxl
14 0x70000 0x78000 	Non-Secure	rwxl
15 0x78000 0x80000 	Non-Secure	rwxl
16 0x80000 0x88000 	Non-Secure	rwxl
17 0x88000 0x90000 	Non-Secure	rwxl
18 0x90000 0x98000 	Non-Secure	rwxl
19 0x98000 0xa0000 	Non-Secure	rwxl
20 0xa0000 0xa8000 	Non-Secure	rwxl
21 0xa8000 0xb0000 	Non-Secure	rwxl
22 0xb0000 0xb8000 	Non-Secure	rwxl
23 0xb8000 0xc0000 	Non-Secure	rwxl
24 0xc0000 0xc8000 	Non-Secure	rwxl
25 0xc8000 0xd0000 	Non-Secure	rwxl
26 0xd0000 0xd8000 	Non-Secure	rwxl
27 0xd8000 0xe0000 	Non-Secure	rwxl
28 0xe0000 0xe8000 	Non-Secure	rwxl
29 0xe8000 0xf0000 	Non-Secure	rwxl
30 0xf0000 0xf8000 	Non-Secure	rwxl
31 0xf8000 0x100000 	Non-Secure	rwxl
Non-secure callable region 0 placed in flash region 0 with size 32.


SRAM region		Domain		Permissions
00 0x00000 0x02000	Secure		rwxl
01 0x02000 0x04000	Secure		rwxl
02 0x04000 0x06000	Secure		rwxl
03 0x06000 0x08000	Secure		rwxl
04 0x08000 0x0a000	Secure		rwxl
05 0x0a000 0x0c000	Secure		rwxl
06 0x0c000 0x0e000	Secure		rwxl
07 0x0e000 0x10000	Secure		rwxl
08 0x10000 0x12000	Non-Secure	rwxl
09 0x12000 0x14000	Non-Secure	rwxl
10 0x14000 0x16000	Non-Secure	rwxl
11 0x16000 0x18000	Non-Secure	rwxl
12 0x18000 0x1a000	Non-Secure	rwxl
13 0x1a000 0x1c000	Non-Secure	rwxl
14 0x1c000 0x1e000	Non-Secure	rwxl
15 0x1e000 0x20000	Non-Secure	rwxl
16 0x20000 0x22000	Non-Secure	rwxl
17 0x22000 0x24000	Non-Secure	rwxl
18 0x24000 0x26000	Non-Secure	rwxl
19 0x26000 0x28000	Non-Secure	rwxl
20 0x28000 0x2a000	Non-Secure	rwxl
21 0x2a000 0x2c000	Non-Secure	rwxl
22 0x2c000 0x2e000	Non-Secure	rwxl
23 0x2e000 0x30000	Non-Secure	rwxl
24 0x30000 0x32000	Non-Secure	rwxl
25 0x32000 0x34000	Non-Secure	rwxl
26 0x34000 0x36000	Non-Secure	rwxl
27 0x36000 0x38000	Non-Secure	rwxl
28 0x38000 0x3a000	Non-Secure	rwxl
29 0x3a000 0x3c000	Non-Secure	rwxl
30 0x3c000 0x3e000	Non-Secure	rwxl
31 0x3e000 0x40000	Non-Secure	rwxl

Peripheral		Domain		Status
00 NRF_P0               Non-Secure	OK
01 NRF_CLOCK            Non-Secure	OK
02 NRF_RTC1             Non-Secure	OK
03 NRF_NVMC             Non-Secure	OK
04 NRF_UARTE1           Non-Secure	OK
05 NRF_UARTE2           Secure		SKIP
06 NRF_TWIM2            Non-Secure	OK
07 NRF_SPIM3            Non-Secure	OK
08 NRF_TIMER0           Non-Secure	OK
09 NRF_TIMER1           Non-Secure	OK
10 NRF_TIMER2           Non-Secure	OK
11 NRF_SAADC            Non-Secure	OK
12 NRF_PWM0             Non-Secure	OK
13 NRF_PWM1             Non-Secure	OK
14 NRF_PWM2             Non-Secure	OK
15 NRF_PWM3             Non-Secure	OK
16 NRF_WDT              Secure		SKIP
17 NRF_IPC              Non-Secure	OK
18 NRF_VMC              Non-Secure	OK
19 NRF_FPU              Non-Secure	OK
20 NRF_EGU1             Non-Secure	OK
21 NRF_EGU2             Non-Secure	OK
22 NRF_DPPIC            Non-Secure	OK
23 NRF_GPIOTE1          Non-Secure	OK
24 NRF_REGULATORS       Non-Secure	OK

SPM: NS image at 0xc000
SPM: NS MSP at 0x200290a0
SPM: NS reset vector at 0xf975
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS version 2.1.0  ***
[00:00:00.191,253] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.open_at_socket: AT socket opened[1B][0m
[00:00:00.198,455] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.deactivate_modemtrace: AT CMD: AT%XMODEMTRACE=0[1B][0m
[00:00:00.214,019] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.deactivate_modemtrace: AT RESP: OK
[1B][0m
[00:00:00.221,588] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: AT CMD: AT+CGMR[1B][0m
[00:00:00.235,717] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: AT RESP: mfw_nrf9160_1.1.0
OK
[1B][0m
[00:00:00.244,842] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: LATEST MODEM FW: mfw_nrf9160_1.1.0
[1B][0m
[00:00:00.254,241] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: CURRENT MODEM FW: mfw_nrf9160_1.1.0&amp;#249;
[1B][0m
[00:00:00.263,793] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: You have the latest modem firmware.[1B][0m
[00:00:00.273,162] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.coex_configure: AT CMD: AT%XCOEX0=1,1,1574,1577[1B][0m
[00:00:00.288,269] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.coex_configure: AT RESP: OK
[1B][0m
[00:00:00.295,227] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.coex_configure: COEX0 successfully configured[1B][0m
UART application started! 
Initializing LTE network.
LTE network initialized.
AT%XTEMP?       //sent from terminal
AT%XTEMP?       //response to terminal

AT%XTEMP?       //sent from terminal
AT%XTEMP?       //response to terminal

AT+CFUN?        //sent from terminal
AT+CFUN?        //response to terminal

hi              //sent from terminal
hi              //response to terminal

HEY             //sent from terminal
HEY             //response to terminal&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is the prints of execution when uart_init() has been commented in main.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Flash region		Domain		Permissions
00 0x00000 0x08000 	Secure		rwxl
01 0x08000 0x10000 	Non-Secure	rwxl
02 0x10000 0x18000 	Non-Secure	rwxl
03 0x18000 0x20000 	Non-Secure	rwxl
04 0x20000 0x28000 	Non-Secure	rwxl
05 0x28000 0x30000 	Non-Secure	rwxl
06 0x30000 0x38000 	Non-Secure	rwxl
07 0x38000 0x40000 	Non-Secure	rwxl
08 0x40000 0x48000 	Non-Secure	rwxl
09 0x48000 0x50000 	Non-Secure	rwxl
10 0x50000 0x58000 	Non-Secure	rwxl
11 0x58000 0x60000 	Non-Secure	rwxl
12 0x60000 0x68000 	Non-Secure	rwxl
13 0x68000 0x70000 	Non-Secure	rwxl
14 0x70000 0x78000 	Non-Secure	rwxl
15 0x78000 0x80000 	Non-Secure	rwxl
16 0x80000 0x88000 	Non-Secure	rwxl
17 0x88000 0x90000 	Non-Secure	rwxl
18 0x90000 0x98000 	Non-Secure	rwxl
19 0x98000 0xa0000 	Non-Secure	rwxl
20 0xa0000 0xa8000 	Non-Secure	rwxl
21 0xa8000 0xb0000 	Non-Secure	rwxl
22 0xb0000 0xb8000 	Non-Secure	rwxl
23 0xb8000 0xc0000 	Non-Secure	rwxl
24 0xc0000 0xc8000 	Non-Secure	rwxl
25 0xc8000 0xd0000 	Non-Secure	rwxl
26 0xd0000 0xd8000 	Non-Secure	rwxl
27 0xd8000 0xe0000 	Non-Secure	rwxl
28 0xe0000 0xe8000 	Non-Secure	rwxl
29 0xe8000 0xf0000 	Non-Secure	rwxl
30 0xf0000 0xf8000 	Non-Secure	rwxl
31 0xf8000 0x100000 	Non-Secure	rwxl
Non-secure callable region 0 placed in flash region 0 with size 32.


SRAM region		Domain		Permissions
00 0x00000 0x02000	Secure		rwxl
01 0x02000 0x04000	Secure		rwxl
02 0x04000 0x06000	Secure		rwxl
03 0x06000 0x08000	Secure		rwxl
04 0x08000 0x0a000	Secure		rwxl
05 0x0a000 0x0c000	Secure		rwxl
06 0x0c000 0x0e000	Secure		rwxl
07 0x0e000 0x10000	Secure		rwxl
08 0x10000 0x12000	Non-Secure	rwxl
09 0x12000 0x14000	Non-Secure	rwxl
10 0x14000 0x16000	Non-Secure	rwxl
11 0x16000 0x18000	Non-Secure	rwxl
12 0x18000 0x1a000	Non-Secure	rwxl
13 0x1a000 0x1c000	Non-Secure	rwxl
14 0x1c000 0x1e000	Non-Secure	rwxl
15 0x1e000 0x20000	Non-Secure	rwxl
16 0x20000 0x22000	Non-Secure	rwxl
17 0x22000 0x24000	Non-Secure	rwxl
18 0x24000 0x26000	Non-Secure	rwxl
19 0x26000 0x28000	Non-Secure	rwxl
20 0x28000 0x2a000	Non-Secure	rwxl
21 0x2a000 0x2c000	Non-Secure	rwxl
22 0x2c000 0x2e000	Non-Secure	rwxl
23 0x2e000 0x30000	Non-Secure	rwxl
24 0x30000 0x32000	Non-Secure	rwxl
25 0x32000 0x34000	Non-Secure	rwxl
26 0x34000 0x36000	Non-Secure	rwxl
27 0x36000 0x38000	Non-Secure	rwxl
28 0x38000 0x3a000	Non-Secure	rwxl
29 0x3a000 0x3c000	Non-Secure	rwxl
30 0x3c000 0x3e000	Non-Secure	rwxl
31 0x3e000 0x40000	Non-Secure	rwxl

Peripheral		Domain		Status
00 NRF_P0               Non-Secure	OK
01 NRF_CLOCK            Non-Secure	OK
02 NRF_RTC1             Non-Secure	OK
03 NRF_NVMC             Non-Secure	OK
04 NRF_UARTE1           Non-Secure	OK
05 NRF_UARTE2           Secure		SKIP
06 NRF_TWIM2            Non-Secure	OK
07 NRF_SPIM3            Non-Secure	OK
08 NRF_TIMER0           Non-Secure	OK
09 NRF_TIMER1           Non-Secure	OK
10 NRF_TIMER2           Non-Secure	OK
11 NRF_SAADC            Non-Secure	OK
12 NRF_PWM0             Non-Secure	OK
13 NRF_PWM1             Non-Secure	OK
14 NRF_PWM2             Non-Secure	OK
15 NRF_PWM3             Non-Secure	OK
16 NRF_WDT              Secure		SKIP
17 NRF_IPC              Non-Secure	OK
18 NRF_VMC              Non-Secure	OK
19 NRF_FPU              Non-Secure	OK
20 NRF_EGU1             Non-Secure	OK
21 NRF_EGU2             Non-Secure	OK
22 NRF_DPPIC            Non-Secure	OK
23 NRF_GPIOTE1          Non-Secure	OK
24 NRF_REGULATORS       Non-Secure	OK

SPM: NS image at 0xc000
SPM: NS MSP at 0x20028ca0
SPM: NS reset vector at 0xf8f1
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS version 2.1.0  ***
[00:00:00.191,253] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.open_at_socket: AT socket opened[1B][0m
[00:00:00.198,455] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.deactivate_modemtrace: AT CMD: AT%XMODEMTRACE=0[1B][0m
[00:00:00.214,050] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.deactivate_modemtrace: AT RESP: OK
[1B][0m
[00:00:00.221,588] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: AT CMD: AT+CGMR[1B][0m
[00:00:00.235,748] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: AT RESP: mfw_nrf9160_1.1.0
OK
[1B][0m
[00:00:00.244,873] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: LATEST MODEM FW: mfw_nrf9160_1.1.0
[1B][0m
[00:00:00.254,241] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: CURRENT MODEM FW: mfw_nrf9160_1.1.0&amp;#248;
[1B][0m
[00:00:00.263,793] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.check_modem_firmware: You have the latest modem firmware.[1B][0m
[00:00:00.273,162] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.coex_configure: AT CMD: AT%XCOEX0=1,1,1574,1577[1B][0m
[00:00:00.288,269] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.coex_configure: AT RESP: OK
[1B][0m
[00:00:00.295,227] [1B][0m&amp;lt;dbg&amp;gt; board_nonsecure.coex_configure: COEX0 successfully configured[1B][0m
UART application started! 
Initializing LTE network.
LTE network initialized.
AT+CFUN?        //sent from terminal
+CFUN: 0        //response to terminal
OK              //response to terminal
AT%XTEMP?       //sent from terminal
%XTEMP: 23      //response to terminal
OK              //response to terminal
HEY             //sent from terminal
[0[00:00:17.359,405] [1B][1;31m&amp;lt;err&amp;gt; os: ***** HARD FAULT *****[1B][0m
[00:00:17.365,081] [1B][1;31m&amp;lt;err&amp;gt; os:   Fault escalation (see below)[1B][0m
[00:00:17.371,337] [1B][1;31m&amp;lt;err&amp;gt; os: ***** USAGE FAULT *****[1B][0m
[00:00:17.377,014] [1B][1;31m&amp;lt;err&amp;gt; os:   Stack overflow (context area not valid)[1B][0m
[00:00:17.384,246] [1B][1;31m&amp;lt;err&amp;gt; os: r0/a1:  0x2002b5bc  r1/a2:  0x00000001  r2/a3:  0x20026564[1B][0m
[00:00:17.392,944] [1B][1;31m&amp;lt;err&amp;gt; os: r3/a4:  0x2002b5bc r12/ip:  0x000213cf r14/lr:  0x00021319[1B][0m
[00:00:17.401,672] [1B][1;31m&amp;lt;err&amp;gt; os:  xpsr:  0x00024400[1B][0m
[00:00:17.406,921] [1B][1;31m&amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000[1B][0m
[00:00:17.417,388] [1B][1;31m&amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000[1B][0m
[00:00:17.427,886] [1B][1;31m&amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000[1B][0m
[00:00:17.438,354] [1B][1;31m&amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000[1B][0m
[00:00:17.448,852] [1B][1;31m&amp;lt;err&amp;gt; os: fpscr:  0x0000ebb1[1B][0m
[00:00:17.454,071] [1B][1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x2002b5bc[1B][0m
[00:00:17.462,005] [1B][1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0[1B][0m
[00:00:17.469,909] [1B][1;31m&amp;lt;err&amp;gt; os: Current thread: 0x20021af0 (unknown)[1B][0m
Running main.c error handlerError of type ERROR_SYSTEM_FAULT: 2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is the code of the UART project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0576.uart.rar"&gt;devzone.nordicsemi.com/.../0576.uart.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Tero&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART, custom and AT commands</title><link>https://devzone.nordicsemi.com/thread/228891?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 16:50:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61764d5b-efbc-4793-b02e-38a1e458b959</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am not able to recreate your error, could you share your code?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>