NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
loki_val has joined #openocd
crabbedhaloablut has quit [Ping timeout: 276 seconds]
tsal has quit [Ping timeout: 264 seconds]
tsal has joined #openocd
The_Jag_ has joined #openocd
The_Jag has quit [Ping timeout: 260 seconds]
nerozero has joined #openocd
nathanhi has quit [*.net *.split]
key2 has quit [*.net *.split]
jancoow has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
Fleck has quit [*.net *.split]
Getty has quit [*.net *.split]
Getty has joined #openocd
tlwoerner has joined #openocd
key2 has joined #openocd
jancoow has joined #openocd
nathanhi has joined #openocd
Fleck has joined #openocd
Ulli[m] has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
f00b4r has quit [*.net *.split]
f00b4r has joined #openocd
gruetzkopf has joined #openocd
Ulli[m] has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Bertl is now known as Bertl_zZ
Haohmaru has joined #openocd
flatmush has joined #openocd
nerozero has quit [Ping timeout: 260 seconds]
nerozero has joined #openocd
Bertl_zZ is now known as Bertl
Hawk777 has joined #openocd
riscit has joined #openocd
<riscit> there is some fork of openocd for risc-v around, i guess that means the latest release of openocd in the average linux distro repo does not support risc-v ?
<PaulFertser> riscit: it does but probably in a limited way.
<riscit> PaulFertser: more limited than the fork?
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
<PaulFertser> riscit: yes, the riscv fork should have better support for riscv than the code that's currently upstream.
Haohmaru has quit []
<riscit> What target file would I use best in this case. I have a Segger J-Link and already figured out the pins and device-ID with jtagulator. But i'm not familiar with openocd. Does it have some kind of generic risc-v target? I did not have any success with the software from Segger.
<PaulFertser> riscit: try gd32vf103.cfg for starters
c4017_ has quit [Ping timeout: 245 seconds]
jtag-troubles has joined #openocd
<jtag-troubles> Hi all, I am reversing a device and trying to get JTAG working, I have determined the pinout and can go so far as to communicate with and read out the DAP. However, when I attempt to halt the processor I get an error saying: timeout waiting for DSCR bit change timeout waiting for DSCR bit change
<jtag-troubles> Config File: https://pastebin.com/V58dn97S
<jtag-troubles> DAP Info: https://pastebin.com/QmkyhC5f
<jtag-troubles> Logfile: https://pastebin.com/kDLn53xD
nerozero has quit [Ping timeout: 268 seconds]
<jtag-troubles> I'm wondering if JTAG has been disabled on this CPU - it's a qualcomm MDM series SoC
<jtag-troubles> If anyone has any insights at all, I would really appreciate it! If not, no worries, I can't thank you folks enough for working on this tool!
<bencoh> jtag-troubles: does dap info work for the main processor AP?
<bencoh> (I'd expect it to be AP 1 on that kind of SoC, but who knows)
<bencoh> ah, nevermind :)
xantoz has quit [Ping timeout: 260 seconds]
xantoz has joined #openocd
<jtag-troubles> I believe so! It seems to be working for the ARM core
<jtag-troubles> But aside from reading the DAP via dap info, I can't do much else
<jtag-troubles> JLink reports the following if it's helpful: https://pastebin.com/1USGyZcZ
<bencoh> is it supposed to be a cortex-a5?
<jtag-troubles> It also mentions A5 in the ROM table as well
<bencoh> yeah
<bencoh> what about poking around the memory bus? you can define an ahb target in openocd and start reading from registers with mdw
<bencoh> (it would be AP 0)
Bertl is now known as Bertl_oO
<jtag-troubles> I can certainly try that, I'm wondering if debugging has been disabled in this scenario.
diddly has quit [Quit: leaving]
<bencoh> could be
<bencoh> or maybe you need to input a jtag password in some register first
<bencoh> into*
<jtag-troubles> Definitely, is it normal to always be able to access the DAP, but not necessarily the actual debugging features?
diddly has joined #openocd
<bencoh> ah, I forgot something
<bencoh> idle
<bencoh> your A5 core might be idling
<jtag-troubles> Oh interesting, is there a specific way to "wake it up" or is that going to be platform dependent?
riscit has quit [Ping timeout: 256 seconds]
<bencoh> on linx you usually disable the cpuidle states
<bencoh> (in /sys/devices/system/cpu*/cpuidle/state* or something along those lines)
akaWolf has quit [Ping timeout: 246 seconds]
<jtag-troubles> Even with an AHB target defined and selected, I still cannot read memory
akaWolf has joined #openocd
akaWolf has quit [Ping timeout: 268 seconds]