NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
boru` has joined #openocd
boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
tsal has quit [Ping timeout: 265 seconds]
tsal has joined #openocd
zjason has quit [Ping timeout: 245 seconds]
sbach has quit [Quit: WeeChat 3.0]
rkta_ has joined #openocd
captain_morgan4 has joined #openocd
ttmrichter5 has joined #openocd
joconor_ has joined #openocd
nathanhi- has joined #openocd
meow_wei has joined #openocd
tomtastic_ has joined #openocd
joconor has quit [Ping timeout: 264 seconds]
clever has quit [Ping timeout: 264 seconds]
captain_morgan has quit [Ping timeout: 264 seconds]
_Getty has quit [Ping timeout: 264 seconds]
medicalwei has quit [Ping timeout: 264 seconds]
ttmrichter has quit [Read error: Connection reset by peer]
nathanhi has quit [Ping timeout: 264 seconds]
rkta has quit [Ping timeout: 264 seconds]
tomtastic has quit [Ping timeout: 264 seconds]
captain_morgan4 is now known as captain_morgan
rkta_ is now known as rkta
clever has joined #openocd
zjason has joined #openocd
nohit has quit [*.net *.split]
PaulFertser has quit [*.net *.split]
borneoa_ has quit [*.net *.split]
xantoz has quit [*.net *.split]
marex has quit [*.net *.split]
devanagram has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
nohit has joined #openocd
PaulFertser has joined #openocd
borneoa_ has joined #openocd
gruetzkopf has joined #openocd
marex has joined #openocd
xantoz has joined #openocd
devanagram has joined #openocd
Hawk777 has quit [Quit: Leaving.]
<zapb> Is it possible to add subcommands via Tcl script to a target?
rudar has joined #openocd
<borneoa_> zapb: after the recent merge of topic command_rework, yes. Check the proc "hla newtap" in jtag/startup.tcl
<borneoa_> zapb: there is still one limitation. It's complicated to add a sublevel and then subcommands to that sublevel.
<zapb> borneoa_, oh nice!
<zapb> borneoa_, btw, I'm reworking Tcl interface for memory interface (mem2array / array2mem). I appreciate your feedback and also don't like the way it works at the moment
Getty has joined #openocd
<borneoa_> zapb: cool! But we need to keep the existing mem2array & C for backwards compatibility
<zapb> borneoa_, yes, I have backward compatibility with mem2array and array2mem
<zapb> borneoa_, what do you mean with C?
<borneoa_> zapb: sorry, was to type fast and bypass the spell checker. "Mem2array and friends"
<zapb> borneoa_, ah okay
<zapb> borneoa_, at the moment I'm a bit stuck with a procedure that calls my "mem2array" and "array2mem" backward comp. wrapper at init
<zapb> any idea?
<zapb> I use init_targets at the moment but that can be overwritten by board configs
<zapb> well, not calling but generating it for all available targets
<zapb> basically I have a loop that generates mem2array and array2mem subcommands for each target
<borneoa_> zapb: didn't catched what the problem is. You can even consider to push on gerrit something not completed as an RFC
<borneoa_> zapb: ok, you have a TCL proc for the wrapper
<zapb> borneoa_, yes, I want to remove all the C code for the old commands
<borneoa_> zapb: and you need one instance per target
<zapb> yes, that's why I have a loop over all targets executed in "init_targets"
<zapb> But I don't think init_targets is the best place
<borneoa_> zapb: I'm cooking a change that removes all the commands with target name as prefix. Practically we will have the target name that becomes an independent command and that can be used as prefix for any other command. It will change the current target before calling the rest of the line. That would simplify your implementation. But it's not ready yet. If you think it's too complex making the TCL wrapper, you can left it in C and
<borneoa_> we move to TCL once my change is ready
<zapb> borneoa_, okay, sounds great!
tarekb has joined #openocd
<borneoa_> zapb: if you have ready the wrapper for the generic command (without the target prefix), push it! It will be reused for the prefixed version, later on.
<tarekb> hi borneoa_: do you think that we can approve the 'arm flags' changes #6229 #6233 #6240
<borneoa_> tarekb: I don't remember. I need to go back to my PC to check
<tarekb> Thanks borneoa_ ;)
<tarekb> and #6062...64 please
<zapb> borneoa_, yep, will do. I'll use a C wrapper for the prefixed version for now
ipatch has joined #openocd
tarekb has quit [Read error: Connection reset by peer]
tarekb has joined #openocd
rudar has quit [Quit: Leaving]
tarekb has quit [Read error: Connection reset by peer]
ipatch has quit [Ping timeout: 272 seconds]
ipatch has joined #openocd