pub async fn openocd_enable(
telnet_addr: &str,
trace_port: u16,
cpu_hz: u32,
swo_hz: u32,
) -> Result<()>Expand description
Send OpenOCD (telnet console, default port 4444) the command sequence that enables SWO/ITM capture and routes trace to an internal TCP port.
cpu_hz is the core clock and swo_hz the SWO clock from [trace].swo_freq.
This is best-effort: OpenOCD may already be configured, or use a different
command spelling across versions; failures here are non-fatal to tracing.