rtt-log
Log facade implementation for the Segger RTT protocol supported by the J-Link, ST-Link and other debug probes. It is based on rtt-target.
[!NOTE]
rtt-targetintroduced log integration with version0.6.1, making this crate obsolete.Please refer to the rtt-target docs for further details.
Usage
// Init the logger with maximum level (Trace).
init;
// Alternatively, init the logger with specific level.
init_with_level;
// Log something.
debug!;
Use a tool like probe-rs on the host to print the messages.
[!NOTE]
RTT uses a global symbol
_SEGGER_RTTthat can only appear once in a compiled binary. Therefore, if you want to use functions fromrtt-targetdirectly, import them fromrtt-loginstead of addingrtt-targetas a separate dependency. Otherwise, a linker error about duplicate symbols will occur.
use rprintln;
rprintln!;
License
Published under the MIT license.
Author: Oliver Rockstedt info@sourcebox.de