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