NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
firelegend has quit [Ping timeout: 250 seconds]
nerozero has joined #openocd
Hawk777 has joined #openocd
Hawk777 has quit [Quit: Leaving.]
kraiskil has joined #openocd
kraiskil has quit [Ping timeout: 256 seconds]
crabbedhaloablut has quit []
crabbedhaloablut has joined #openocd
zear_ has joined #openocd
zear has quit [Ping timeout: 268 seconds]
zear_ is now known as zear
MGF_Fabio has joined #openocd
Haohmaru has joined #openocd
nathanhi has quit [Quit: bye]
nathanhi- has joined #openocd
nathanhi- is now known as nathanhi
nathanhi has quit [Quit: bye]
nathanhi- has joined #openocd
nathanhi- is now known as nathanhi
slobodan has joined #openocd
xantoz has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
MGF_Fabio has quit [Ping timeout: 256 seconds]
MGF_Fabio has joined #openocd
zjason` is now known as zjason
Guest72 has joined #openocd
<Guest72> I am having issues connecting to a processor when it is in low power mode. I have tried to connect under reset and have had no success. I have been able to do it by setting C_DEBUGEN in DCB_DHCSR but I can't do it until the target is examined but the target can't be examined until I do this. Am I missing something here as far as doing this another
<Guest72> way? I am thinking of adding an examine-first event for anything that needs to happen as soon as the target is examined.
<PaulFertser> Guest72: hi
<PaulFertser> Guest72: what chip exactly is that?
<Guest72> It's an M4 on the MAX32655
<PaulFertser> Guest72: hm, and does the vendor datasheet give any hints? If it's one of those broken implementations when SWD doesn't work with RESET asserted then there must be some other documented way to talk to it.
<PaulFertser> Also there often is some /additional/ non standard configuration bit to allow debugging in low power moodes.
<Guest72> Not that I have seen. The only thing I have seen from searching is to add some delay before going to low power mode to allow for the debugger to break in. It could be that I am failing to figure out the right sequence or that SWD indeed doesn't work with RESET asserted.
<Guest72> What I found was in a support issue that I ran across.
<PaulFertser> Guest72: it should just work with -c "reset_config srst_only connect_assert_srst"
<PaulFertser> That's the only setting needed with a proper target.
<Guest72> I will double check but I believe I did try that. I have tried so many things though that I want to go back and make sure. Failing that, it doesn't sound like you are very keen on my idea to add an examine-first event...is that accurate?
<PaulFertser> Guest72: I do not see how you can do anything at all if SWD doesn't work in the first place at all anyhow.
<Guest72> If I did what I was thinking I would not be doing it while RESET is asserted so SWD does work in that case. It would just allow me to write to a register as soon as target is examined rather than reading the cpuid which is failing.
<Guest72> Then I would read cpuid and continue right after I enable the debug
<PaulFertser> Guest72: if it allows that then yes, an event handler might do the job.
Hawk777 has joined #openocd
<PaulFertser> I thought you had no SWD access at all in with RESET asserted.
<Guest72> Right, but RESET is not asserted when in the cortex_m_examine function.
<PaulFertser> Guest72: it is if you use connect_assert_srst flag.
slobodan has quit [Read error: Connection reset by peer]
<Guest72> Ohh. Sorry, gotcha. In this case I would not be using that. I will try the standard way first which is what you stated as far as using -c "reset_config srst_only connect_assert_srst" to verify I had already tried that and it failed. If that doesn't work then I would only use -c "reset_config srst_only"
slobodan has joined #openocd
<Guest72> ...and try adding a new examine-first event
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
nerozero has quit [Ping timeout: 264 seconds]
firelegend has joined #openocd
MGF_Fabio has quit [Ping timeout: 252 seconds]
Haohmaru has quit [Quit: saionara]
zear_ has joined #openocd
noarb has joined #openocd
lh_ has joined #openocd
nathanhi| has joined #openocd
joconor_ has joined #openocd
tchebb_ has joined #openocd
nathanhi has quit [*.net *.split]
zear has quit [*.net *.split]
noarb- has quit [*.net *.split]
joconor has quit [*.net *.split]
tchebb has quit [*.net *.split]
lh has quit [*.net *.split]
zear_ is now known as zear
Guest72 has quit [Ping timeout: 250 seconds]
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
borneoa___ has quit [Quit: Connection closed for inactivity]
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
bvernoux has joined #openocd
Deneb has joined #openocd
Deneb has quit [Quit: Leaving]
slobodan has quit [Remote host closed the connection]
slobodan has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
bvernoux has quit [Quit: Leaving]
slobodan has quit [Ping timeout: 268 seconds]