NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
van has quit [Quit: WeeChat 4.2.1]
van has joined #openocd
nerozero has joined #openocd
nerozero has quit [Read error: Connection reset by peer]
nerozero has joined #openocd
renrelkha has quit [Quit: bye]
renrelkha has joined #openocd
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
Hawk777 has joined #openocd
Haohmaru has quit [Quit: saionara]
nerozero has quit [Ping timeout: 255 seconds]
wmat_ is now known as wmat
<dormito> I am messing around with an old MPC885, it seems to have it's own debug protocol (on the jtag pins, but not using JTAG). Since openocd supports SWD, would support for that protocol be appropriate in openocd?
Hawk777 has quit [Quit: Leaving.]
<zapb__> dormito, what is the name of this debug protocol?
<zapb__> dormito, in general, OpenOCD supports different debug protocols and is open for new protocols
<borneoa___> dormito: MPC885 has a PowerPC CPU and uses JTAG for debug. The document from NXP say IEEE1149.1 that is JTAG
<zapb__> yep, this is my understanding as well after having a brief look at the datasheet :D
<borneoa___> dormito: there is a preliminary port of OpenOCD for PowerPC from STMicroelectronics in the branch https://github.com/STMicroelectronics/OpenOCD/tree/openocd-automotive-mcu-r1
<borneoa___> dormito: but I have no knowledge on PowerPC, I have no idea if that port is compatible for MPC885 or is a valid starting point for it
<dormito> borneoa___: it's debug protocol isn't jtag based, that's for boundary scan only
<dormito> I'll point it out in moment (after I pull up the datahset
<borneoa___> dormito: the transport is JTAG. Then there is a debug protocol on top of it. That's the same that ARM or RISC-V does, but each use a different debug protocol on top of JTAG
<dormito> borneoa___: look at 53.3 in the RM
<dormito> it uses a similar shift regiser, but there's no TMS
<dormito> and, as far as I can tell, it's more "packet" based than jtag, with a "start bit" and some framing (53.3.2.3.1 is near a decent diagram I think).
zjason``` has joined #openocd
<dormito> and I did check the jtag section previously: they only have IR instructions for: EXTEST, SAMPLE/PRELOAD, BYPASS, HI-Z, CLAMP and BYPASS. The BSDL also doesn't list any more instructions. Since the RM lists out pin signaling compared to a clock, I'm pretty sure it is it's own protocol (they just call it 'Development System Interface')
zjason`` has quit [Ping timeout: 248 seconds]
<jn> dormito: ah, i've been reversing JTAG/COP, albeit for a different chip generation (MPC83xx)
<jn> ah wait, i misread
<jn> ah wait², so it is jtag
<jn> (hmm, sorry for the noise) i looked at the documentation of a proprietary debugger (BDI3000), it mentions BDM and JTAG, hmm
<dormito> where do you see that debuggin is over jtag? I just re-read the JTAG block, and it basically says boundry scan, and drive control are all the tap can do.
<borneoa___> dormito: Reading the ref man looks that JTAG is only for boundary scan. The debug is BDM.
<dormito> ah, BDM is the name?
<dormito> is support already in openocd?
<borneoa___> dormito: I think you could add this new transport in OpenOCD . Maybe initially you could use a bit banging and then look for some faster USB adapter.
<dormito> yeah bitbanging would be a good idea. I have some TinyFPGA-BXs, so I was thinking about using them as USB adaptors.
<dormito> Hmmm. I bet the signaling is close enough the some (much?) of the JTAG/bitbang framework could be reused
<borneoa___> dormito: question: does it make sense to work on such old devices? Are them still appealing?
<dormito> borneoa___: for me? yeah. I'm trying to work with a sparc T2 that has an mpc885 as a BMC. If your asking "appealing as a social thing" I honestly couldn't tell you
juri_ has quit [Ping timeout: 260 seconds]
<jn> i'm definitely interested in PowerPC support in OpenOCD (as i mentioned, for a different chip family)
<borneoa___> jn: if your PPC debug is JTAG based, check the repo from STMicroelectronics. It could be close to what you need
<jn> borneoa___: got a link?
<jn> thanks
<jn> (oof, 191 commits, downstream repos are a pain sometimes)
juri_ has joined #openocd
Hawk777 has joined #openocd
zjason``` is now known as zjason
Wonka has quit [Ping timeout: 252 seconds]
Wonka has joined #openocd