On Tue, Mar 14, 2017 at 9:21 AM, Siddhesh Poyarekar siddhesh@linaro.org wrote:
Hi,
I am trying to set up a simple demo for a lightning talk at FOSSAsia later this week and I was able to get the blinking LED examples set up quite easily thanks to the OpenHours video. I am however unable to get the beacon example working.
I am using the master branch from the zephyr project and on reset the device throws the following on UART:
Starting Beacon Demo [bt] [ERR] bt_enable: No HCI driver registered Bluetooth init failed (err -19)
indicating that bluetooth is not enabled. I'll probably spend some time looking at the code later today/tomorrow (even though I don't actually know what I'm looking for right now :)) but I figured I put this out here in case I may have missed out on something elementary.
I tried a couple of branches on the Linaro github repo as well (master and carbon to be precise) but neither worked. The carbon branch in fact refused to build, but that's an unrelated problem.
The problem is that the bluetooth integration is not yet supported by upstream directly, we still got a few SPI related patches that we are going to upstream over the next few weeks.
For now I would recommend using either https://github.com/linaro/zephyr/tree/v1.7-dev (based on the 1.7 release) or https://github.com/linaro/zephyr/tree/master-upstream-dev (our master-based development tree), but you will also need to update/flash the bluetooth firmware on the nRF51 MCU.
To flash the nRF51 MCU, please have a look at http://docs.linarotechnologies.org/device-support/stm32f4x.html#flashing-the...
Once you update nRF51, you should be able to build and use the bluetooth-related examples on your Carbon (just make sure to use the branches above).
Thanks,