aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf-rtos-trace
diff options
context:
space:
mode:
author1-rafael-1 <[email protected]>2025-09-15 20:07:18 +0200
committer1-rafael-1 <[email protected]>2025-09-15 20:07:18 +0200
commit6bb3d2c0720fa082f27d3cdb70f516058497ec87 (patch)
tree5a1e255cff999b00800f203b91a759c720c973e5 /examples/nrf-rtos-trace
parenteb685574601d98c44faed9a3534d056199b46e20 (diff)
parent92a6fd2946f2cbb15359290f68aa360953da2ff7 (diff)
Merge branch 'main' into rp2040-rtc-alarm
Diffstat (limited to 'examples/nrf-rtos-trace')
-rw-r--r--examples/nrf-rtos-trace/Cargo.toml21
-rw-r--r--examples/nrf-rtos-trace/build.rs2
-rw-r--r--examples/nrf-rtos-trace/src/bin/rtos_trace.rs6
3 files changed, 16 insertions, 13 deletions
diff --git a/examples/nrf-rtos-trace/Cargo.toml b/examples/nrf-rtos-trace/Cargo.toml
index af12212cd..c9eeaaac7 100644
--- a/examples/nrf-rtos-trace/Cargo.toml
+++ b/examples/nrf-rtos-trace/Cargo.toml
@@ -3,6 +3,7 @@ edition = "2021"
3name = "embassy-nrf-rtos-trace-examples" 3name = "embassy-nrf-rtos-trace-examples"
4version = "0.1.0" 4version = "0.1.0"
5license = "MIT OR Apache-2.0" 5license = "MIT OR Apache-2.0"
6publish = false
6 7
7[features] 8[features]
8default = ["log"] 9default = ["log"]
@@ -15,18 +16,17 @@ log = [
15] 16]
16 17
17[dependencies] 18[dependencies]
18embassy-sync = { version = "0.6.2", path = "../../embassy-sync" } 19embassy-sync = { version = "0.7.2", path = "../../embassy-sync" }
19embassy-executor = { version = "0.7.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "rtos-trace"] } 20embassy-executor = { version = "0.9.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "rtos-trace"] }
20embassy-time = { version = "0.4.0", path = "../../embassy-time" } 21embassy-time = { version = "0.5.0", path = "../../embassy-time" }
21embassy-nrf = { version = "0.3.1", path = "../../embassy-nrf", features = ["nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] } 22embassy-nrf = { version = "0.7.0", path = "../../embassy-nrf", features = ["nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] }
22 23
23cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } 24cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] }
24cortex-m-rt = "0.7.0" 25cortex-m-rt = "0.7.0"
25panic-probe = { version = "0.3" } 26panic-probe = "1.0.0"
26rand = { version = "0.8.4", default-features = false }
27serde = { version = "1.0.136", default-features = false } 27serde = { version = "1.0.136", default-features = false }
28rtos-trace = "0.1.3" 28rtos-trace = "0.2"
29systemview-target = { version = "0.1.2", features = ["callbacks-app", "callbacks-os", "log", "cortex-m"] } 29systemview-target = { version = "0.2", features = ["callbacks-app", "callbacks-os", "log", "cortex-m"] }
30log = { version = "0.4.17", optional = true } 30log = { version = "0.4.17", optional = true }
31 31
32[[bin]] 32[[bin]]
@@ -35,3 +35,8 @@ name = "rtos_trace"
35 35
36[profile.release] 36[profile.release]
37debug = 2 37debug = 2
38
39[package.metadata.embassy]
40build = [
41 { target = "thumbv7em-none-eabi", artifact-dir = "out/examples/nrf-rtos-trace" }
42]
diff --git a/examples/nrf-rtos-trace/build.rs b/examples/nrf-rtos-trace/build.rs
index 36cdb65a8..cd1a264c4 100644
--- a/examples/nrf-rtos-trace/build.rs
+++ b/examples/nrf-rtos-trace/build.rs
@@ -31,6 +31,4 @@ fn main() {
31 31
32 println!("cargo:rustc-link-arg-bins=--nmagic"); 32 println!("cargo:rustc-link-arg-bins=--nmagic");
33 println!("cargo:rustc-link-arg-bins=-Tlink.x"); 33 println!("cargo:rustc-link-arg-bins=-Tlink.x");
34 #[cfg(feature = "defmt")]
35 println!("cargo:rustc-link-arg-bins=-Tdefmt.x");
36} 34}
diff --git a/examples/nrf-rtos-trace/src/bin/rtos_trace.rs b/examples/nrf-rtos-trace/src/bin/rtos_trace.rs
index 41cc06417..c1e7f8f58 100644
--- a/examples/nrf-rtos-trace/src/bin/rtos_trace.rs
+++ b/examples/nrf-rtos-trace/src/bin/rtos_trace.rs
@@ -63,7 +63,7 @@ async fn main(spawner: Spawner) {
63 ::log::set_max_level(::log::LevelFilter::Trace); 63 ::log::set_max_level(::log::LevelFilter::Trace);
64 } 64 }
65 65
66 spawner.spawn(run1()).unwrap(); 66 spawner.spawn(run1().unwrap());
67 spawner.spawn(run2()).unwrap(); 67 spawner.spawn(run2().unwrap());
68 spawner.spawn(run3()).unwrap(); 68 spawner.spawn(run3().unwrap());
69} 69}