NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #openocd
tsal has joined #openocd
tsal_ has quit [Ping timeout: 260 seconds]
nerozero has joined #openocd
Haohmaru has joined #openocd
alkane has quit [Ping timeout: 248 seconds]
ariss has joined #openocd
<ariss> Hi there! I have a question regarding openocd. not sure if this is the right place to ask, if this is not the right one sorry for the noise and please if possible let me know if I can ask this somewhere else :)
<ariss>  I have a setup where openocd is runningon a remote host where I have connected my target device. I connect remotely from gdb and I also have a python script to send openocd commands over telnet for debugging (reading/writing memory). I want to use block read/write memory commands i.e load_image, dump_image but to my understanding I need to copy
<ariss> the binary files from/to the client to/from the remote host where openocd is running. Is there a way I can do this over telnet port connected to openocd?
<karlp> ariss: I believe you can do that if you use the tcl api port instead of telnet.
ariss has quit [Quit: Client closed]
<Haohmaru> so many ports to choose from
jfsimon has quit [Remote host closed the connection]
<karlp> gdb, interactive commands, and api port? not really....
<Haohmaru> your port monitor app turns into a xmas tree
jfsimon has joined #openocd
alkane has joined #openocd
alkane has quit [Ping timeout: 244 seconds]
alkane has joined #openocd
d_olex has quit [Remote host closed the connection]
d_olex has joined #openocd
Xogium has quit [Remote host closed the connection]
Xogium has joined #openocd
ariss has joined #openocd
Xogium has quit [Remote host closed the connection]
Xogium has joined #openocd
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #openocd
<ariss> karlp Thanks for the answer! I ll give it a try. I am thinking about creating a file and writing to it word by word the binary data I want to send over. It sounds suboptimal but if this works I can try to optimize it later. if there is any better idea I will be glad to hear it (I am not familiar with tcl)
<PaulFertser> ariss: hey
<PaulFertser> ariss: please stay on channel for longer to let discussion happen.
<PaulFertser> ariss: you say you still have GDB, why not use GDB's facilities to load whatever you need?
<PaulFertser> ariss: and indeed for scripting the RPC port is supposed to be used rather than telnet.
<PaulFertser> ariss: if it's binary data just use objcopy to generate ELF from it and then "load" in GDB?
<PaulFertser> ariss: or if you like Python and you're using GDB anyway you can use Python support in GDB to do it like here: https://stackoverflow.com/a/76323760
<PaulFertser> ariss: btw, did you mention "load_image" or "flash load_image"? Because if it's the first you can just create a Tcl array and then use "write_memory" command.
<PaulFertser> There's also GDB "restore" command to directly upload any binary file to a memory location (not flash).
Haohmaru has quit [Quit: saionara]
Hammdist21 has joined #openocd
jfsimon has quit [Remote host closed the connection]
ariss has quit [Quit: Client closed]
jfsimon has joined #openocd
Guest96 has joined #openocd
<Guest96> I am looking at armv8.c/h and I am curious why only ELR_ELx, ESR_ELx, and SPSR_ELx are supported. There are many other registers that are not supported. Is there another way to access those registers that I am not aware of so they are not included? ARMV8_FAR_EL2, ARMV8_AMAIR_EL1, ARMV8_TCR_EL2 are some of the ones I am talking about.
Guest96 has quit [Ping timeout: 272 seconds]
nerozero has quit [Ping timeout: 252 seconds]
Hammdist21 has quit [Quit: Client closed]
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #openocd
jfsimon has quit [Max SendQ exceeded]
jfsimon has joined #openocd
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #openocd
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #openocd