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.
Thanks, Siddhesh
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,
On 14 March 2017 at 19:07, Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
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).
Ahh, I don't have an SWD programmer, so I'll have to buy one later. I'll have to make do with the remaining examples or write something of my own. Thank you for your reply though, since I now know how to proceed.
Thanks, Siddhesh
On Tue, Mar 14, 2017 at 2:00 PM, Siddhesh Poyarekar siddhesh@linaro.org wrote:
On 14 March 2017 at 19:07, Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
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).
Ahh, I don't have an SWD programmer, so I'll have to buy one later. I'll have to make do with the remaining examples or write something of my own. Thank you for your reply though, since I now know how to proceed.
You could flash a special firmware into the main STM32 MCU and use that to flash nRF51 (https://github.com/blacksphere/blackmagic), but that would require work as I'm not sure anyone did that on this board yet.
But I would recommend buying a SWD programmer anyway, as that can later be used with other boards (and to help you debugging Zephyr on Carbon).
Cheers,
Hello Ricardo,
On Tue, 14 Mar 2017 16:41:05 -0300 Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
[]
You could flash a special firmware into the main STM32 MCU and use that to flash nRF51 (https://github.com/blacksphere/blackmagic), but that would require work as I'm not sure anyone did that on this board yet.
Nice that you mentioned that, I had such question in mind for a while. But how would that work - are nRF51's programming pins connected to STM32's GPIOs?
But I would recommend buying a SWD programmer anyway, as that can later be used with other boards (and to help you debugging Zephyr on Carbon).
Cheers,
On Sat, Apr 8, 2017 at 6:05 AM, Paul Sokolovsky paul.sokolovsky@linaro.org wrote:
Hello Ricardo,
On Tue, 14 Mar 2017 16:41:05 -0300 Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
[]
You could flash a special firmware into the main STM32 MCU and use that to flash nRF51 (https://github.com/blacksphere/blackmagic), but that would require work as I'm not sure anyone did that on this board yet.
Nice that you mentioned that, I had such question in mind for a while. But how would that work - are nRF51's programming pins connected to STM32's GPIOs?
Yes, basically :-)
Just need to figure out the best way to do it, but it would be quite a nice blog post for sure :-)
Cheers,
On 19/04/17 17:20, Ricardo Salveti de Araujo wrote:
On Sat, Apr 8, 2017 at 6:05 AM, Paul Sokolovsky paul.sokolovsky@linaro.org wrote:
Hello Ricardo,
On Tue, 14 Mar 2017 16:41:05 -0300 Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
[]
You could flash a special firmware into the main STM32 MCU and use that to flash nRF51 (https://github.com/blacksphere/blackmagic), but that would require work as I'm not sure anyone did that on this board yet.
Nice that you mentioned that, I had such question in mind for a while. But how would that work - are nRF51's programming pins connected to STM32's GPIOs?
Yes, basically :-)
I've used the BMP firmware a fair bit in the past so I took a quick look to see if it would come to life on the carbon. Results are here:
https://github.com/daniel-thompson/blackmagic/blob/carbon/src/platforms/96b_...
I've made a pull request but I think it will be a little while before it gets picked up so probably best to use my carbon branch for now...
https://github.com/daniel-thompson/blackmagic.git carbon
Just need to figure out the best way to do it, but it would be quite a nice blog post for sure :-)
I'm might wait to see if there's any movement getting it upstream first... and also, since it "just works" the blog post will be pretty short ;-)
Daniel.
On Mon, Apr 24, 2017 at 6:44 AM, Daniel Thompson daniel.thompson@linaro.org wrote:
On 19/04/17 17:20, Ricardo Salveti de Araujo wrote:
On Sat, Apr 8, 2017 at 6:05 AM, Paul Sokolovsky paul.sokolovsky@linaro.org wrote:
Hello Ricardo,
On Tue, 14 Mar 2017 16:41:05 -0300 Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
[]
You could flash a special firmware into the main STM32 MCU and use that to flash nRF51 (https://github.com/blacksphere/blackmagic), but that would require work as I'm not sure anyone did that on this board yet.
Nice that you mentioned that, I had such question in mind for a while. But how would that work - are nRF51's programming pins connected to STM32's GPIOs?
Yes, basically :-)
I've used the BMP firmware a fair bit in the past so I took a quick look to see if it would come to life on the carbon. Results are here:
https://github.com/daniel-thompson/blackmagic/blob/carbon/src/platforms/96b_...
I've made a pull request but I think it will be a little while before it gets picked up so probably best to use my carbon branch for now...
https://github.com/daniel-thompson/blackmagic.git carbon
Just need to figure out the best way to do it, but it would be quite a nice blog post for sure :-)
I'm might wait to see if there's any movement getting it upstream first... and also, since it "just works" the blog post will be pretty short ;-)
That's awesome, need to give this a try soon :-)
Thanks for pushing this.
Cheers,
On 24/04/17 14:56, Ricardo Salveti de Araujo wrote:
On Mon, Apr 24, 2017 at 6:44 AM, Daniel Thompson daniel.thompson@linaro.org wrote:
On 19/04/17 17:20, Ricardo Salveti de Araujo wrote:
On Sat, Apr 8, 2017 at 6:05 AM, Paul Sokolovsky paul.sokolovsky@linaro.org wrote:
Hello Ricardo,
On Tue, 14 Mar 2017 16:41:05 -0300 Ricardo Salveti de Araujo ricardo.salveti@linaro.org wrote:
[]
You could flash a special firmware into the main STM32 MCU and use that to flash nRF51 (https://github.com/blacksphere/blackmagic), but that would require work as I'm not sure anyone did that on this board yet.
Nice that you mentioned that, I had such question in mind for a while. But how would that work - are nRF51's programming pins connected to STM32's GPIOs?
Yes, basically :-)
I've used the BMP firmware a fair bit in the past so I took a quick look to see if it would come to life on the carbon. Results are here:
https://github.com/daniel-thompson/blackmagic/blob/carbon/src/platforms/96b_...
I've made a pull request but I think it will be a little while before it gets picked up so probably best to use my carbon branch for now...
https://github.com/daniel-thompson/blackmagic.git carbon
Just need to figure out the best way to do it, but it would be quite a nice blog post for sure :-)
I'm might wait to see if there's any movement getting it upstream first... and also, since it "just works" the blog post will be pretty short ;-)
That's awesome, need to give this a try soon :-)
I will be *really* interested to hear how you get on.
Mostly I tested by getting the carbon/stm32 to program a different board (also carbon/stm32).
I also tested the self-programming carbon/stm32 to its own nrf51 but only as far as read the chip ID. I haven't tried uploading any code yet. It was a spare time hack and I have more personal interest in debug than in BLE ;-).
Success reports for programming the full BLE firmware would be very helpful.
Daniel.