# microbit_rust **Repository Path**: lflxp/microbit_rust ## Basic Information - **Project Name**: microbit_rust - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-01-04 - **Last Updated**: 2026-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 学习资料 1. https://tech.microbit.org/hardware/schematic/ 2. https://tech.microbit.org/docs/hardware/assets/Microbit_V2_Assembly.pdf 3. https://github.com/microbit-foundation/microbit-v2-hardware/blob/main/V2.00/MicroBit_V2.0.0_S_schematic.PDF 4. https://github.com/nrf-rs/microbit/tree/main/examples/display-blocking 5. https://www.youtube.com/watch?v=TOAynddiu5M 6. https://www.youtube.com/watch?v=dxgufYRcNDg esp32+rust # 编译 ## 安装交叉编译目标 thumbv7em-none-eabihf > rustup target add thumbv7em-none-eabihf --toolchain nightly > cargo +nightly build -Z build-std=core # 烧录 指定工具链烧录 > cargo +nightly embed # PAC > cargo add nrf52833-pac # HAL ``` cargo add nrf52833-hal cargo add embedded-hal ``` # Microbit-v2 BSP 官方板条 > cargo add microbit-v2 # 报错 你的 cargo embed 报错依然是因为没有为 nightly 工具链安装 thumbv7em-none-eabihf 目标。 虽然你之前已经安装过,但 cargo embed 默认用的是 stable 工具链,或者没有指定 nightly。 解决方法如下: 再次确保 nightly 工具链的目标已安装(你可以运行一次): 用 nightly 工具链运行 cargo embed: 如果你希望每次 cargo embed 默认用 nightly,可以在项目根目录的 config.toml 添加: 请先执行第1步和第2步,若还有问题请反馈报错内容。