diff options
| author | Ulf Lilleengen <[email protected]> | 2024-01-26 08:58:23 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-01-26 08:58:23 +0100 |
| commit | ee90ee185c150085ee59c873e016b6f88f646b56 (patch) | |
| tree | 4e9c4ddfc657fc770f1e75126ecdad01698261a4 /tests | |
| parent | 4d8043cade887ecdc8a42e0b9bd9d3b5bcee1dbb (diff) | |
fix: link nrf51 tests from flash for now
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nrf51422/Cargo.toml | 4 | ||||
| -rw-r--r-- | tests/nrf51422/build.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/nrf51422/Cargo.toml b/tests/nrf51422/Cargo.toml index 246b71117..2cab20ac0 100644 --- a/tests/nrf51422/Cargo.toml +++ b/tests/nrf51422/Cargo.toml | |||
| @@ -8,9 +8,9 @@ license = "MIT OR Apache-2.0" | |||
| 8 | teleprobe-meta = "1" | 8 | teleprobe-meta = "1" |
| 9 | 9 | ||
| 10 | embassy-sync = { version = "0.5.0", path = "../../embassy-sync", features = ["defmt", ] } | 10 | embassy-sync = { version = "0.5.0", path = "../../embassy-sync", features = ["defmt", ] } |
| 11 | embassy-executor = { version = "0.5.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "task-arena-size-4096", "integrated-timers"] } | 11 | embassy-executor = { version = "0.5.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "task-arena-size-128", "integrated-timers"] } |
| 12 | embassy-time = { version = "0.3.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } | 12 | embassy-time = { version = "0.3.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime"] } |
| 13 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf51", "time-driver-rtc1", "unstable-pac"] } | 13 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf51", "time-driver-rtc1", "unstable-pac", "time"] } |
| 14 | embedded-io-async = { version = "0.6.1", features = ["defmt-03"] } | 14 | embedded-io-async = { version = "0.6.1", features = ["defmt-03"] } |
| 15 | embedded-hal-async = { version = "1.0" } | 15 | embedded-hal-async = { version = "1.0" } |
| 16 | 16 | ||
diff --git a/tests/nrf51422/build.rs b/tests/nrf51422/build.rs index 71c82a70f..13ebbe4ee 100644 --- a/tests/nrf51422/build.rs +++ b/tests/nrf51422/build.rs | |||
| @@ -4,12 +4,12 @@ use std::{env, fs}; | |||
| 4 | 4 | ||
| 5 | fn main() -> Result<(), Box<dyn Error>> { | 5 | fn main() -> Result<(), Box<dyn Error>> { |
| 6 | let out = PathBuf::from(env::var("OUT_DIR").unwrap()); | 6 | let out = PathBuf::from(env::var("OUT_DIR").unwrap()); |
| 7 | fs::write(out.join("link_ram.x"), include_bytes!("../link_ram_cortex_m.x")).unwrap(); | 7 | fs::write(out.join("memory.x"), include_bytes!("memory.x")).unwrap(); |
| 8 | println!("cargo:rustc-link-search={}", out.display()); | 8 | println!("cargo:rustc-link-search={}", out.display()); |
| 9 | println!("cargo:rerun-if-changed=link_ram.x"); | 9 | println!("cargo:rerun-if-changed=memory.x"); |
| 10 | 10 | ||
| 11 | println!("cargo:rustc-link-arg-bins=--nmagic"); | 11 | println!("cargo:rustc-link-arg-bins=--nmagic"); |
| 12 | println!("cargo:rustc-link-arg-bins=-Tlink_ram.x"); | 12 | println!("cargo:rustc-link-arg-bins=-Tlink.x"); |
| 13 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); | 13 | println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); |
| 14 | println!("cargo:rustc-link-arg-bins=-Tteleprobe.x"); | 14 | println!("cargo:rustc-link-arg-bins=-Tteleprobe.x"); |
| 15 | 15 | ||
