NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
_whitelogger_ has joined #openocd
wmat has joined #openocd
crabbedhaloablut has quit []
vampirefrog has quit [Ping timeout: 260 seconds]
Hawk777 has joined #openocd
urja has quit [Read error: Connection reset by peer]
nerozero has joined #openocd
urja has joined #openocd
Kerr has quit [Quit: Bye.]
crabbedhaloablut has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Kerr has joined #openocd
Haohmaru has joined #openocd
HelloShitty has joined #openocd
wingsorc has quit [Ping timeout: 245 seconds]
rkta_ has joined #openocd
rkta has quit [Ping timeout: 240 seconds]
HelloShitty has quit [Ping timeout: 258 seconds]
merethan__ has joined #openocd
merethan has joined #openocd
rkta_ is now known as rkta
slobodan has joined #openocd
bvernoux has joined #openocd
slobodan_ has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
gzlb has quit [Ping timeout: 260 seconds]
gzlb has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
vampirefrog has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ is now known as slobodan
nerozero has quit [Remote host closed the connection]
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
Haohmaru has quit [Ping timeout: 260 seconds]
merethan__ has quit [Ping timeout: 260 seconds]
merethan has quit [Ping timeout: 258 seconds]
<NishanthMenon> just wondering if any one has ideas.. https://github.com/openocd-org/openocd/blob/b388f4805c3ce6e0b7ce7e5995c9305529db8e46/src/target/cortex_m.c#L1747 -> as far as I know this hardcoded value has been there for really long time. any idea about why 50ms?
<PaulFertser> NishanthMenon: hey :) do you know git blame?
<NishanthMenon> PaulFertser: yes ;) at least tracked it down to 3f8f5839641f target: rename cortex_m3.[ch] to cortex_m.[ch] (2011) :) -> so it is older than that..
<PaulFertser> Wow, it really was added in 09883194f86725f4eae7e6db9eabcf6b3d1511de by Dominic himself.
<PaulFertser> In 2007 :)
<NishanthMenon> jeez
<PaulFertser> git blame 02cd1e39cc^ -- cortex_m.c
<NishanthMenon> aah thanks.. did'nt know that :D
<antto> is it like a "this should be a well-chosen constant, but i don't know what right now, so i'll just temporarily put 50... just temporarily!"
gzlb has quit [Ping timeout: 258 seconds]
<NishanthMenon> heh.. kinda curious with sys_reset how folks get past ROM and crystal stabilization delays to get cpu to halt.. :D I was going to play around with this a bit, but wanted to be sure i was'nt going against some "thou shalt not toucheth this val" that i could'nt see clearly..
<NishanthMenon> anyways, thanks folks..
gzlb has joined #openocd
<PaulFertser> NishanthMenon: normal way on cortex_m is to setup a vector catch on reset handler, then trigger reset by any means other than power on reset.
<PaulFertser> A proper cortex_m target doesn't reset debug unit
<PaulFertser> Good target shouldn't mind stopping in ROM...
<NishanthMenon> PaulFertser: apparently if i read https://github.com/openocd-org/openocd/blob/b388f4805c3ce6e0b7ce7e5995c9305529db8e46/doc/openocd.texi#L10627 vectreset is not for m0 ?
<PaulFertser> NishanthMenon: vectreset is mostly irrelevant because only old broken cortex-m targets didn't support sysresetreq.
<PaulFertser> Vectreset is not vector catch mechanism.
<NishanthMenon> aah
<NishanthMenon> i did manage to get things working https://github.com/nmenon/openocd/commit/590609c64834b0bc206b7225d8497246a395676a#diff-10226b4da388fb8e117d390a9c9fe0cbab48c6f750ad68e011fc3e27cdd03a2aR96 -> but real ugly. messing with ocd_process_reset_inner would mean my reset halt would'nt work OR my factory commands would'nt work and I could'nt have both at the same time.. still not happy with the soln.. trying to see if there is a
<NishanthMenon> WAIT_IN_DEBUG that the h/w folks have provided..
<PaulFertser> Oh my
<NishanthMenon> :( yeah, I know.. i weep at my own code :(
<PaulFertser> Why your chip engineers just do not allow stopping in ROM?..
<NishanthMenon> they seem to have documented the option - but does'nt seem to work for me at least. I looked at the TI "CCS" -> from what I see they did'nt seem to have bothered with it either..
<NishanthMenon> I think some security folks might have gone a bit bonkers.. or something I suspect.. dunno how to get it right atm..
<PaulFertser> :/
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Ping timeout: 258 seconds]
crabbedhaloablut has quit []
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
pedro_a has joined #openocd
wingsorc has joined #openocd
bvernoux has quit [Quit: Leaving]
HelloShi1ty has quit [Ping timeout: 264 seconds]