Skip to content

Commit 6f4fcd7

Browse files
committed
Add a new example for defmt use
Signed-off-by: Daniel Egger <[email protected]>
1 parent 00030e8 commit 6f4fcd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
runner = 'probe-rs run --protocol=swd --chip STM32F042K6'
33
rustflags = [
44
"-C", "link-arg=-Tlink.x",
5+
"-C", "link-arg=--nmagic",
6+
"-C", "link-arg=-Tdefmt.x",
57
]
68

79
[build]

examples/defmt.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
use panic_halt as _;
55
use defmt_rtt as _;
6-
use defmt as _;
76

87
use stm32f0xx_hal as _;
98

@@ -12,7 +11,6 @@ use cortex_m_rt::entry;
1211
#[entry]
1312
fn main() -> ! {
1413
defmt::println!("Hello, world!");
15-
defmt::timestamp!("Hello, world!");
1614

1715
loop { }
1816
}

0 commit comments

Comments
 (0)