<?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>Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66586/configuring-uart_1-for-nrf9160</link><description>Hi Dev Team, 
 I was working with the nRF9160 and started off with the basic UART sample found here : https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/uart 
 I wanted to configure the UART_1 to connect to an external sensor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Nov 2020 09:00:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66586/configuring-uart_1-for-nrf9160" /><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/278937?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 09:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae95349-d2d0-424d-aab1-e0cb82b7285b</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Nice! I&amp;#39;m happy you finally made it work&lt;span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&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: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/278931?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 08:40:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:287f4058-9ca6-49e1-9bb4-8d37ae8d448a</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks or the tip. Instead of that, I got the RS485 module to work with 3V and so I was able to transmit and receive from the module &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;Thanks for the help. I finally got things running at my end.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/278810?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 14:23:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99816d26-5ce6-46f6-8a90-01a2c314db6e</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;If you set the VDD IO switch to 3V the GPIO will output 3V and if you set it to 1v8, it will output 1.8v. I tested this with a multimeter and P0.28, I&amp;#39;ve attached the sample below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3124.toggle_5F00_gpio_5F00_regs.7z"&gt;devzone.nordicsemi.com/.../3124.toggle_5F00_gpio_5F00_regs.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, according to&amp;nbsp;&lt;a href="https://create.arduino.cc/projecthub/maurizfa-13216008-arthur-jogy-13216037-agha-maretha-13216095/modbus-rs-485-using-arduino-c055b5"&gt;Modbus (RS-485) Using Arduino&lt;/a&gt;, you should connect RE and DE to 5V in order to use the RS485 as a transmitter. The GPIOs only output 3v. I think you can solve this using a FET:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10542/5-volts-output-on-nrf51-dk-pin"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/10542/5-volts-output-on-nrf51-dk-pin&lt;/a&gt;&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: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/278231?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2020 10:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79d695f4-177a-4584-8cda-33a9b706268a</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Regarding the same, I had a query regarding the GPIO Pins.&lt;/p&gt;
&lt;p&gt;I have now tied up my DE / RE to 1 pin (Pin 0.12) and configured that pin as an output (nrf_gpio_cfg_output(12)). So when I transmit, I keep this pin to High (nrf_gpio_pin_set(12)) and after my uart_fifo_fill(), I keep a certain delay and pull the pin low (nrf_gpio_pin_clear(12)) to enable the receive.&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_cfg_output(12);

while(1){

        nrf_gpio_pin_set(12);
            
        uart_fifo_fill(uart, (uint8_t*)(mstatus.request.frame), mstatus.request.length);   
               

        k_sleep(K_SECONDS(2));

        nrf_gpio_pin_clear(12);
            }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, I see that the GPIO pins dont work the way I need. As in, the pin does not change from transmit to receive. Is it due to the voltage mismatch ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I read the datsasheet of the MAX-485 device that I am using and it says it needs more than 2V.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Voltage-MAX_2D00_485.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Does the GPIO pins normally output 1.8V or 3V in nrf9160DK ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/278121?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 14:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae34a6d6-0f8e-4ffd-af2a-6d98650d4448</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for the tip :). I was finally able to communicate through the RS-485 module. The problem was with the voltage mismatch.&amp;nbsp;The nrf9160dk has a switch to change between 1.8 and 3V for the I/O.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As a next step, I was trying to enable my receiver as well through my GPIO&amp;#39;s. What is the normal voltage output that I can get through my GPIO ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Will the logic of enabling and disabling my RS-485 DE and RE be the same as in this example :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485/223289#223289"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485/223289#223289&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/277897?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 20:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd5c76ed-128e-4316-a9b7-492632008383</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try connecting all the pins to the same board (nrf9160dk), as shown in the image. Not to the Arduino&amp;#39;s&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/277885?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 17:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3ecde8e-405a-42f3-9af3-733858c5e7fd</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I tried this config that you told me. Attaching the picture of it.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20201030_5F00_175827.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I connected Tx to my configured input P0.10. I also changed the number in the overlay.&lt;/p&gt;
