ZRY cc42662771 First Version OK. | пре 1 година | |
---|---|---|
.cargo | пре 1 година | |
.idea | пре 1 година | |
src | пре 1 година | |
.gitignore | пре 1 година | |
CODE_OF_CONDUCT.md | пре 1 година | |
Cargo.toml | пре 1 година | |
Embed.toml | пре 1 година | |
LICENSE | пре 1 година | |
README.md | пре 1 година | |
Template_README.md | пре 1 година | |
build.rs | пре 1 година | |
debug_probes.md | пре 1 година | |
memory.x | пре 1 година |
# 安装编译目标
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