initial commit of heartbeat on ch32v
This commit is contained in:
commit
faa1622857
10 changed files with 750 additions and 0 deletions
27
ch32v-insert-coin/.cargo/config.toml
Normal file
27
ch32v-insert-coin/.cargo/config.toml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[build]
|
||||
target = "riscv32ec-unknown-none-elf.json"
|
||||
#target = "riscv32i-unknown-none-elf"
|
||||
|
||||
[target.'cfg(all(target_arch = "riscv32", target_os = "none"))']
|
||||
# runner = "riscv64-elf-gdb -q -x openocd.gdb"
|
||||
# runner = "riscv-none-embed-gdb -q -x openocd.gdb"
|
||||
# runner = "gdb -q -x openocd.gdb"
|
||||
# runner = "wlink -v flash"
|
||||
|
||||
# runner = "wlink -v flash --enable-sdi-print --watch-serial"
|
||||
|
||||
# Flash and debug chip with probe-rs. https://probe.rs/
|
||||
runner = "probe-rs run --chip ch32v003"
|
||||
|
||||
[unstable]
|
||||
build-std = ["core"]
|
||||
# build-std = ["core", "compiler_builtins"]
|
||||
# build-std-features = ["compiler-builtins-mem"]
|
||||
|
||||
[target."riscv32ec-unknown-none-elf"]
|
||||
rustflags = ["-C", "link-arg=-Tlink.x"]
|
||||
|
||||
#[target."riscv32i-unknown-none-elf"]
|
||||
#rustflags = [
|
||||
## "-C", "link-arg=-Tlink.x",
|
||||
#]
|
||||
Loading…
Add table
Add a link
Reference in a new issue