This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zephyr HCI_USB on PCA10059

Anybody got any hints at how to get Zephyr to work on the nrf52840 PCA10059 dongle?

After many struggles, I was finally able to compile Zephyr's sample/bluetooth/hci_usb for v1.14.0 and for master.  v1.13.0 didn't allow for the offset for the bootloader, so I didn't bother with it.

So I got a compiled .hex file and programmed it with the nice new version of nRF-Connect v3.0 and lo and behold, the USB comes up and is recognized by bluez.  Sounds good, huh?

And I really thought I was golden when I tried

sudo hcitool -i hci0 lescan

and saw my BLE devices.  Yeehaw!

But then I went to do

sudo hcitool -i hci0 lecc --random my:nu:mb:er:he:re

and wonk, wonk, wonk, wonk!

Most of the time it just hangs.  Other times I get a very long pause and a handle at address 0.

Switching to my old trusty CSR 4.0, it cuts through the above command like butter and instantly gives me a handle at address 74.

Perhaps I'm missing something.  Should I be changing some setting in

make menuconfig

to enable actual connections?  Scanning is nice, but I want to get some real work done!

Your help would be very much appreciated.

Hex files are attached.

v1.14.0.hex

master.hex

Related