I've had some success using the microbit to play with mynewt, the builtin
debugger chip was a huge help to me as I had (and still have) rather little
idea what I was doing. I did have some trouble getting it to boot
initially, but that was solved by resetting the microbit's flash per the
instructions at
https://support.microbit.org/support/solutions/articles/19000053246-clearing-out-the-previous-program-on-a-micro-bit

As well the micropython implementation at
https://github.com/bbcmicrobit/micropython/ has a lot of existing c++ code
that may serve as a good jumping off point for drivers or other
implementation details; I used it extensively in figuring out which gpio to
set active high/low to get the display to turn on.

Sounds like an awesome project though.

-Ben

On Mon, Aug 21, 2017 at 9:30 PM, Vipul Rahane <[email protected]> wrote:

> Hello Amen Zwa,
>
> > On Aug 21, 2017, at 6:08 PM, Christopher Collins <[email protected]>
> wrote:
> >
> > Hi Amen,
> >
> > On Mon, Aug 21, 2017 at 08:18:42PM -0400, Amen Zwa wrote:
> >> Hello Devs,
> >>
> >> Is there any documentation on how to install and run Mynewt on the BBC
> >> micro:bit?
> >
> > There isn't any documentation specific to the BSP, but hopefully you
> > won't have much trouble working from a tutorial for a different device.
> > I suggest starting with the nRF52dk blinky tutorial:
> > http://mynewt.apache.org/latest/os/tutorials/nRF52/
> >
> > I believe the only discrepancy is the BSP name.  You should use this
> > BSP: @apache-mynewt-core/hw/bsp/bbc_microbit.
> >
> > (the tutorial says to use .../nrf52dk instead).
> >
> >> Along the same line, is Mynewt able to control all the sensors built
> >> into the micro:bit?
> >
> > I don't believe the necessary drivers have been implemented, but I will
> > let others who are more familiar chime in.
> >
> >> My fervent wish is to use Mynewt as the RTOS for the micro:bit, then
> >> layer a Scheme or a Common Lisp atop the OS.  It's a bit of a
> >> nostalgia, really; I want to create a plug-and-play “LISP Machine”,
> >> based on the micro:bit and Mynewt.
> > Very cool.  I would love to know how it goes.
> >
> > Chris
> >
> >>
> >> Splendid work, you lot have done.  I very much appreciate it.
> >>
> >> Sincerely,
> >>
> >> Amen Zwa
>
> I agree with Chris’s responses. Unfortunately, we do not have support for
> the sensors BBC microbit has onboard. However, we are accepting PRs if you
> plan to write drivers for the same. Thank you for the appreciation. You can
> checkout other drivers at:
> https://github.com/apache/mynewt-core/tree/master/hw/drivers/sensors <
> https://github.com/apache/mynewt-core/tree/master/hw/drivers/sensors>
>
> If you would like to write drivers for onboard sensors and add support for
> sensor framework for them you can checkout the following documentation:
> http://mynewt.apache.org/latest/os/tutorials/sensors/
> sensor_thingy_lis2dh12_onb/ <http://mynewt.apache.org/
> latest/os/tutorials/sensors/sensor_thingy_lis2dh12_onb/>
>
> Regards,
> Vipul Rahane

Reply via email to