<?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>Scan and advertise in nRF9160 dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63827/scan-and-advertise-in-nrf9160-dk</link><description>Hi , 
 
 I ran the example &amp;quot;zephyr\samples\bluetooth\scan_adv&amp;quot; on the nRF9160 dk kit . 
 
 It says the following error 
 &amp;quot; 
 2020-07-16T02:22:00.682Z DEBUG modem &amp;lt;&amp;lt; ***** Booting Zephyr OS v1.14.99-ncs2 ***** 2020-07-16T02:22:00.737Z DEBUG modem &amp;lt;&amp;lt; Starting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jul 2020 03:15:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63827/scan-and-advertise-in-nrf9160-dk" /><item><title>RE: Scan and advertise in nRF9160 dk</title><link>https://devzone.nordicsemi.com/thread/261100?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 03:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846cc5c5-2b9d-4a62-9e0e-0d91446560b1</guid><dc:creator>Leo26781</dc:creator><description>&lt;p&gt;Thanks a lot. Will try today&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Scan and advertise in nRF9160 dk</title><link>https://devzone.nordicsemi.com/thread/260362?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2020 12:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2700be2-9dd2-4ae0-9228-1b0fc05d6e86</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="91652" url="~/f/nordic-q-a/63827/scan-and-advertise-in-nrf9160-dk"]How to resolve this ? do i need to flash anything else&amp;nbsp;[/quote]
&lt;p&gt;You need to flash the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/hci_uart"&gt;hci_uart sample&lt;/a&gt;&amp;nbsp;to the nRF52840 on the nRF91-DK. Board name&amp;nbsp;nrf9160dk_nrf52840&lt;/p&gt;
&lt;p&gt;You might also need to set this in prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_H4=y
CONFIG_BT_WAIT_NOP=y


CONFIG_UART_2_NRF_FLOW_CONTROL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and an overlay,&amp;nbsp;nrf9160dk_nrf9160ns.overlay , like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	chosen {
		zephyr,bt-uart=&amp;amp;uart2;
	};
};

&amp;amp;uart2 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	current-speed = &amp;lt;1000000&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
	tx-pin = &amp;lt;18&amp;gt;;
	rx-pin = &amp;lt;17&amp;gt;;
	rts-pin = &amp;lt;21&amp;gt;;
	cts-pin = &amp;lt;19&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Similar to how it&amp;#39;s done in the &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/master/samples/nrf9160/lte_ble_gateway"&gt;lte_ble_gateway sample&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>