From 46626345af8d4aa4471630f1c0a818f9448cf40a Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 1 Aug 2024 11:14:08 +0800 Subject: [PATCH] Use OpenOCD read_memory rather than mrw `mrw` requires that mem_helper.tcl is sourced, whereas read_memory can be used without any config. --- humility-core/src/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/humility-core/src/core.rs b/humility-core/src/core.rs index 96afdf44..d07a19af 100644 --- a/humility-core/src/core.rs +++ b/humility-core/src/core.rs @@ -626,7 +626,7 @@ impl Core for OpenOCDCore { } fn read_word_32(&mut self, addr: u32) -> Result { - let result = self.sendcmd(&format!("mrw 0x{:x}", addr))?; + let result = self.sendcmd(&format!("read_memory 0x{:x} 32 1", addr))?; Ok(parse_int::parse::(&result)?) }