From d82fad8c965d91fcabd859cc072b92ff322d34bf Mon Sep 17 00:00:00 2001 From: Anatol Ulrich <45840+spookyvision@users.noreply.github.com> Date: Fri, 26 Nov 2021 18:35:42 +0100 Subject: [PATCH] Add documentation for https://github.com/knurling-rs/defmt/issues/628 (#58) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 7384e42..1f92047 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,12 @@ $ 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: + +``` console +$ DEFMT_RTT_BUFFER_SIZE=64 cargo rb hello +``` + #### (8. Set `rust-analyzer.linkedProjects`) If you are using [rust-analyzer] with VS Code for IDE-like features you can add following configuration to your `.vscode/settings.json` to make it work transparently across workspaces. Find the details of this option in the [RA docs].