ZRY cc42662771 First Version OK. | hai 1 ano | |
---|---|---|
.cargo | hai 1 ano | |
.idea | hai 1 ano | |
src | hai 1 ano | |
.gitignore | hai 1 ano | |
CODE_OF_CONDUCT.md | hai 1 ano | |
Cargo.toml | hai 1 ano | |
Embed.toml | hai 1 ano | |
LICENSE | hai 1 ano | |
README.md | hai 1 ano | |
Template_README.md | hai 1 ano | |
build.rs | hai 1 ano | |
debug_probes.md | hai 1 ano | |
memory.x | hai 1 ano |
# 安装编译目标
rustup target install thumbv6m-none-eabi
# 安装flip-link
cargo install flip-link
# 如果想生成uf2文件,安装elf2uf2-rs
cargo install elf2uf2-rs --locked
cargo build --releases
让RP2040进入USB Bootloader Mode
,一般来说是按住BOOTSEL
按钮上电。
烧写
cargo run --release
elf2uf2-rs target\thumbv6m-none-eabi\release\hello_nsagp_with_rust_2022_0718_1907 hello_nsagp_with_rust_2022_0718_1907.uf2