Skip to content

Commit 4662634

Browse files
committed
Use OpenOCD read_memory rather than mrw
`mrw` requires that mem_helper.tcl is sourced, whereas read_memory can be used without any config.
1 parent 984f230 commit 4662634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

humility-core/src/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl Core for OpenOCDCore {
626626
}
627627

628628
fn read_word_32(&mut self, addr: u32) -> Result<u32> {
629-
let result = self.sendcmd(&format!("mrw 0x{:x}", addr))?;
629+
let result = self.sendcmd(&format!("read_memory 0x{:x} 32 1", addr))?;
630630
Ok(parse_int::parse::<u32>(&result)?)
631631
}
632632

0 commit comments

Comments
 (0)