Folks:
I´d like to know if there is a possibility to use RUST language to compile to nRF 52 modules ?
If so, where I can find any information about it ?
Also if there exist, what about libraries to use BLE with RUST ?
Best regards
Andre
Folks:
I´d like to know if there is a possibility to use RUST language to compile to nRF 52 modules ?
If so, where I can find any information about it ?
Also if there exist, what about libraries to use BLE with RUST ?
Best regards
Andre
nRF52 uses a Cortex-M4 core - so, if you have tools to target Cortex-M4, you can use them.
The Nordic BLE protocol stack - the "SoftDevice" - is supplied as a binary; so you would have to ensure that your tools supported a suitable interface.
The SoftDevice also requires a specific memory layout - so you would have to ensure that your tools can cope with that.
It seems it can be done, but is not a thing that Nordic support:
Hi Andre,
If you want to go with a pure-Rust solution, the best starting point is nrf-hal: https://github.com/nrf-rs/nrf-hal
It's not well documented, unfortunately, so I suggest you read up on the general documentation about embedded Rust, if you haven't already: https://docs.rust-embedded.org/
If you want to target Nordic's SDK from Rust, there's nrf52dk-sys, but I've never used that and don't know what its status is: https://github.com/jamesmunns/nrf52dk-sys
I haven't worked with Bluetooth yet, so I don't know what works best here. But here are some things I'm aware of:
If you need help with anything the nRF Rust channel on Matrix is probably a good place: https://matrix.to/#/#nrf-rs:matrix.org
All the best,
Hanno