๐ท Nordic nRF52840 Rust Embassy Tutorial: Getting Started from Scratch | rocking rust
๐ฎ Ready to add Nordic nRF52840 to your multi-platform Rust arsenal? This tutorial walks you through setting up and running Embassy applications on the powerful Nordic nRF52840 Bluetooth-capable microcontroller!
Following up on my task-watchdog video, Iโm expanding our portable embedded Rust journey to include Nordic devices. This step-by-step guide shows you exactly how to configure, build, and run Rust Embassy applications on the nRF52840 from complete scratch.
This video covers:
- ๐ท Introduction to the Nordic nRF52840 capabilities and features
- ๐ ๏ธ Setting up the complete development environment for nRF52840
- ๐ Creating and understanding all required config files (main.rs, Cargo.toml, .cargo/config.toml, build.rs, memory.x)
- ๐ก Building a basic LED blink example with Embassy
- ๐บ Extending the task-watchdog library to support nRF devices
- ๐งฉ Adapting portable code patterns to work across all platforms (Pico, STM32, ESP32, and now nRF)
I start with absolute basics so you can follow along even if youโve never touched a Nordic device or Embassy before, and progress to integrating our task-watchdog examples from the previous video, demonstrating true cross-platform portability.
Whether youโre interested in Bluetooth applications, ultra-low power devices, or just expanding your embedded Rust skills to another platform, this tutorial start you on the journey of building robust applications on the nRF52840.
Timestamps
00:00 Introduction to nRF52840
01:00 Pre-requisites
01:43 main.rs
06:04 Cargo.toml
07:44 .cargo/config.toml
09:16 Installing Rust target
10:11 SWD support
12:34 memory.x and build.rs
14:07 It verks!
14:54 Task-watchdog integration for nRF
18:49 Wrap-up
Links:
- Embassy nRF support: https://docs.embassy.dev/embassy-nrf/
- nRF52840 Product Page: https://www.nordicsemi.com/Products/nRF52840
- task-watchdog crate: https://crates.io/crates/task-watchdog
- GitHub repository: https://github.com/piersfinlayson/task-watchdog
If you found this video useful, please like and subscribe, and let me know in the comments what other platforms or topics youโd like to see covered next! ๐ป๐
Video content copyright (c) 2025 piers.media Limited. All rights reserved.
comments powered by Disqus