rust-embedded
Write embedded firmware in Rust: ARM Cortex-M and RISC-V, no-std, HALs, and memory safety over C/C++. Use for IoT and safety-critical devices.
原文 · 译文尚未补齐适用对象:嵌入式与电路。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Rust Embedded
- Quick Start
- Key Concepts
- When to Use
- Step-by-Step
- Examples
- Best Practices
- Troubleshooting
Develop embedded systems firmware with Rust for safety, performance, and modern tooling. #![nostd] enables bare-metal code without the standard library. The Embedded HAL provides portable hardware abstraction. cortex-m-rt handles vector table and startup. Use probe-rs for flashing and debugging. Firmware for ARM Cortex-M, RISC-V microcontrollers IoT sensor nodes and actuators Safety-critical embedded systems Replacing C/C++ with memory-safe Rust 1. Pick the board/target: install rustup target add thumbv7em-none-eabihf for Cortex-M4F or the RISC-V equivalent. 2. Configure the linker: add .cargo/config.toml with rustflags (link.x) and default build target. 3. Scaffold a nostd crate: use #![nostd] + #![nomain], add cortex-m-rt for startup and a panic handler. 4. Get a HAL: enable stm32f4xxhal (or nrf-hal, esp-hal) peripheral features matching the chip. 5. Flash & debug: use probe-rs/cargo embed (or openocd + gdb-multiarch) with the target config. 6. Verify on device: blink an LED, then exercise a sensor/UART; check binary size with cargo size. Use nostd crates for bare-metal targets. Keep memory and stack usage bounded and profiled. Use interrupts and DMA for I/O; avoid busy polling.
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- ssrjkk/agent-skills
- 源文件
- .claude/skills/embedded/rust-embedded/SKILL.md
- 固定版本
- 868975614072b553f929cb32c52c5e7dc4ba8734
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:ssrjkk/agent-skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T03:01:42.584Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。