#knurling #defmt #defmt-transport

no-std defmt-rtt

Transmit defmt log messages over the RTT (Real-Time Transfer) protocol

6 releases (3 breaking)

Uses new Rust 2021

0.4.0 Oct 6, 2022
0.3.2 Mar 10, 2022
0.3.1 Nov 26, 2021
0.2.0 Feb 20, 2021
0.1.0 Nov 11, 2020

#479 in Embedded development

Download history 2363/week @ 2022-08-15 3243/week @ 2022-08-22 2344/week @ 2022-08-29 2450/week @ 2022-09-05 2727/week @ 2022-09-12 2447/week @ 2022-09-19 2795/week @ 2022-09-26 2684/week @ 2022-10-03 2543/week @ 2022-10-10 2503/week @ 2022-10-17 2014/week @ 2022-10-24 1800/week @ 2022-10-31 2124/week @ 2022-11-07 1818/week @ 2022-11-14 1776/week @ 2022-11-21 1791/week @ 2022-11-28

7,675 downloads per month
Used in fewer than 27 crates

MIT/Apache

77KB
1.5K SLoC

defmt-rtt

Transmit defmt log messages over the RTT (Real-Time Transfer) protocol

defmt ("de format", short for "deferred formatting") is a highly efficient logging framework that targets resource-constrained devices, like microcontrollers.

The fastest way to get started with defmt is to use our app-template to set up a new Cortex-M embedded project.

For more details about the framework check the book at https://defmt.ferrous-systems.com

Memory use

When in a tight memory situation and logging over RTT, the buffer size (default: 1024 bytes) can be configured with the DEFMT_RTT_BUFFER_SIZE environment variable. Use a power of 2 for best performance.

Support

defmt-rtt is part of the Knurling project, Ferrous Systems' effort at improving tooling used to develop for embedded systems.

If you think that our work is useful, consider sponsoring it via GitHub Sponsors.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

Dependencies

~340–780KB
~18K SLoC