<?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 GPIO-UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44470/nrf9160-dk-gpio-uart</link><description>Dear, 
 
 I am using nRF9160 DK, I want to use nRF9160 SIP to connect with another sensor ( UART /SPI) 
 
 Do you have any suggestions or examples? 
 
 Thanks, 
 Rgards 
 
 hng</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Mar 2019 13:47:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44470/nrf9160-dk-gpio-uart" /><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/175692?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 13:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f614b49a-1a09-4cad-bc0e-67ae3232f777</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is strange. The only difference at my end is that I am using a .overlay file, but that should not have any impact, as its set in the main dts file.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my .hex file, could you check if this one works at your end?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-446ffbb59c494a95bee0df6b4d3e9480/zephyr.hex"&gt;devzone.nordicsemi.com/.../zephyr.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that one does not work, it might be due to the nRF52 board controller firmware not being present. This can be downloaded from here (remember to switch SW5 into nRF52 position, and back again after programming):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF9160-DK/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF9160-DK/Download#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*edit* race condition... You&amp;#39;ve already fixed the issue :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/175690?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 13:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f5db35-a236-4f1f-8a35-7982c3637af0</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Dear H&amp;aring;kon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I fixed it now, I deleted the folder /build and rebuild again&lt;/p&gt;
&lt;p&gt;I could redefine the pin for UART0/UART1 also.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;hng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/175599?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 10:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5d81557-4829-4a2d-852b-0b6b4e6be4d1</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Dear H&amp;aring;kon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am trying your suggestion,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I use the UART0, just send and receive on UART0, it works,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the code:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;
#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;misc/printk.h&amp;gt;
#include &amp;lt;uart.h&amp;gt;

static u8_t uart_buf[1024];

void uart_cb(struct device *x)
{
	uart_irq_update(x);
	int data_length = 0;

	if (uart_irq_rx_ready(x)) {
		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));
		uart_buf[data_length] = 0;
	}
	printk(&amp;quot;%s&amp;quot;, uart_buf);
}

void main(void)
{
	struct device *uart = device_get_binding(&amp;quot;UART_0&amp;quot;);

	uart_irq_callback_set(uart, uart_cb);
	uart_irq_rx_enable(uart);
	printk(&amp;quot;UART loopback start!\n&amp;quot;);
	while (1) {
		k_cpu_idle();
                
	}
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can receive the data I&amp;nbsp; send at the same UART9 (COM12,115200bps,8N1,no handshake)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1552386581920v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I tried to send data (&amp;quot;hello&amp;quot;) and received &amp;quot;hello&amp;quot; from the same UART0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then, I change to UART1 to send data:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&lt;strong&gt;struct device *uart = device_get_binding(&amp;quot;UART_1&amp;quot;);&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;Then, reprogramme, then check: still NO data out on the UART0 (printk)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1552386449141v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I tried to send data (&amp;quot;hello&amp;quot;) from 2others COM, but UART0 didnt&amp;nbsp;receive it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What do you think?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks so much&lt;/p&gt;
&lt;p&gt;hng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/175283?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 10:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5c022a-5cfc-4abf-80fc-6387fcfdd828</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;If you have setup the example as being discussed in this thread, you should send data in one COM port, while the other should print it.&lt;/p&gt;
&lt;p&gt;It is a loopback of UART1 over the UART0 interface.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have a different setup than what is discussed in this thread, I would recommend that you start a new thread.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/175184?ContentTypeID=1</link><pubDate>Sat, 09 Mar 2019 16:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ace40da1-ac2f-4a0f-89f6-50a2aa093295</guid><dc:creator>cdugue</dc:creator><description>&lt;p&gt;Hi, I am having a similar issue. I setup the nRf9160 with the UART sample and I get some characters when I type in one of the serial port. However, the data received appear to be only 0 or 128 if I print the decimal value in the UART CB. Any ideas on what could be the issue? Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Corentn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/174805?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 12:55:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa276e42-0b31-4468-9f55-0d867b51036f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the &amp;quot;uart&amp;quot; sample, UARTE0 is used for printk() functions. When you changed it to use UART1 (which maps to UARTE1 peripheral), you are enabling two UART peripherals, which goes to two different pin-outs.&lt;/p&gt;
&lt;p&gt;When you plug in the DK, it will give you 3 COM ports. Try opening them all with 115k2 baud, hit the reset-button and see which shows &amp;quot;UART loopback start!&amp;quot;&lt;/p&gt;
&lt;p&gt;This is the terminal connected to UARTE0 peripheral.&lt;/p&gt;
&lt;p&gt;The one that does not show any data is likely to be the one connected to the UARTE1 peripheral. Try sending any data to this one, and it should then be printed in the same terminal as &amp;quot;UART loopback start!&amp;quot; was shown in.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you try to probe the P0.00 and P0.01 on the pinlist, they will not show anything, as these GPIOs are connected directly to the VCOM1 interface on the Segger IC.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/174729?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 08:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:703bd384-99d4-4928-a9fc-3e9e2cdcf71a</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks so much&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I added&amp;nbsp;&lt;span&gt;&amp;quot;CONFIG_UART_1_NRF_UARTE=y&amp;quot; to prj.conf, and NO errors after boot&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I still confuse about PINs for UART1.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using nRF9160 DK, and in the nrf9160_pca10090.dts declares the pins for UART0 and UART1&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2017 Linaro Limited
 * Copyright (c) 2018 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include &amp;lt;nordic/nrf9160_xxaa.dtsi&amp;gt;

/ {
	model = &amp;quot;Nordic PCA10090 Dev Kit&amp;quot;;
	compatible = &amp;quot;nordic,pca10090-dk&amp;quot;, &amp;quot;nordic,nrf9160-xxaa&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
	};

	aliases {
		led0 = &amp;amp;led0;
		led1 = &amp;amp;led1;
		led2 = &amp;amp;led2;
		led3 = &amp;amp;led3;
		sw0 = &amp;amp;button2;
		sw1 = &amp;amp;button3;
		sw2 = &amp;amp;button0;
		sw3 = &amp;amp;button1;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt;&amp;amp;gpio0 2 GPIO_INT_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 0&amp;quot;;
		};
		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 3 GPIO_INT_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 1&amp;quot;;
		};
		led2: led_2 {
			gpios = &amp;lt;&amp;amp;gpio0 4 GPIO_INT_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 2&amp;quot;;
		};
		led3: led_3 {
			gpios = &amp;lt;&amp;amp;gpio0 5 GPIO_INT_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 3&amp;quot;;
		};
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 8 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Switch 1&amp;quot;;
		};
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 9 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Switch 2&amp;quot;;
		};
		button2: button_2 {
			gpios = &amp;lt;&amp;amp;gpio0 6 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Push button 1&amp;quot;;
		};
		button3: button_3 {
			gpios = &amp;lt;&amp;amp;gpio0 7 GPIO_PUD_PULL_UP&amp;gt;;
			label = &amp;quot;Push button 2&amp;quot;;
		};
	};

	sram0_bsd: memory@20010000 {
		device_type = &amp;quot;memory&amp;quot;;
		compatible = &amp;quot;mmio-sram&amp;quot;;
	};
};

