This is a library that adds support for using Segger SystemView tracing for ODP projects.
To get started with adding SystemView tracing to your Embassy application:
- Add this crate to your Cargo.toml.
systemview-tracing = { git = "https://github.com/OpenDevicePartnership/systemview-tracing", version = "0.1.0" }
- Add this feature and enable the following dependencies:
[features]
systemview-tracing = [
"systemview-tracing/tracing-enabled",
"embassy-executor/rtos-trace",
"embassy-imxrt/systemview-tracing",
]
- Initialize SystemView tracing by adding the following line to the beginning of your main function
systemview_tracing::init_tracing(system_clock_frequency)
Note: You can find system_clock_frequency by SYS_CLK_FREQ = CORE_CPU_FREQ / 2
- Since the
defmt_rttcrate cannot be used with this crate simultaneously, make sure to add this config flag before anydefmt_rttimport:
#[cfg(not(feature = "systemview-tracing"))]
use defmt_rtt as _;