jamesmunns / nrf52dk-sys

A Rust Crate to develop on the Nordic nRF52-DK
MIT License
86 stars 19 forks source link

Best NRF52 starting point? #17

Open jtrovato opened 4 years ago

jtrovato commented 4 years ago

There seem to be a lot of changes happening around nrf52 development and rust. I am brand new to rust and hoping to port my NRF project to it. Unfortunately, I am having a hard time finding the most up-to-date documentation. This repo seems to be the only wrapper for the actual SDK, but it unfortunately a couple years old now and does not support the recent NRF softdevices or SDK releases. I have found some resources in awesome-embedded-rust but they all seem to be the low-level implementations of nrf52 hals and peripherals. I specifically need softdevice S140 compatibility so I am pretty much looking for an updated version of this repo.

Is there an updated starting point for developing in rust on an NRF52? Has this functionality moved is being maintained elsewhere? Please forgive me if I simply did not google deep enough before posting!

lynaghk commented 4 years ago

@jtrovato (sorry for replying on this issue, but I couldn't find your email). My embedded Rust experience is all on STM32 chips, but I'm also curious about using Rust on nRF52 together with the soft device(s) necessary for Bluetooth and Zigbee communications. From a skim of the Nordic SDK docs, my impression is that one can flash the S140 soft device to the hardware, then access it via a C header API.

If you're familiar with the Nordic toolchain, perhaps we can pair sometime and get an rtfm + Nordic softdevice minimal example figured out for the nrf52840 dk or nrf52 usb dongle hardware? Drop me an email (kevin@keminglabs.com) if you're interested and we can work something out. (Invite open to anyone else who stumbles on this issue as well =P)