&lt;p&gt;DE,RE are connected to 5V of other Arduino.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t see anything out.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8168.ok.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I was expecting the received strings at the receiver device.&lt;/p&gt;
&lt;p&gt;Any inputs ? I just changed the Tx pin as P0.10 in overlay and baudrate to 9600. My receiver device has the same baud arte of 9600.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/277877?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 16:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cab86732-d7b4-4dd9-b824-fd31f9dc6fff</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4174.uart_5F00_main.zip"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Why don&amp;#39;t you start really simple, follow these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Program this sample onto the nRF9160:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0755.uart_5F00_main.zip"&gt;devzone.nordicsemi.com/.../0755.uart_5F00_main.zip&lt;/a&gt;&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;Using NCS v1.3.0 an the board nrf9160dk_nrf9160ns&lt;/li&gt;
&lt;li&gt;I disabled flow control as well&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Connect the nRF9160 to the RS485 as shown in the image below:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2402.pastedimage1604075266474v2.png" alt=" " /&gt;&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: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/277654?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 15:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab3af50d-e735-4a4b-9a59-8bb5f78a5ba9</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks a lot. Sure, It would be really helpful &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;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/277652?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 15:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:742590a8-c113-4fe8-a4f6-ff49ac4e70d0</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m really sorry for the delay on this, I&amp;#39;ve been quite busy lately. I will look into this tomorrow.&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: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/277651?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 15:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10691e18-3bec-4c1c-a002-c171d5dc0563</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Any help on this would be very useful :).&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/276851?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 12:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db00c605-f848-4c41-9a3d-b6f254095b0c</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just to catch up on this, I read about the enable and the blocking mode. I believe the blocking mode after transmission is not being set up.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have enabled the DE and RE pin before transmission and I wait for a certain time before making it low.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I found this case quite relevant: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485/223289#223289"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485/223289#223289&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But it has handlers which I did not find compatible with nrf9160. Its for the nRF52 series.&lt;/p&gt;
&lt;p&gt;Could you just help me in modifying my above attached example that could be compatible with the nrf9160DK. I would really appreciate the help in this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/276453?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 13:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ced457-eea1-49ad-8c2b-8625305e83fa</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Not really. I could not figure out the exact trouble with it. The loopback works with Tx to Rx. So I assume that the string is atleast reaching the Tx.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I followed this post and got a simple example :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47218/continuously-package-send-on-uart"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47218/continuously-package-send-on-uart&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The string transmission to an outside serial interface is not happening. I wonder what could be the cause.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I just take out and put back my Tx pin on the board, I see random data on the serial analyser. I am sure the RS485 configuration is correct because for now, I just want to transmit the string. The DE is kept high for that and RE high as well (Negative logic). Any insights would be helpful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope there is no mistake in my UART config atleast.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/276424?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 11:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ef74b5c-d6b4-4496-b0ec-a3f472a917ec</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Sorry for the delay on this, I&amp;#39;ve been quite busy lately. I will look into it today. Have you made any progress?&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: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/275696?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 16:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d88f78e3-0d5b-4c1b-94f7-8d137991a327</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I tried another example that looked much simpler and I just wanted to transmit things out of the UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code is pretty straight forward as well to understand.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static K_FIFO_DEFINE(fifo_uart_tx_data);
static K_FIFO_DEFINE(fifo_uart_rx_data);

struct uart_data_t {
	void  *fifo_reserved;
	u8_t    data[1024];
	u16_t   len;
};

static struct device *uart_dev;


