NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
Hawk777 has joined #openocd
tsal_ has joined #openocd
tsal has quit [Ping timeout: 252 seconds]
nerozero has joined #openocd
NishanthMenon has quit [*.net *.split]
NishanthMenon has joined #openocd
renrelkha_ has quit [*.net *.split]
nashpa has quit [*.net *.split]
youthpastor has quit [*.net *.split]
dinkelhacker has quit [*.net *.split]
xantoz has quit [*.net *.split]
braunr has quit [*.net *.split]
Bertl has quit [*.net *.split]
zear has quit [*.net *.split]
van has quit [*.net *.split]
renrelkha_ has joined #openocd
nashpa has joined #openocd
youthpastor has joined #openocd
dinkelhacker has joined #openocd
xantoz has joined #openocd
braunr has joined #openocd
zear has joined #openocd
Bertl has joined #openocd
van has joined #openocd
tlwoerner has quit [Remote host closed the connection]
tlwoerner has joined #openocd
MGF_Fabio has joined #openocd
bvernoux has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Haohmaru has joined #openocd
Guest23 has joined #openocd
<Guest23> hi there!
<Guest23> I've a question regarding openocd ftdi configuration options
<Guest23> I have a swd target and tries to hook up an ft2232 based board to it
<Guest23> looking at the signal with an oscilloscope it seems that when the target answers to the IDCODE request
<Guest23> it has some problems raising the voltage to 3v3 (~2V5)
<Guest23> so I assumed that my board is also trying to drive the line at this moment
<Haohmaru> do you have pull up resistors on the SWD signals?
<Guest23> I do yes
<Guest23> I tried 470 and 220 as recommended by arm
<Guest23> ah, no I misunderstood your question
<Haohmaru> because, iirc, in the SWD transactions, when the direction changes (on SWDIO signal particularly) you have to have a pull-up resistor
<Guest23> I didn't had a pull-up resistor
<Haohmaru> there's an intentional time gap while the SWDIO direction changes, where neither the debugger nor the target would drive that signal, so it'll float
<Haohmaru> thus they require a pull-up resistor
<Guest23> from what I've read it should be one clock tick
<Haohmaru> if you don't have it - maybe that's what you saw on the oscilloscope
<Haohmaru> but this is just a speculation
<Guest23> maybe, but I guess it would last just for the direction change
<Guest23> this occurs for every time the target wants to drive the line to 3V3
<Haohmaru> not being able to get to 3.3V on that signal could be caused by something else too
<Guest23> yes that's what I was wondering
<Haohmaru> like, a (semi)short with another thing
<Guest23> I doubt the semi short as it occurs on each samples
<Haohmaru> you could try powering off the thing and measure resistance from SWDIO to GND and to 3.3V and to neighbour pins or other suspicious places
<Guest23> I was thinking of ftdi configuration, as I have troubles understanding the SWD_EN and SWDIO_OE options
<Guest23> ok I'll try that
<Guest23> thx
<Haohmaru> no clue but based on the name SWDIO_OE probably means OutputEnable
MGF_Fabio has quit [Ping timeout: 252 seconds]
<Guest23> that's what I thought yes, so I've set it to 0 so that there wouldn't be any conflicts on the line
<Haohmaru> this is the signal that changes direction, so when you want to output you'd Enable the Output of it, otherwise disable it (the output driver would go to hi-Z) and then you can use the signal as input
<Haohmaru> well, no idea about this in the context of the ftdi
<Haohmaru> wait for some of the others to wake up
<Guest23> same here and the documentation isn't very clear from me haha
<Guest23> sure, thx!
<Haohmaru> i've only used daplink-based debuggers
<Guest23> also what is strange is that I tried using the jtagulator to verify if it works and it can find the IDR
<Haohmaru> is that another debugger?
<Guest23> no it's a device to bruteforce swd/jtag pins
<Haohmaru> so it works with that one
<Haohmaru> to some degree at least
<Haohmaru> did you also check that it's not something silly like the whole 3.3V line (or at least the VDD of the target) happen to have gone down to 2.5V?
<Haohmaru> because then seeing 2.5V when it drives SWDIO would be unsurprising
Guest23 has quit [Quit: Client closed]
MGF_Fabio has joined #openocd
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
MGF_Fabio has quit [Read error: Connection reset by peer]
MGF_Fabio has joined #openocd
Hawk777 has joined #openocd
Haohmaru has quit [Quit: saionara]
MGF_Fabio has quit [Ping timeout: 265 seconds]
nerozero has quit [Ping timeout: 260 seconds]
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
bvernoux has quit [Quit: Leaving]