ZRY cc42662771 First Version OK. | 1 anno fa | |
---|---|---|
.cargo | 1 anno fa | |
.idea | 1 anno fa | |
src | 1 anno fa | |
.gitignore | 1 anno fa | |
CODE_OF_CONDUCT.md | 1 anno fa | |
Cargo.toml | 1 anno fa | |
Embed.toml | 1 anno fa | |
LICENSE | 1 anno fa | |
README.md | 1 anno fa | |
Template_README.md | 1 anno fa | |
build.rs | 1 anno fa | |
debug_probes.md | 1 anno fa | |
memory.x | 1 anno fa |
# 安装编译目标
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