<?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>zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19295/zephyr-hci-uart-on-nrf52dk---hci-interface-bring-up-fails</link><description>Hi, 
 I am not sure if this is the right place to open up a thread about a zephyr HCI firmware issue. Since Nordic also contributes to zephyr I&amp;#39;m putting up this question here. 
 I have compiled the hci_uart sample from zephyr and flashed zephyr.hex</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Aug 2018 06:29:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19295/zephyr-hci-uart-on-nrf52dk---hci-interface-bring-up-fails" /><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/143840?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 06:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb5d6ac1-6935-4921-890c-fc20b48273be</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;This thread is &amp;gt;1 year old. If you have an issue, please create a new case.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR&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: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/143815?ContentTypeID=1</link><pubDate>Sun, 12 Aug 2018 14:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7f777e-79ba-4e47-8bfc-a2cc5d17c665</guid><dc:creator>icephyr</dc:creator><description>&lt;p&gt;Hi，&lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/sundar.subramaniyan"&gt;sundar&lt;/a&gt;，&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;I met the same problem with you,can tell me how this problem was solved?thanks&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74785?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2017 14:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2ca7a0-1c48-48fe-a75f-27b89d90718c</guid><dc:creator>amartino</dc:creator><description>&lt;p&gt;@Robin Could you please post the steps for a successful example? I&amp;#39;m trying to have them documented &lt;a href="https://devzone.nordicsemi.com/question/173179/zephyr-hci-uart-on-pca10040-with-linux-controller/"&gt;here&lt;/a&gt;. Didn&amp;#39;t thought it would work with the JLink directly, which is why I initially started with the external UART connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74794?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2017 08:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6320fe25-3921-4e97-8454-a1f5d2f52555</guid><dc:creator>sundar</dc:creator><description>&lt;p&gt;Well I finally figured it out. It was a problem with the Raspberry Pi in my case.
