NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
Hawk777 has joined #openocd
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 [Read error: Connection reset by peer]
alkane has joined #openocd
Hawk777 has quit [Quit: Leaving.]
shwouchk has quit [Ping timeout: 276 seconds]
shwouchk has joined #openocd
tsal_ has joined #openocd
tsal has quit [Ping timeout: 272 seconds]
_whitelogger has joined #openocd
slobodan has joined #openocd
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 [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 [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 [Read error: Connection reset by peer]
slobodan has joined #openocd
slobodan has quit [Read error: Connection reset by peer]
Hawk777 has joined #openocd
nerozero has joined #openocd
slobodan has joined #openocd
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 [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 [Read error: Connection reset by peer]
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
HumanG331 has joined #openocd
slobodan_ has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
Deneb^ has joined #openocd
slobodan_ has joined #openocd
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 [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ has quit [Changing host]
slobodan_ has joined #openocd
slobodan_ has quit [Remote host closed the connection]
slobodan has joined #openocd
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
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #openocd
jjulian has joined #openocd
<jjulian> PaulFertser: Just wanted to say hi and thanks again. We managed to get the JTAG going. Apart from the r32/38 JTAG switch, there is a so called JTAG hub, which is encoding JTAG transfers within DR scans. Essentially every transferred TDO/TDI bit is expanded to a nibble, in which the other bits are used to encode TMS plus an enable bit. After
<jjulian> re-implementing this we can now talk to the vexriscv core :)
<jjulian> Our implementation is quite ugly, though. We have hacked it into the ftdi interface driver. I'm not sure if there is any more appropriate place for this. We couldn't easily spot one, where we had enough control on the data flow.
<PaulFertser> jjulian: hi! Great news, happy to hear you made it working!
<PaulFertser> jjulian: oh, how did you manage to find out that weird jtag hub encoding?
<PaulFertser> Just by observing the JTAG LA capture and comparing it to what riscv target code was sending?
<PaulFertser> "just" :D
<PaulFertser> I understand how implementing this in a cross-adapter way seems to be impossible given the current architecture.
<PaulFertser> Even though it's possible to support it with all major adapters: ftdi, jlink, cmsis-dap.
<jjulian> It's actually part of the openocd cableserver interface, which is included in their patch. The implementation is just a bit hard to read. :)
<PaulFertser> Haha, yes, I noticed, their patch is messy.
<PaulFertser> jjulian: probably to implement this cleaner one is supposed to run two OpenOCD instances, the first handling riscv target code and communicating with the second via TCP socket (e.g. using remote_bitbang protocol or even cmsis-dap over TCP or something like that) and the second instance getting the commands from the socket and encoding them in those DR scans.
<PaulFertser> Here's an example of cmsis-dap over TCP https://review.openocd.org/c/openocd/+/8973
<PaulFertser> But for first try it's probably much easier to implement remote_bitbang server inside openocd.
<jjulian> PaulFertser: Sounds interesting. I'll take a look
<PaulFertser> jjulian: I'm not saying it's the best architecture but I can't think about anything more elegant and straightforward to implement yet.
<PaulFertser> Because you kind of want to have a special adapter for that hub, but also need to call into the real adapter eventually. And you need to register all the commands of the real adapter etc.
<PaulFertser> Hm, alterantively the trickery might go into target code itself. And there already is some, /* On BSCAN TAP: Select IR=USER4, issue tunneled IR scan via BSCAN TAP's DR */
<PaulFertser> jjulian: this tunneled via BSCAN sounds kind of like what you're doing there.
Haohmaru has quit [Quit: saionara]
slobodan has quit [Read error: Connection reset by peer]
rdg has left #openocd [WeeChat 4.4.2]
snaz_ has quit [Ping timeout: 260 seconds]
snaz has joined #openocd
Deneb^ has quit [Quit: Leaving]
slobodan has joined #openocd
PaulFertser has quit [Ping timeout: 252 seconds]
nerozero has quit [Ping timeout: 248 seconds]
<gamiee> kinda surprising that CH347 can be updated
slobodan has quit [Remote host closed the connection]
jjulian has quit [Quit: Client closed]
<karlp> what do you mean?
<karlp> it's litereally just a usb-hs mcu that often comes with pre-baked firwmare.
<karlp> calling the dongle ch347 is actually a bit unhelpful, as nominally the api could be used by ~anything
<karlp> huh, nvm, they do actaully brand it as "firmware included" even though it's "obviously" just a mcu really.
zjason` has joined #openocd
zjason has quit [Ping timeout: 240 seconds]
slobodan has joined #openocd
diddly has quit [Quit: leaving]
slobodan_ has joined #openocd
slobodan has quit [Ping timeout: 240 seconds]
slobodan_ has quit [Read error: Connection reset by peer]
slobodan_ has joined #openocd
slobodan_ has quit [Read error: Connection reset by peer]
diddly has joined #openocd
tsal_ has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
tsal has joined #openocd
jn_ has quit []
jn has joined #openocd
jn has joined #openocd
jn has quit [Changing host]