Get in Touch

Course Outline

Getting Started with Embedded Rust

  • Overview of the no_std, core, and embedded Rust ecosystem.
  • Selecting a target and understanding target triples.
  • Setting up rustup, cargo, and target toolchains.

Tooling, Build & Debug Workflow

  • Utilizing workflows with cargo, cargo-embed, probe-run, and OpenOCD.
  • Flashing and debugging using hardware probes (such as ST-Link and JLink).
  • Continuous Integration (CI) considerations for building embedded Rust firmware.

Hardware Abstraction and Peripheral Access

  • Understanding embedded-hal traits and driver patterns.
  • Working with Peripheral Access Crates (PACs) and device crates generated via svd2rust.
  • Writing and utilizing HAL drivers and Board Support Crates (BSCs).

Memory Safety, Concurrency & Real-Time

  • Implementing safe patterns for shared state and mutable references during interrupts.
  • Utilizing RTIC and other concurrency models for real-time systems.
  • Managing heap versus stack usage, allocators, and strategies to avoid dynamic allocation.

Error Handling, Testing & Reliability

  • Adopting error handling patterns suited for constrained environments.
  • Conducting unit testing on the host versus integration testing on hardware.
  • Strategies for fault analysis, logging, and post-mortem reviews.

Performance, Power & Resource Optimization

  • Benchmarking, measurement, and optimization of critical paths.
  • Techniques for reducing code size and managing linker scripts.
  • Power management strategies and low-power design patterns.

Deployment, Security & Ecosystem Best Practices

  • Secure boot processes, firmware signing, and update strategies.
  • Supply-chain considerations and dependency management.
  • A roadmap for migrating from C firmware to Rust and accessing community resources.

Summary and Next Steps

Requirements

  • A solid understanding of core Rust concepts, including ownership, borrowing, and lifetimes.
  • Hands-on experience in writing non-trivial Rust programs (intermediate proficiency).
  • Familiarity with embedded systems concepts such as memory-mapped I/O, interrupts, and peripherals.

Audience

  • Embedded firmware engineers looking to adopt Rust.
  • Software engineers with Rust experience who are transitioning to low-level systems.
  • Technical leads assessing Rust for embedded product development.
 14 Hours

Number of participants


Price per participant

Testimonials (1)

Upcoming Courses

Related Categories