<?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 failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108367/nrf9160-dk-failed-to-add-another-uart-to-ble-nus-example</link><description>Hello, 
 I am currently working on a project using the NRF9160DK and I am encountering an issue when trying to add another UART (UART3) to the BLE NUS example. 
 I have successfully managed to use the hci_lpuart for BLE communication and can run the BLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Feb 2024 15:02:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108367/nrf9160-dk-failed-to-add-another-uart-to-ble-nus-example" /><item><title>RE: NRF9160 DK failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469293?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 15:02:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70c79ff9-d577-4fac-b7b2-cf89d9d372c8</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;This was it. Now it&amp;#39;s working. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469290?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 14:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e668569-cced-4b7d-a8c3-25733cd78155</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;Looks like&amp;nbsp;CONFIG_UART_3_ASYNC is being n-selected as&amp;nbsp;CONFIG_UART_3_INTERRUPT_DRIVEN is y-selected.&lt;/p&gt;
&lt;p&gt;Can you explicitly set&amp;nbsp;CONFIG_UART_3_INTERRUPT_DRIVEN=n as well?&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 failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469282?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 14:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a00bffe-f975-4598-a178-6c50916892be</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;I tried setting CONFIG_UART_3_ASYNC too...&lt;br /&gt;I &lt;span class="yKMVIe"&gt;appended&lt;/span&gt; the config file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/full_5F00_config.txt"&gt;devzone.nordicsemi.com/.../full_5F00_config.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469253?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 13:33:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400d4e30-be77-440b-aa8a-9767f8d34f7f</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;If we look at the failing function in detail, ie. uart.h:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.4.99-ncs1-2/include/zephyr/drivers/uart.h#L1246"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.4.99-ncs1-2/include/zephyr/drivers/uart.h#L1246&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It does require certain settings for UART3, like &amp;quot;CONFIG_UART_3_ASYNC&amp;quot; is set. Could you share the full .config file from build-folder/zephyr/.config ? You can rename it to .txt if you have problems uploading it here.&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 failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469243?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 13:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71a5f842-b54c-4c85-b633-7489cbd74cac</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;I added the uart3 node to the dts file but the problem still persists.&lt;br /&gt;&lt;br /&gt;The uart3 is compiled as okay in the build/zephyr directory:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;uart3: uart@b000 {
				compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
				reg = &amp;lt; 0xb000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
				status = &amp;quot;okay&amp;quot;;
				current-speed = &amp;lt; 0x1c200 &amp;gt;;
				pinctrl-0 = &amp;lt; &amp;amp;uart3_default_alt &amp;gt;;
				pinctrl-1 = &amp;lt; &amp;amp;uart3_sleep_alt &amp;gt;;
				pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
			};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Is it possible that the problem is caused by the use of lpuart/uart2 for HCI?&lt;br /&gt;Because I can enable uart3 and register a callback in a different project that does not use BLE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469236?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 13:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b13d314f-068c-4246-b63a-e0cf2230605d</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 compiled down zephyr.dts, uart3 is listed as disabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;			uart3: uart@b000 {
				compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
				reg = &amp;lt; 0xb000 0x1000 &amp;gt;;
				interrupts = &amp;lt; 0xb 0x1 &amp;gt;;
				status = &amp;quot;disabled&amp;quot;;
			};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to restructure your device tree node? Something like this?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart3 {
    status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart3_default_alt&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart3_sleep_alt&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&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 failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469233?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 12:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffe55a53-386b-45f0-acf4-a56e65b797db</guid><dc:creator>V1incentC</dc:creator><description>&lt;p&gt;I have added the spi3 disable to my overlay but the problem still &lt;span&gt;persists.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8206.nrf9160dk_5F00_nrf9160_5F00_ns.conf"&gt;devzone.nordicsemi.com/.../8206.nrf9160dk_5F00_nrf9160_5F00_ns.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4087.prj.conf"&gt;devzone.nordicsemi.com/.../4087.prj.conf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7776.zephyr.dts"&gt;devzone.nordicsemi.com/.../7776.zephyr.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 DK failed to add another UART to BLE NUS example</title><link>https://devzone.nordicsemi.com/thread/469224?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 12:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f04043b5-d2e2-41be-99ff-bbc582ba7e00</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;Could you share your build/zephyr/zephyr.dts and .config? By default, spi3 is enabled, which will create a conflict with enabling uart3.&lt;/p&gt;
&lt;p&gt;If that is the case, you can disable spi3:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&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></channel></rss>