diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2025-12-07 12:12:45 -0500 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-12-13 13:41:31 -0500 |
| commit | 53f0e5d382b346aa8b8c5cf221fa3b2464ef4617 (patch) | |
| tree | 4df038dfb6edc6bb99b6fe5197d3603c85b67d01 | |
| parent | 7514ffe3b565669f6535ce05826613a884fb0665 (diff) | |
Disable defmt, RTT, in flash algorithms
Typical users won't be able to decode the messages without the ELF, so
there's little reason to include the log messages.
| -rw-r--r-- | .cargo/flash_algo.toml | 3 | ||||
| -rw-r--r-- | imxrt1010evk/src/main.rs | 1 | ||||
| -rw-r--r-- | imxrt1040evk/src/main.rs | 1 | ||||
| -rw-r--r-- | imxrt1160evk/src/main.rs | 1 | ||||
| -rw-r--r-- | imxrt1170evk/src/main.rs | 1 |
5 files changed, 3 insertions, 4 deletions
diff --git a/.cargo/flash_algo.toml b/.cargo/flash_algo.toml index 51a41a8..5530e86 100644 --- a/.cargo/flash_algo.toml +++ b/.cargo/flash_algo.toml @@ -9,3 +9,6 @@ rustflags = [ "-Clink-arg=-Tdefmt.x", ] runner = "target-gen elf --fixed-load-address" + +[env] +DEFMT_LOG="off" diff --git a/imxrt1010evk/src/main.rs b/imxrt1010evk/src/main.rs index c1c715d..0d0ad80 100644 --- a/imxrt1010evk/src/main.rs +++ b/imxrt1010evk/src/main.rs @@ -1,7 +1,6 @@ #![no_std] #![no_main] -use defmt_rtt as _; use panic_probe as _; use imxrt1010evk::Algorithm; diff --git a/imxrt1040evk/src/main.rs b/imxrt1040evk/src/main.rs index 87d76cf..f144213 100644 --- a/imxrt1040evk/src/main.rs +++ b/imxrt1040evk/src/main.rs @@ -1,7 +1,6 @@ #![no_std] #![no_main] -use defmt_rtt as _; use panic_probe as _; use imxrt1040evk::Algorithm; diff --git a/imxrt1160evk/src/main.rs b/imxrt1160evk/src/main.rs index 26c6c92..f0dcb27 100644 --- a/imxrt1160evk/src/main.rs +++ b/imxrt1160evk/src/main.rs @@ -1,7 +1,6 @@ #![no_std] #![no_main] -use defmt_rtt as _; use panic_probe as _; use imxrt1160evk::Algorithm; diff --git a/imxrt1170evk/src/main.rs b/imxrt1170evk/src/main.rs index 4d7a55c..05e3a68 100644 --- a/imxrt1170evk/src/main.rs +++ b/imxrt1170evk/src/main.rs @@ -1,7 +1,6 @@ #![no_std] #![no_main] -use defmt_rtt as _; use panic_probe as _; use imxrt1170evk::Algorithm; |
