Use brtt instead of rtt

This commit is contained in:
datdenkikniet
2023-04-22 22:16:50 +02:00
parent 2883ed103a
commit 0492e028b8
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ version = "0.1.0"
[dependencies] [dependencies]
cortex-m = { version = "0.7", features = ["critical-section-single-core"] } cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
defmt = "0.3" defmt = "0.3"
defmt-rtt = "0.4" defmt-brtt = "0.1"
panic-probe = { version = "0.3", features = ["print-defmt"] } panic-probe = { version = "0.3", features = ["print-defmt"] }
# TODO select the correct rtic backend # TODO select the correct rtic backend
rtic = { version = "2.0.0-alpha.1", features = [ "correct-rtic-backend" ] } rtic = { version = "2.0.0-alpha.1", features = [ "correct-rtic-backend" ] }
+2 -2
View File
@@ -169,10 +169,10 @@ $ echo $?
0 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 ``` console
$ DEFMT_RTT_BUFFER_SIZE=64 cargo rb hello $ DEFMT_BRTT_BUFFER_SIZE=64 cargo rb hello
``` ```
#### (10. Set `rust-analyzer.linkedProjects`) #### (10. Set `rust-analyzer.linkedProjects`)
+1 -1
View File
@@ -1,7 +1,7 @@
#![no_main] #![no_main]
#![no_std] #![no_std]
use defmt_rtt as _; // global logger use defmt_brtt as _; // global logger
// TODO adjust HAL import // TODO adjust HAL import
// use some_hal as _; // memory layout // use some_hal as _; // memory layout