void uart_cb(struct device *x)
{
	uart_irq_update(x); // Start processing interrupts in ISR.
	int data_length = 0;

	if (uart_irq_rx_ready(x)) { // Check if UART RX buffer has a received char.               
		data_length = uart_fifo_read(x, uart_buf, sizeof(uart_buf)); // Read data from FIFO.
		uart_buf[data_length] = 0;
                }
                printk(&amp;quot;Received data is:%s\r\n&amp;quot;, uart_buf);

            if (uart_irq_tx_ready(x)) {
            
                struct uart_data_t *buf = 
                k_fifo_get(&amp;amp;fifo_uart_tx_data, K_NO_WAIT);
              u16_t written = 0;

              /* Nothing in the FIFO, nothing to send */
		if (!buf) {
			uart_irq_tx_disable(x);
			return;
		}

                while (buf-&amp;gt;len &amp;gt; written) {
			written += uart_fifo_fill(x,
						  &amp;amp;buf-&amp;gt;data[written],
						  buf-&amp;gt;len - written);
                       uart_tx(uart_dev, buf, 5, 5000);
		}

                while (!uart_irq_tx_complete(x)) {
			/* Wait for the last byte to get
			 * shifted out of the module
			 */
		}

		if (k_fifo_is_empty(&amp;amp;fifo_uart_tx_data)) {
			uart_irq_tx_disable(x);
		}

                k_free(buf);

      
              
}
}

