diff --git a/Cargo.toml b/Cargo.toml index 16292d3..4022e31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ version = "0.1.0" [dependencies] cortex-m = { version = "0.7", features = ["critical-section-single-core"] } defmt = "0.3" -defmt-rtt = "0.4" +defmt-brtt = "0.1" panic-probe = { version = "0.3", features = ["print-defmt"] } # TODO select the correct rtic backend rtic = { version = "2.0.0-alpha.1", features = [ "correct-rtic-backend" ] } diff --git a/README.md b/README.md index 4f532a3..c9e43ca 100644 --- a/README.md +++ b/README.md @@ -169,10 +169,10 @@ $ echo $? 0 ``` -If you're running out of memory (`flip-link` bails with an overflow error), you can decrease the size of the device memory buffer by setting the `DEFMT_RTT_BUFFER_SIZE` environment variable. The default value is 1024 bytes, and powers of two should be used for optimal performance: +If you're running out of memory (`flip-link` bails with an overflow error), you can decrease the size of the device memory buffer by setting the `DEFMT_BRTT_BUFFER_SIZE` environment variable. The default value is 1024 bytes, and powers of two should be used for optimal performance: ``` console -$ DEFMT_RTT_BUFFER_SIZE=64 cargo rb hello +$ DEFMT_BRTT_BUFFER_SIZE=64 cargo rb hello ``` #### (10. Set `rust-analyzer.linkedProjects`) diff --git a/src/lib.rs b/src/lib.rs index e22eaf7..a5ecdad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,7 @@ #![no_main] #![no_std] -use defmt_rtt as _; // global logger +use defmt_brtt as _; // global logger // TODO adjust HAL import // use some_hal as _; // memory layout