| Crates.io | systemview-target |
| lib.rs | systemview-target |
| version | 0.2.0 |
| created_at | 2022-07-19 09:17:37.381283+00 |
| updated_at | 2025-07-23 18:39:04.049034+00 |
| description | RTOS tracing trait implementation for SEGGER SystemView. |
| homepage | https://bern-rtos.org |
| repository | https://gitlab.com/bern-rtos/tools/rtos-trace |
| max_upload_size | |
| id | 628206 |
| size | 410,411 |
systemview-targetRTOS 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:
# Cargo.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 = ["max_level_trace", "release_max_level_warn"] }
and add to your code
// for tracing
use systemview_target::SystemView;
rtos_trace::global_trace!{SystemView}
static LOGGER: systemview_target::SystemView = systemview_target::SystemView::new();
fn main() -> ! {
LOGGER.init();
// for logs
log::set_logger(&LOGGER).ok();
log::set_max_level(log::LevelFilter::Trace);
/*..*/
}