I could make it work with the UART interface with an x86 laptop running Linux.
I believe it has something to do with the FTDI UART driver on the Pi.
It worked occasionally and crashing the kernel in a while.
So it has nothing to do with the UART interface being bridged by the USB CDC ttyACMx interface.
Thanks for the help and timely responses from the community!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74784?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 19:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d3a2515-379b-4ed1-8d2a-7b66cb7b8f54</guid><dc:creator>robin</dc:creator><description>&lt;p&gt;I am also working though this problem:  moving the UART connection from the Segger JLink-based VCP to PCA10040 header pins.
A photo of my setup is at &lt;a href="https://drive.google.com/open?id=0B4uhGuh7yEePUnBPc0tjNWlVUWs"&gt;drive.google.com/open&lt;/a&gt;
A photo of the UART GPIO pins: &lt;a href="https://drive.google.com/open?id=0B4uhGuh7yEePUjJISUp3NUZqT1k"&gt;drive.google.com/open&lt;/a&gt;
A photo of the SBxx to be cut: &lt;a href="https://drive.google.com/open?id=0B4uhGuh7yEePZVRrUWNwN0xwSXM"&gt;drive.google.com/open&lt;/a&gt;
I have been working on the for a couple days and believe it too is related to HW flow control: RTS/CTS lines are at issue.&lt;/p&gt;
&lt;p&gt;As a related point, I have been successful in getting the HCI-H4 to work when I interconnect the Raspberry Pi with the PCA10040 via the Segger JLink VCP.  see screenshot &lt;a href="https://drive.google.com/open?id=0B4uhGuh7yEePNjMwbHpJenI3dUE"&gt;drive.google.com/open&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74789?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 14:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc8aefd1-90fe-4594-b7e3-059b5545332d</guid><dc:creator>sundar</dc:creator><description>&lt;p&gt;The Linux host has two controllers and I have brought down hci0 (the on-board interface) before the experiments. I don&amp;#39;t have a logic analyser with me so I&amp;#39;d have to consider the LED blink option or the RTT method. I&amp;#39;m hoping to configure the RTT support and debug using the JLink debugger.
I&amp;#39;ll try and update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74793?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 14:27:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b17220e4-25cb-4599-b2f5-73756bd0b586</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Weird indeed. That said in your ttyUSBx log I see you have 2 controllers connected, maybe we could start by removing one of them. Also I&amp;#39;m not sure who&amp;#39;s sending that Reset command, seems strange that btmgmt would do that at that point in time. The only option I can see right now is to sniff the GPIO pins with a logic analyzer to see whether the reset command is reaching the nRF52. Or you could also try to modify the code in hci_uart so that every time it receives a packet it blinks an LED or something similar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74792?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 14:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b2a205c-f1b4-47c3-a8db-360c4e97e363</guid><dc:creator>sundar</dc:creator><description>&lt;p&gt;It appears as a /dev/ttyUSBx interface on Linux.
The RTS from the nRF52DK is connected to the CTS pin in the FTDI module and vice versa for the board&amp;#39;s CTS pin.
It does not seem to be an issue with flow control because the other HCI commands and events are getting transferred. If the RTS/CTS pins are not connected the static-addr command would fail and BTMON wouldn&amp;#39;t show the capabilities info upon init.&lt;/p&gt;
&lt;p&gt;Only the HCI reset command is not getting processed. Weird.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74791?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 13:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92816158-9ffc-4bec-b0f1-5cbc18f76155</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;How does exactly the &amp;quot;UART interface&amp;quot; appear to Linux when you are using FTDI? is it a UART device in dev/tty* ? Perhaps it&amp;#39;s an issue with flow control? have you mapped the CTS and RTS lines correctly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74790?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 12:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d20b3db-64bf-43fa-bcb1-9bd81d37ced8</guid><dc:creator>sundar</dc:creator><description>&lt;p&gt;Hi Carles,&lt;/p&gt;
&lt;p&gt;I tried your suggestion of using pins P.028 - P.031 and I see the same issue.
When comparing the BTMON logs for both interfaces I see there is no response for the HCI reset command for the auto-power command from btmgmt in UART interface case.
If ttyACMx interface is used, the HCI reset happens and we get a HCI event for reset completion.&lt;/p&gt;
&lt;p&gt;Here are the logs for both interfaces:
&lt;a href="http://pastebin.com/zvY0nyCf"&gt;http://pastebin.com/zvY0nyCf&lt;/a&gt; (UART interface)
&lt;a href="http://pastebin.com/dQUGAzQT"&gt;http://pastebin.com/dQUGAzQT&lt;/a&gt; (ttyACMx interface)&lt;/p&gt;
&lt;p&gt;I&amp;#39;m checking how the reset is handled on zephyr now.
Please let me know if you have any pointers.&lt;/p&gt;
&lt;p&gt;Thanks,
Sundar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74788?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 11:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45680bdb-2d23-430d-8f03-5cdc868e3b3c</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;I am told by the hardware people that if you want to use the UART without powering the board via USB, then the safest option is to configure the UART pins to some other GPIOs that are not taken by the Segger IC (any free GPIOs, you can then change the config in the boards/ folder in Zephyr) and then you should be able to run on battery with the UART interfacing the remote Host.&lt;/p&gt;
&lt;p&gt;Here are the lines you should change once you&amp;#39;ve chose new pins:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/blob/master/boards/arm/nrf52_pca10040/Kconfig.defconfig#L21"&gt;github.com/.../Kconfig.defconfig&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Suggested pins for you to use: P0.28-P0.31&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74787?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2017 15:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d611e77-b880-454b-99bf-856e42a35d34</guid><dc:creator>sundar</dc:creator><description>&lt;p&gt;Thanks for the link to the guide. I was able to get the HCI UART sample working as explained in it.
I was under the impression that I had to connect via the UART pins (exposed via GPIO 5, 6, 7, 8).
I could only bring up the interface with the ttyACM0 interface created via the USB CDC interface.
I read somewhere on the zephyr wiki page that the ttyACM0 interface is bridged to the nRF52&amp;#39;s UART interface.&lt;/p&gt;
&lt;p&gt;I want to be able to run the board with battery.
I tried to attach with the UART interface (through an FTDI UART converter with proper flow control pins connected) and I was able to set the BD address with the static-addr command on btmgmt but when auto-power command seems to fail. Only if I use the ttyACM0 interface was I able to power on with auto-power command.&lt;/p&gt;
&lt;p&gt;I am wondering if the bridging somehow affects the usage of plain UART pins.
Is there a way to un-bridge this via software or jumper pins?
Is it possible to talk to the nRF52 through the UART interface directly?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr HCI UART on nRF52DK - HCI interface bring up fails</title><link>https://devzone.nordicsemi.com/thread/74786?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 09:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc925e60-615e-489b-b19b-2e48fb9c7c97</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you compile &lt;code&gt;hci_uart&lt;/code&gt; from master, or did you check out a given version?&lt;/p&gt;
&lt;p&gt;It may be that your bluez installation is a bit old.
Have you tried &lt;a href="https://devzone.nordicsemi.com/blogs/1059/nrf5x-support-within-the-zephyr-project-rtos/"&gt;following the guide by Carles&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Note, if your kernel version is older (f.ex. 4.4.x), you may have to configure bluez with &lt;code&gt;--enable-experimental&lt;/code&gt; for bluez to compile &lt;code&gt;&amp;lt;bluezsrc&amp;gt;/tools/btattach&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Be sure to use &lt;code&gt;btmon&lt;/code&gt; for monitoring and logging to see if the communication is up and running properly. This command should be called prior to &lt;code&gt;btattach&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>