From 761aecbd236393b81eb08db246248bc9045475ac Mon Sep 17 00:00:00 2001 From: Claas Date: Mon, 22 Jul 2024 15:14:23 +0200 Subject: [PATCH] Revert change to run debug listener and document caveats --- .cargo/config.toml | 10 ---------- README.md | 8 ++++++++ 2 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 .cargo/config.toml create mode 100644 README.md diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 0e16472..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,10 +0,0 @@ -[target.'cfg(all(target_arch = "arm", target_os = "none"))'] -runner = "probe-rs run --chip RP2040" -# To run directly on a connected pico without a probe -# runner = "elf2uf2-rs -d" - -[build] -target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+ - -[env] -DEFMT_LOG = "debug" diff --git a/README.md b/README.md new file mode 100644 index 0000000..35e062a --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Caveats +**Packages can not be run from the workspace root.** You need run them from their respective directory. +This is due to the [fan-controller](fan-controller) package only compiling with the `thumbv6m-none-eabi` target which is +specified in [.config.toml](fan-controller/.cargo/config.toml) which will only be read by cargo when running from the +that package directory. +There is currently an unstable [per-package-target](https://doc.rust-lang.org/cargo/reference/unstable.html#per-package-target) +cargo feature in the works [on GitHub](https://github.com/rust-lang/cargo/issues/9406), but it does not support the +runner specified which is also required to run on a connected RP2040 pico. \ No newline at end of file -- 2.51.2