systemview-target
RTOS tracing trait implementation for SEGGER SystemView.
SEGGER SystemView can be used for non-commercial project for free and is
available here
.
callbacks-os
: Check if RTOS supports tracing callbacks from SystemView.callbacks-os-time
: Check if RTOS supports timestamp callback from SystemView.callbacks-app
: Check if your application supports callback from SystemView.log
: Activates global log
over RTT.cortex-m
: Enables Arm Cortex-M support.If you are using an RTOS which supports rtos-trace
add the following dependencies:
```toml
[dependencies] rtos-trace = "0.1" systemview-target = { version = "0.1", features = ["log", "callbacks-app", "callbacks-os", "callbacks-os-time", "cortex-m"] } log = { version = "0.4", features = ["maxleveltrace", "releasemaxlevel_warn"] } ```
and add to your code ```ìgnore // for tracing use systemviewtarget::SystemView; rtostrace::global_trace!{SystemView}
static LOGGER: systemviewtarget::SystemView = systemviewtarget::SystemView::new();
fn main() -> ! { LOGGER.init(); // for logs log::setlogger(&LOGGER).ok(); log::setmax_level(log::LevelFilter::Trace); /../ } ```