Use brtt instead of rtt
This commit is contained in:
+1
-1
@@ -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" ] }
|
||||
|
||||
@@ -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`)
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user