Skip to content

Commit d755c97

Browse files
committed
Drop openocd backend
Once agian, has not been used in an extended amount of time.
1 parent 7cb5aa7 commit d755c97

2 files changed

Lines changed: 0 additions & 253 deletions

File tree

humility-probes-core/src/lib.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use anyhow::{Result, anyhow, bail};
1212
use humility::hubris::HubrisArchive;
1313
use humility::msg;
1414

15-
mod openocd;
1615
mod probe_rs;
1716
mod unattached;
1817

@@ -130,9 +129,6 @@ pub fn attach_to_probe(
130129
probe_info.serial_number,
131130
)))
132131
}
133-
"ocd" => {
134-
bail!("Probe only attachment with {} is not supported", probe)
135-
}
136132
"auto" => attach_to_probe("usb", speed_khz),
137133
_ => match TryInto::<DebugProbeSelector>::try_into(probe) {
138134
Ok(selector) => {
@@ -192,24 +188,7 @@ pub fn attach_to_chip(
192188
can_flash,
193189
)))
194190
}
195-
"ocd" => {
196-
let mut core = openocd::OpenOCDCore::new()?;
197-
let version = core.sendcmd("version")?;
198-
199-
if !version.contains("Open On-Chip Debugger") {
200-
bail!("version string unrecognized: \"{}\"", version);
201-
}
202-
203-
crate::msg!("attached via OpenOCD");
204-
205-
Ok(Box::new(core))
206-
}
207-
208191
"auto" => {
209-
if let Ok(probe) = attach_to_chip("ocd", chip, speed_khz) {
210-
return Ok(probe);
211-
}
212-
213192
attach_to_chip("usb", chip, speed_khz)
214193
}
215194

humility-probes-core/src/openocd.rs

Lines changed: 0 additions & 232 deletions
This file was deleted.

0 commit comments

Comments
 (0)