NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
shoragan has quit [Read error: Connection reset by peer]
a3f has quit [Read error: Connection reset by peer]
a3f has joined #openocd
shoragan has joined #openocd
shoragan has quit [Quit: quit]
a3f has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
a3f has joined #openocd
shoragan has joined #openocd
flatmush has quit [Ping timeout: 260 seconds]
flatmush has joined #openocd
Hawk777 has joined #openocd
tsal_ has joined #openocd
tsal has quit [Ping timeout: 252 seconds]
Hawk777 has quit [Quit: Leaving.]
dacav has quit [Read error: Connection reset by peer]
dacav has joined #openocd
alkane has quit [Ping timeout: 255 seconds]
alkane has joined #openocd
nerozero has joined #openocd
bryanb has quit [Server closed connection]
bryanb has joined #openocd
Haohmaru has joined #openocd
<zapb_> I have a device with two cores, access to the second core is disabled after reset. I need to write to a specific register to enable / power-up the second core. What is the best (reset) event to automatically write to this register? Does anybody know a similar and supported device?
<Haohmaru> is this supposed to be done thru the debugger or is this entirely a firmware question/
<zapb_> No, it's supposed to be done by the debugger
<Haohmaru> shouldn't it be done somewhere around after openocd "connects and does the typical things" ?
<Haohmaru> i mean at the same point where you might "begin to flash a new firmware" or "begin debugging"
<zapb_> Yes, somewhere in the 'reset event' system, but OpenOCD goes crazy after the reset because it cannot examine the second core because it's not accessible anymore
<Haohmaru> oh
<Haohmaru> so it has to be somewhere before this "examine" thing
<zapb_> Yep, already deferred the examine process which works the first time but not work after reset
wingsorc has quit [Ping timeout: 260 seconds]
<zapb_> borneoa___, do you know a target with a similar behaviour that we already support / have a config file for?
<karlp> if I had ot guess, I'd look at one of the renesas rcar stuff, not sure it's all merged yet?
<karlp> perhaps the event tap-enable?
slobodan_ has joined #openocd
slobodan_ has quit [Client Quit]
slobodan has joined #openocd
slobodan has quit [Changing host]
slobodan has joined #openocd
<borneoa___> zapb_: yes
<borneoa___> zapb_: stm32mp15x, 21x, 23x and 25x. While booting on cortex-A the cortex-M is not accessible
<borneoa___> zapb_: in the script upstream I have added several events to handle it. There is a clock to be enabled and a bit to set in DBGMCU . The fix is done at reset and examine events to care about OpenOCD start and at reset
<borneoa___> zapb_: on which device are you working, if you can share the info...
<zapb_> borneoa___, thanks! Cannot say at the moment but will bring everything upstream asap.
<zapb_> borneoa___, noticed that we have a $halt variable in the the reset events, maybe that's the trick. will check later
<zapb_> borneoa___, thanks a lot!
<zapb_> borneoa___, maybe one additional question: I would assume that once examined OpenOCD tries to poll your CM core. and at reset the core is not accessible. how do you prevent that?
<PaulFertser> borneoa___: hey! BTW, saw your commit about Tcl/Tk events but I'm a bit confused. I understand that comment in the sense that OpenOCD can take inspiration from Tk and support some kind of templating for the event handler body to make it easier to DRY and write more generic event handlers.
Haohmaru has quit [Quit: saionara]
shwouchk has quit [Remote host closed the connection]
shwouchk has joined #openocd
lh has quit [Server closed connection]
lh has joined #openocd
nerozero has quit [Ping timeout: 245 seconds]
vampirefrog has quit [Server closed connection]
vampirefrog has joined #openocd
wingsorc has joined #openocd
vampirefrog has quit [Ping timeout: 248 seconds]
vampirefrog has joined #openocd