NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
noarb- has quit [Quit: ZNC 1.8.2 - https://znc.in]
noarb has joined #openocd
noarb has quit [Remote host closed the connection]
noarb has joined #openocd
vampirefrog has quit [Ping timeout: 240 seconds]
wingsorc has joined #openocd
tsal has quit [Ping timeout: 255 seconds]
tsal has joined #openocd
vampirefrog has joined #openocd
nerozero has joined #openocd
cambrian_invader has quit [Read error: Connection reset by peer]
diddly has quit [*.net *.split]
zjason has quit [*.net *.split]
zear has quit [*.net *.split]
jybz has quit [*.net *.split]
diddly has joined #openocd
cambrian_invader has joined #openocd
zear has joined #openocd
zjason has joined #openocd
jybz has joined #openocd
jybz has quit [Read error: Connection reset by peer]
jybz has joined #openocd
Hawk777 has quit [Quit: Leaving.]
crabbedhaloablut has joined #openocd
shibboleth has joined #openocd
shibboleth has quit [Quit: shibboleth]
MGF_Fabio has joined #openocd
gzlb has joined #openocd
gzlb has quit [Client Quit]
gzlb has joined #openocd
gzlb has quit [Ping timeout: 255 seconds]
gzlb has joined #openocd
nerozero has quit [Ping timeout: 260 seconds]
tim42 has joined #openocd
tim42 has quit [Client Quit]
tim42 has joined #openocd
<tim42> Hi. I was reading about OpenOCD and through the docs for the first time this week. It seems like every USB adapter speaks its own bespoke protocol? Or at least there's a ton a different families. Is there a preferred or standard one within OpenOCD that new adapters should implement instead of making up a new one?
<PaulFertser> tim42: hi
<PaulFertser> tim42: probably CMSIS-DAP
<tim42> PaulFertser: thanks. I'll read up on that one.
<PaulFertser> tim42: are you building a new adapter? For what purposes and based on what hardware?
<tim42> Well, not really, but maybe. I was poking at a cloud based IoT device I have and trying to get some local control of it. I saw an article where some security researchers had dumped the firmware using its JTAG pins, and thought I might give that a try, and started reading about different adapters. Then I started wondering if I could make one out of
<tim42> what I had on hand already, and found a couple of projects. The last one i looked at was "pico-dirtyJtag", and saw it needed a patched version of OpenOCD.
<tim42> I clicked through to the gerrit PR and was reading some of the discussion, and it sounded like even the author didn't fully understand the protocol it uses to talk to OpenOCD, and between that and reading the OpenOCD manual and seeing all the different devices, I started asking myself "why is it like this?"
<PaulFertser> I see
<PaulFertser> One of the most popular is MPSSE protocol by FTDI, they just implemented it in hardware in their ICs the way they wanted. Another is J-Link which they implemented in software for their products. CMSIS-DAP is an attempt by Arm to make another standard.
<tim42> Are some of those better than others? I got the impression some adapters talk at a higher level and offload more to the adapter, and some I guess put the "adapter" in adapter and OpenOCD is toggling pins over USB, which I've read adds a lot of latency.
uartist has quit [Ping timeout: 260 seconds]
uartist has joined #openocd
<PaulFertser> tim42: all modern debug protocols designed to be used over JTAG or SWD transports are designed in a way to provide very good bandwidth despite the link latency. It's not just bitbanging over USB, no, the queue can get very long and submitted in a single message.
<PaulFertser> So all popular adapters provide means to do that.
tim42 has quit [Quit: Client closed]
van has quit [Quit: WeeChat 3.8]
van has joined #openocd
Hawk777 has joined #openocd
zjason` has joined #openocd
zjason has quit [Ping timeout: 256 seconds]
Hammdist has joined #openocd
<Hammdist> hi all. I'm trying to flash a colorlight v8 using openocd from linux. I have an ft232h breakout board. so far I have connected GND to GND but I'm not sure if I should connect the breakout board's 3.3v pin to the colorlight's 3.3v pin. I will want to power up the board and program it while it's powered. is it correct to only connect the grounds?
<PaulFertser> Hammdist: hi
<PaulFertser> Hammdist: is it just ft232h breakout, no extra components?
<PaulFertser> Hammdist: do you have schematics for it? How is Vccio pin connected?
<Hammdist> I will look for the schematic. here is the product page meanwhile: https://www.adafruit.com/product/2264
<PaulFertser> Hammdist: don't connect 3.3 V with that
<Hammdist> so it should work if I just connect the grounds and power the board though it's power plugs?
<PaulFertser> Hammdist: I would expect it to.
<PaulFertser> Hammdist: sometimes for proper communication series resistors are needed, sometimes not, you'll see.
<Hammdist> my next question is how do I know the default pinout for ft232h from openocd? on the breakout board I have ports D[7:0] and C[9:0] ... how to the jtag signals map to that?
<PaulFertser> Hammdist: you need to take a look at MPSSE signal table
<PaulFertser> Hammdist: actually, it's also documented in interface/ftdi/ft232h-module-swd.cfg
<PaulFertser> (JTAG signals all have hardware fixed location, there's no non-default layout)
<Hammdist> ah thanks. I was finding pin assignment for all other chips except ft232h
<PaulFertser> Hammdist: you do not need TRST or SRST for SVF playback.
vampirefrog has quit [Quit: Leaving]
vampirefrog has joined #openocd
vampirefrog has quit [Quit: Leaving]
vampirefrog has joined #openocd
noarb has quit [Ping timeout: 276 seconds]
noarb has joined #openocd
noarb has quit [Quit: ZNC 1.8.2 - https://znc.in]
noarb has joined #openocd
Guest74 has joined #openocd
Guest74 has quit [Client Quit]
crabbedhaloablut has quit []
Hawk777 has quit [Quit: Leaving.]