NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
<NishanthMenon_> target configure -event gdb-attach func -> I want the function to get a parameter.. any idea what maybe the best way to do that?
<Hawk777> What value do you expect to be passed in the parameter?
<NishanthMenon_> Hawk777, my SoC has a few R5s, defered examine.. am654.cpu.r5.0 configure -event gdb-attach { puts "am654.cpu.r5.0"}
<Hawk777> NishanthMenon_: So, do you mean that you want a way to get the name of the relevant target inside the handler?
<NishanthMenon_> Hawk777, correct.
<NishanthMenon_> trying to maintain a single function that does similar stuff based on just the target it was involed on.. (there are some 4 or so of the R5s)
<Hawk777> NishanthMenon_: OK, I see. The “current target” while an event handler is running is always the target where the event occurred (it temporarily overrides the current target selected via e.g. Telnet).
<Hawk777> “target current” should return the name, if you need to do something else with that.
<Hawk777> For example I think you could do something like [target current] mww 1234 5678
<Hawk777> Though since mww defaults to the current target, that would be redundant.
<NishanthMenon_> Hawk777, Awesome. thanks..
<NishanthMenon_> Hawk777, https://gist.github.com/nmenon/bdf1e8e645b1ed887272484a77628206 worked perfectly
<Hawk777> Great!
boru` has joined #openocd
boru has quit [Killed (NickServ (GHOST command used by boru`))]
boru` is now known as boru
thinkfat has quit [Ping timeout: 252 seconds]
thinkfat has joined #openocd
tomtastic_ has joined #openocd
tomtastic has quit [Ping timeout: 252 seconds]
tomtastic has joined #openocd
tomtastic_ has quit [Ping timeout: 252 seconds]
[itchyjunk] has joined #openocd
[itchyjunk] has quit [Remote host closed the connection]
tomtastic has quit [Ping timeout: 252 seconds]
tomtastic has joined #openocd
nerozero has joined #openocd
tomtastic has quit [Ping timeout: 252 seconds]
tomtastic has joined #openocd
Hawk777 has quit [Quit: Leaving.]
cluelessperson has quit [Quit: ZNC - https://znc.in]
cluelessperson has joined #openocd
cluelessperson has quit [Remote host closed the connection]
cluelessperson has joined #openocd
cluelessperson has quit [Remote host closed the connection]
tomtastic has quit [Ping timeout: 252 seconds]
cluelessperson has joined #openocd
cluelessperson has quit [Remote host closed the connection]
cluelessperson has joined #openocd
tomtastic has joined #openocd
Jookia has joined #openocd
<Jookia> is anyone else having trouble reading qspi on stm32?
[itchyjunk] has joined #openocd
loki_val has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
Hawk777 has joined #openocd
costledger_ has joined #openocd
costledger_ has left #openocd [#openocd]
nerozero has quit [Ping timeout: 252 seconds]
cp- has joined #openocd
cp- has quit [Quit: Disappeared in a puff of smoke]
cp- has joined #openocd
cp- has quit [Client Quit]
cp- has joined #openocd
cp- has quit [Client Quit]
cp- has joined #openocd
cp- has quit [Client Quit]
cp- has joined #openocd
zjason has quit [Read error: Connection reset by peer]
zjason has joined #openocd
_franck_ has quit [Ping timeout: 260 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
akaWolf has quit [Ping timeout: 264 seconds]
akaWolf has joined #openocd