NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
Hawk777 has quit [Quit: Leaving.]
crabbedhaloablut has joined #openocd
Hawk777 has joined #openocd
skmagiik has joined #openocd
<skmagiik> Hey all, I can't seem to find any updated documentation regarding read_memory that I see referenced and used in various scripts.
<skmagiik> Open On-Chip Debugger
<skmagiik> > version
<skmagiik> version
<skmagiik> Open On-Chip Debugger 0.12.0+dev-00825-g250ab1008 (2025-01-06-23:09)
<skmagiik> > mem2array test 32 0x0 16
<skmagiik> mem2array test 32 0x0 16
<skmagiik> DEPRECATED! use 'read_memory' not 'mem2array'
<skmagiik> invalid command name "read_memory"
<skmagiik> Traceback (most recent call last):
<skmagiik> , in mem2array
<skmagiik> > read_memory
<skmagiik> read_memory
<skmagiik> invalid command name "read_memory"
nerozero has joined #openocd
<Hawk777> I’ve personally used it on 0.12.0.
<Hawk777> Dunno why you’re getting invalid command.
<Hawk777> Although, I think I only tried it via the Tcl RPC port and not the Telnet port. But I don’t think that should matter.
<skmagiik> I figured it out.
<skmagiik> (I don't have much openocd experience on unknown targets/without pre-provided configurations)
<skmagiik> I had to define a target manually and once I did so it was able to use read_memory
<Hawk777> Ahhh, gotcha. Yeah if you don’t define any targets you’ll get JTAG TAPs or whatever, but you won’t be able to do much useful with them because OpenOCD won’t know what they are (what type of CPU or whatever) and therefore how to access memory (or if they even *have* memory).
<skmagiik> Yeah, I though since it identified it `JTAG tap: cortex_a.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)` that it would use that target
<Hawk777> I think that’s just decoding the bits of the IDCODE.
<Hawk777> So a table of manufacturer IDs or something.
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
<PaulFertser> skmagiik: and for the reference, the documentation is maintained along with the source code so if you have openocd binary you should have corresponding Info manual along with it.
skmagiik has quit [Quit: Client closed]
manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
manawyrm has joined #openocd
Haohmaru has quit [Quit: saionara]
nerozero has quit [Ping timeout: 272 seconds]
urja has quit [Read error: Connection reset by peer]
urja has joined #openocd
bencoh has quit [Ping timeout: 246 seconds]
bencoh has joined #openocd
noarb has quit [Ping timeout: 248 seconds]
noarb has joined #openocd
Guest71 has joined #openocd
Guest71 has quit [Client Quit]
crabbedhaloablut has quit []
RoganDawes has quit [Quit: Client closed]
zjason`` has joined #openocd