&amp;amp;uart0 {
	status = &amp;quot;ok&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;29&amp;gt;;
	rx-pin = &amp;lt;28&amp;gt;;
	rts-pin = &amp;lt;27&amp;gt;;
	cts-pin = &amp;lt;26&amp;gt;;
};

&amp;amp;uart1 {
	status = &amp;quot;ok&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;1&amp;gt;;
	rx-pin = &amp;lt;0&amp;gt;;
	rts-pin = &amp;lt;14&amp;gt;;
	cts-pin = &amp;lt;15&amp;gt;;
};

&amp;amp;gpiote {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;timer0 {
	status = &amp;quot;ok&amp;quot;;
};

&amp;amp;flash0 {
	/*
	 * For more information, see:
	 * http://docs.zephyrproject.org/devices/dts/flash_partitions.html
	 */
	partitions {
		compatible = &amp;quot;fixed-partitions&amp;quot;;
		#address-cells = &amp;lt;1&amp;gt;;
		#size-cells = &amp;lt;1&amp;gt;;

		boot_partition: partition@0 {
			label = &amp;quot;mcuboot&amp;quot;;
			reg = &amp;lt;0x00000000 0x10000&amp;gt;;
		};
		slot0_partition: partition@10000 {
			label = &amp;quot;image-0&amp;quot;;
		};
#if defined(CONFIG_ARM_TRUSTZONE_M)
		slot0_ns_partition: partition@40000 {
			label = &amp;quot;image-0-nonsecure&amp;quot;;
		};
#endif
		slot1_partition: partition@80000 {
			label = &amp;quot;image-1&amp;quot;;
		};
#if defined(CONFIG_ARM_TRUSTZONE_M)
		slot1_ns_partition: partition@b0000 {
			label = &amp;quot;image-1-nonsecure&amp;quot;;
		};
#endif
		scratch_partition: partition@f0000 {
			label = &amp;quot;image-scratch&amp;quot;;
			reg = &amp;lt;0x000f0000 0xa000&amp;gt;;
		};

		storage_partition: partition@fa000 {
			label = &amp;quot;storage&amp;quot;;
			reg = &amp;lt;0x000fa000 0x00006000&amp;gt;;
		};
	};
};

#if defined(CONFIG_ARM_TRUSTZONE_M)
/ {
	sram0_ns: memory@20020000 {
		device_type = &amp;quot;memory&amp;quot;;
		compatible = &amp;quot;mmio-sram&amp;quot;;
	};
};
#endif

/* Include partition configuration file */
#include &amp;quot;nrf9160_pca10090_partition_conf.dts&amp;quot;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;amp;uart1 pins are defined&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and nRF9160 DK are designed compatible for Arduino UNO, so P0.00-RX and P0.01-TX&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But, I still got NO output for uart1??&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I need to read more about VCOM to understand clearly about this one&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;hng&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/174573?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 13:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8b6c95-cd72-4412-9b10-e847979dd6dc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try adding &amp;quot;CONFIG_UART_1_NRF_UARTE=y&amp;quot; to prj.conf, then reconfigure and flash the project. Note that if you are using master, the .overlay file should be named to &amp;quot;nrf9160_pca10090ns.overlay&amp;quot; to ensure that you&amp;#39;re not overwriting the secure_boot. Same goes for the cmake .. -DBOARD=nrf9160_pca10090ns when configuring.&lt;/p&gt;
[quote user="hng"]and NO output on the UART_1 (P0.00, P0.01)[/quote]
&lt;p&gt;Are you using the nRF9160DK? If yes, try to use GPIOs between P0.10 and P0.20, as they are default routed to the arduino pin lists.&lt;/p&gt;
&lt;p&gt;Do note that UART0 will still print messages on its respective pins, while the uart handler in the example is setup specifically to receive data on the txd/rxd pins set in the overlay file.&lt;/p&gt;
&lt;p&gt;If you choose P0.11 as the UARTE1 RXD on the nRF9160-DK, you can connect a wire from this GPIO to &amp;quot;TP10&amp;quot; (VCOM RXD) if writing from the same console as the printouts are showing. This should create a loopback between UARTE0 and UARTE1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;*Edit*: You are connecting UARTE1 to the second VCOM on the segger on the DK, so if you choose TXD on P0.01 and RXD on P0.00, you should be able to send on COMx and see the printout on COMy. Sorry for being a bit slow today &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/174529?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 12:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e51eb02-b2d1-45e1-88c4-2cdc9260fcae</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am trying to use UART_1&lt;/p&gt;
&lt;p&gt;on the dts:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&amp;amp;uart1 {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; status = &amp;quot;ok&amp;quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; current-speed = &amp;lt;115200&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; tx-pin = &amp;lt;1&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; rx-pin = &amp;lt;0&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; rts-pin = &amp;lt;14&amp;gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cts-pin = &amp;lt;15&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;and changed litt on the main.c&lt;/p&gt;
&lt;p&gt;#include &amp;lt;zephyr.h&amp;gt;&lt;br /&gt;#include &amp;lt;misc/printk.h&amp;gt;&lt;br /&gt;#include &amp;lt;uart.h&amp;gt;&lt;/p&gt;
&lt;p&gt;static u8_t uart_buf[1024];void uart_cb(struct device *x)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uart_irq_update(x);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int data_length = 0;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;if (uart_irq_rx_ready(x)) {&lt;br /&gt;data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf));&lt;br /&gt;uart_buf[data_length] = 0;&lt;br /&gt;}&lt;br /&gt;printk(&amp;quot;%s&amp;quot;, uart_buf);&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;}&lt;/p&gt;
&lt;p&gt;void main(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; struct device *uart = device_get_binding(&amp;quot;UART_1&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uart_irq_callback_set(uart, uart_cb);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; uart_irq_rx_enable(uart);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printk(&amp;quot;UART loopback start!\n&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (1) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; k_cpu_idle();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;printk(&amp;quot;UART 1 loopback start!\n&amp;quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;__________________________________&lt;/p&gt;
&lt;p&gt;Buld and Run:&lt;/p&gt;
&lt;p&gt;I got the report:&lt;/p&gt;
&lt;pre&gt;Secure Boot: SPU: set SRAM region 27 as Non-Secure&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: SPU: set SRAM region 28 as Non-Secure&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: SPU: set SRAM region 29 as Non-Secure&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: SPU: set SRAM region 30 as Non-Secure&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: SPU: set SRAM region 31 as Non-Secure&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: configure peripherals&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: MSP_NS 20020970&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Secure Boot: prepare to jump to Non-Secure image&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;***** Booting Zephyr OS v1.13.99-ncs2 *****&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;***** HARD FAULT *****&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;  Fault escalation (see below)&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;***** BUS FAULT *****&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;  Precise data bus error&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;  BFAR Address: 0x50008120&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;***** Hardware exception *****&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Current thread ID = 0x200204bc&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Faulting instruction address = 0x20020430&lt;/pre&gt;
&lt;pre class="ctrl-char CR"&gt;&lt;/pre&gt;
&lt;pre class="ctrl-char LF"&gt;&lt;/pre&gt;
&lt;pre&gt;Fatal fault in ISR! Spinning...&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and NO output on the UART_1 (P0.00, P0.01)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you plz tell me where are the problems on my code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Rgards&lt;/p&gt;
&lt;p&gt;hng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/174506?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 10:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4427ed1-083c-41d2-b271-5c4a959e3caf</guid><dc:creator>Hoang</dc:creator><description>&lt;p&gt;Ja. Tusen takk&amp;nbsp;H&amp;aring;kon, jeg vil&amp;nbsp;pr&amp;oslash;ve det &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;mvh&lt;/p&gt;
&lt;p&gt;hng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 DK GPIO-UART</title><link>https://devzone.nordicsemi.com/thread/174471?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 09:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:214e8851-cc9c-4af4-a6d6-d88fc3221a09</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s some generic UART and SPI samples available in my branch here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that they only show how to setup the two peripherals, no handling of any external sensors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>