void main(void)
{
       

        uart_dev = device_get_binding(&amp;quot;UART_2&amp;quot;); 
        if (!uart_dev) {
		printk(&amp;quot;error\r\n&amp;quot;);
	}          

        uart_irq_rx_disable(uart_dev);
        uart_irq_callback_set(uart_dev, uart_cb); // Set UART interrupt callback
        uart_irq_rx_enable(uart_dev);

        uart_irq_tx_enable(uart_dev);

        printk(&amp;quot;Testing1: \n&amp;quot;);              
        uart_fifo_fill(uart_dev, &amp;quot;AB&amp;quot; ,sizeof(&amp;quot;AB&amp;quot;));
        
        k_sleep(K_MSEC(100));


        
	while (1) {
                
                  k_cpu_idle();             
                
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Still, I don&amp;#39;t see the data out on my analyzer. I have a serial interface analyzer where I view the string. I tried with Arduino and that worked just by a transmit signal.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, I am unsure as to what could be the causes for it. I can see the loopback data in this example as well when I connect my Tx to Rx.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(1). I have the correct overlay files both in spm &lt;span&gt;(nrf9160dk_nrf9160)&amp;nbsp;&lt;/span&gt;as well as in my folder (nrf9160dk_nrf9160ns)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart2 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;9600&amp;gt;;
	tx-pin = &amp;lt;10&amp;gt;;
	rx-pin = &amp;lt;11&amp;gt;;
	rts-pin = &amp;lt;12&amp;gt;;
	cts-pin = &amp;lt;13&amp;gt;;
	hw-flow-control;
};

&amp;amp;uart1 {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have also changed the configuration in the&amp;nbsp;nrf9160dk_nrf9160_common.dts file in :&amp;nbsp;C:\Users\adeel\ncs\v1.3.0\zephyr\boards\arm\nrf9160dk_nrf9160.&lt;/p&gt;
&lt;p&gt;My prj config file is :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_ASYNC_API=y
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_UART_2_NRF_FLOW_CONTROL=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am unsure of what could be the issue ? The configuration or the code.&lt;/p&gt;
&lt;p&gt;I just want to transmit the string set in uart_fifo_fill() function in my code to check the UART connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/275302?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 09:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de1dbe3-6b27-4229-acc7-3a13c9d46152</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;As I understood from the RS-485 transmit and receive logic, I tried to implement it in the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;
#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;drivers/uart.h&amp;gt;
#include &amp;quot;nrf.h&amp;quot;
#include &amp;lt;hal/nrf_gpio.h&amp;gt;

#include &amp;lt;drivers/gpio.h&amp;gt;

#define GPIO_PORT &amp;quot;GPIO_0&amp;quot;

#define RS485_TRANSMIT       1
#define RS485_RECEIVE        0
#define RS485_SWITCH_PIN1    10  // Tx
#define RS485_SWITCH_PIN2    11  // Rx
#define MAX485_DE      12    // DE pin (rts)
#define MAX485_RE_NEG  13    // RE pin (cts)

static u8_t uart_buf[1024];
static struct device *uart_dev;


void uart_cb(struct device *_uart)
{
	uart_irq_update(_uart); // Start processing interrupts in ISR.
	int data_length = 0;
        

	if (uart_irq_rx_ready(_uart)) { // Check if UART RX buffer has a received char.               
		data_length = uart_fifo_read(_uart, uart_buf, sizeof(uart_buf)); // Read data from FIFO.
		uart_buf[data_length] = 0;
                }
                printk(&amp;quot;Received data is:%s\r\n&amp;quot;, uart_buf); // Output received here

}


void uart_send_str(struct device *uart, char *str){
   
    printk(&amp;quot;callback!\r\n&amp;quot;);  
    
    nrf_gpio_pin_set(MAX485_DE);   // Setting it High before Tx
    nrf_gpio_pin_set(MAX485_RE_NEG);  // Setting it low before Tx
    u32_t len = strlen(str);
    while (len--) {
        uart_poll_out(uart, *str++); // Transmission
        //uart_fifo_fill(uart, str, 2);

    k_sleep(K_MSEC(5000));   // Delay 
    nrf_gpio_pin_clear(MAX485_DE);  // Setting low for reception
    nrf_gpio_pin_clear(MAX485_RE_NEG);  // Setting High for reception
    
    }
}

void main(void)
{
        char *command = &amp;quot;OKAZZZ&amp;quot;;      // String to be transmitted out
        printk(&amp;quot;Hello, World!\r\n&amp;quot;);

        uart_dev = device_get_binding(&amp;quot;UART_2&amp;quot;); 
        if (!uart_dev) {
		printk(&amp;quot;error\r\n&amp;quot;);
	}          

        uart_irq_rx_disable(uart_dev);
        uart_irq_callback_set(uart_dev, uart_cb); // Set UART interrupt callback
        uart_irq_rx_enable(uart_dev);

        nrf_gpio_cfg_output(MAX485_DE); // Set DE as Output
        nrf_gpio_cfg_output(MAX485_RE_NEG); // Set RE as Output

	while (1) {
                printk(&amp;quot;loop head\r\n&amp;quot;);
                uart_send_str(uart_dev, command); // Function to transmit the data
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My overlay file is as follows: nrf9160dk_nrf9160ns.overlay&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart2 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	tx-pin = &amp;lt;10&amp;gt;;
	rx-pin = &amp;lt;11&amp;gt;;
	rts-pin = &amp;lt;12&amp;gt;;
	cts-pin = &amp;lt;13&amp;gt;;
	hw-flow-control;
};

&amp;amp;uart1 {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you look at the logic to see if this is the right way to enable / disable the DE/RE pins. The hardware connections are as per the overlay file.&lt;/p&gt;
&lt;p&gt;The loopback works when I only connect Tx to Rx directly, so I guess the issue is only with the DE/RE pins. The loopback data is:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Loopback-data.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I think I am close but just need some advice in enabling / disabling DE/RE pins in the code. Thanks for the help &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;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/275206?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 19:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b085626-e5bc-42bc-b629-62174eb8ec14</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I did that as well. I tried to set both the pins &lt;span&gt;(RE-DE&lt;/span&gt;) to high before transmission so that DE is enabled and RE is disabled. Then after the transmission, I tried to give a bit of a delay and then cleared both the pins to low so that DE is disabled and RE gets enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I dont have a logic analyzer right now but will try to manage it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are there any examples of RS485 communication for nRF9160DK that I could refer to for more info.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/275129?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bae3e135-d35d-4617-aadc-20a43fe035e8</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try to set RE high using&amp;nbsp;&lt;span&gt;nrf_gpio_pin_set()&lt;/span&gt;&amp;nbsp;as well. As you can see &lt;a href="https://create.arduino.cc/projecthub/maurizfa-13216008-arthur-jogy-13216037-agha-maretha-13216095/modbus-rs-485-using-arduino-c055b5"&gt;here&lt;/a&gt;, setting RE high will disable the receiver (RE is LOW enable whle DE is high enable).&lt;/p&gt;
&lt;p&gt;Do you have a logic analyzer? Try attaching it to the lines to see what&amp;#39;s actually going on.&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: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274947?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 16:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39a7c489-e313-4b39-a1e5-3c8c101e4752</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I tried to follow this example to get an idea of how to work with RS-485 here.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/55059/nrf51822-with-modbus-ttl-to-rs485&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I tried to configure the DE and RE as output through : nrf_gpio_cfg_output().&lt;/p&gt;
&lt;p&gt;Then, before sending the string, I set DE high as: nrf_gpio_pin_set().&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5355.hello_5F00_world.rar"&gt;devzone.nordicsemi.com/.../5355.hello_5F00_world.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the example I am trying to modify. Can you just have a look to see if this is the right way to configure the DE/RE pins. Thanks for looking into this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274932?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 14:43:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb98b80d-71a7-4d2e-acbc-aeac3260a9b5</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;It tried it but unfortunately it did not work :(.&lt;/p&gt;
&lt;p&gt;Right now, I have my RE connected to ground and DE (Pin 12) set as high to enable transmit. I read a blog post that explained it quite clearly:&amp;nbsp;&lt;a href="https://electronics.stackexchange.com/questions/153500/correctly-using-re-and-de-with-rs485/153508"&gt;https://electronics.stackexchange.com/questions/153500/correctly-using-re-and-de-with-rs485/153508&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did it so as to check whether I am receiving what I am sending. With this, I get some random transmission on my console but I receive the same on my nRF terminal as Received data: (which is through my uart_buf).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ASCII_5F00_nRF.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This happens when I move my DE pin a bit on pin 12 (Taking it out and putting it back in) :). That is when the data gets transmitted but it is random bits and not what I am sending.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am a bit confused with the functionality.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274926?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 14:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a2e268b-fbe4-4c86-8be7-a80b468ba532</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m not too familiar with the&amp;nbsp;&lt;span&gt;RS485, but I tried to read up on it and gained some insight. Could you&amp;nbsp;try the following connections:&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;nRF9160&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;RS485&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5V&lt;/td&gt;
&lt;td&gt;RE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5V&lt;/td&gt;
&lt;td&gt;DE&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TX&lt;/td&gt;
&lt;td&gt;DI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5V&lt;/td&gt;
&lt;td&gt;Vcc&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GND (0V)&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;GND&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Leave A and B as before.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This will not use the flow control pins, and you will not be able to receive any data. But do this&amp;nbsp;to see if you are able to transmit the data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274894?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd58707-455e-41c6-b012-99404fb077f1</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Okay, just an addition to it. I have my setup through a TTL_RS485 converter.&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_20201014_5F00_143326.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6470.ttl_5F00_rs485.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;So, I assume my RTS-CTS (RE/DE) - (12,13) pins play a role in this. I tried setting the DE (12) to High before transmitting and made it low after the transmit is done and my CTS is set in receive mode thereafter.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5148.hello_5F00_world.rar"&gt;devzone.nordicsemi.com/.../5148.hello_5F00_world.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Attaching my updated code if you could have a look at this.&lt;/p&gt;
&lt;p&gt;I was looking for some working example for communication with RS-485 and nRF9160DK. I receive random values in my external console rather than my sent ASCII value.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/ASCII.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Not sure why is it like that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274885?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 12:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea1222fe-7f0c-4b30-8faa-0569c159b553</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m looking into this right now. Will test the sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274424?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 16:50:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc9af26-0f60-472b-a75f-8df132e5cd96</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I was able to run your example and I think the loopback works.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/UART_5F00_Loopback.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I can see the send and receive at the same COM port. Just to start off sending data externally, I want to send an ASCII string externally and receive it on an external console.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4760.hello_5F00_world.zip"&gt;devzone.nordicsemi.com/.../4760.hello_5F00_world.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I tried this example but the string &amp;quot;AT, Test&amp;quot; was not transmitted externally. Could you suggest me how to go about sending some strings externally to check the UART.&lt;/p&gt;
&lt;p&gt;Also, is my SPM build error hampering the functionality of external communication ? If so, how could I get rid of that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring UART_1 for nRF9160</title><link>https://devzone.nordicsemi.com/thread/274412?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 16:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f24de47d-276c-4928-8700-1b4491837f10</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for the example. I was trying it out and I am trying to use UART_2 now.&lt;/p&gt;
&lt;p&gt;Do I need to also flash my nRF52840 board with : CONFIG_BOARD_NRF9160DK_UART2_ARDUINO=y&lt;br /&gt;CONFIG_BOARD_NRF9160DK_UART2_VCOM=n. I think its not necessary as I dint find this configuration anywhere but asking to make sure about it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was trying out the example but I am stuck in another error in the SPM file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/SPM-Error.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;The log file is attached:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘C:/Users/adeel/ncs/v1.3.0/zephyr/include/dt-bindings/gpio/gpio.h’ from solution ‘build’ in configuration ‘Common’
Building ‘C:/Users/adeel/ncs/v1.3.0/zephyr/include/dt-bindings/i2c/i2c.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/misc/generated/subsystems.json’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/parse_syscalls_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/parse_syscalls_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/zephyr_generated_headers’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_app’ from solution ‘build’ in configuration ‘Common’
Building ‘app/libapp.a’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_zephyr’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/libzephyr.a’ from solution ‘build’ in configuration ‘Common’
Building ‘C:/Users/adeel/ncs/v1.3.0/zephyr/misc/empty_file.c’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_..__modules__hal__nordic’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_..__nrf__drivers__hw_cc310’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_..__nrf__lib__fatal_error’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_..__nrf__subsys__fw_info’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_arch__arm__core__aarch32’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_arch__arm__core__aarch32__cortex_m’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_arch__arm__core__aarch32__cortex_m__cmse’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_arch__arm__core__aarch32__cortex_m__mpu’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_arch__arm__core__aarch32__cortex_m__tz’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_arch__common’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_drivers__gpio’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_drivers__serial’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_kernel’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_lib__libc__minimal’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_lib__posix’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_mbedcrypto_cc310_noglue’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_mbedcrypto_cc310’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_mbedcrypto_shared’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_mbedtls_base_vanilla’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_soc__arm__common__cortex_m’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_zephyr_prebuilt’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/common/libarch__common.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arch/arm/core/aarch32/cortex_m/mpu/libarch__arm__core__aarch32__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arch/arm/core/aarch32/cortex_m/tz/libarch__arm__core__aarch32__cortex_m__tz.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/lib/libc/minimal/liblib__libc__minimal.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/lib/posix/liblib__posix.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/drivers/gpio/libdrivers__gpio.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/drivers/serial/libdrivers__serial.a’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a’ from solution ‘build’ in configuration ‘Common’
Building ‘modules/nrfxlib/nrf_security/src/mbedtls/cc310/libmbedcrypto_cc310_noglue.a’ from solution ‘build’ in configuration ‘Common’
1&amp;gt; Compiling ‘ecjpake.c’
1&amp;gt; C:/Users/adeel/ncs/v1.3.0/mbedtls/library/ecjpake.c:30:10: error: #include expects &amp;quot;FILENAME&amp;quot; or &amp;lt;FILENAME&amp;gt;
Build failed
&lt;/pre&gt;How can I get rid of this error as this hampers my SPM file compiling now. I tried searching and found this post:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63888/there-is-a-bug-in-sdk-1-3-0-when-compile-the-mbedtls-under-the-path-of-modules-nrfxlib-nrf_security-src-mbedtls-i-get-the-following-error-mbedtls-library-chacha20-c-29-10-error-include-expects-filename-or"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/63888/there-is-a-bug-in-sdk-1-3-0-when-compile-the-mbedtls-under-the-path-of-modules-nrfxlib-nrf_security-src-mbedtls-i-get-the-following-error-mbedtls-library-chacha20-c-29-10-error-include-expects-filename-or&lt;/a&gt;&amp;nbsp;but I did not understand what to do. Could you help me around in this fix as I think the SPM is an important configuration for external UART communication.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>