NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
diddly has joined #openocd
<Guest42> Hi all, I'm currently using the imx-native bitbang interface to flash a target via JTAG. I can find the JTAG TAP of the target when I reduce the adapter speed to 100KHz or less. This speed is too slow to properly perform flash operations successfully, but when I attempt to increase the adapter speed I get a "Warn : Invalid ACK 0x6 in JTAG-DP
<Guest42> transaction" or a "Error: IR capture error at bit 6, saw 0x81 not 0x...3" error.
<Guest42> I have the IMX6UL set to operate at 528MHz as specified in the imx-native.cfg in which the speed coefficients are already calibrated to the IMX6UL at 528MHz. Will this require altering the speed coefficients in some way or would anyone know how to resolve this kind of issue?
Willy-- has joined #openocd
<Guest42> Would this potentially indicate a signal integrity issue or mean that the IMX6 is too slow?
<Guest42> Any insight would be very much appreciated.
dliviu has quit [Ping timeout: 260 seconds]
dliviu has joined #openocd
nerozero has joined #openocd
PsySc0rpi0n has quit [Ping timeout: 246 seconds]
<PaulFertser> guest42: hi
<PaulFertser> guest42: do you have any line termination in your connections?
<PaulFertser> guest42: do you have an oscilloscope to check how the signals look and how fast they are?
Haohmaru has joined #openocd
Hawk777 has quit [Quit: Leaving.]
Guest42 has quit [Ping timeout: 260 seconds]
bobsy has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
bobsy has joined #openocd
wingsorc has quit [Ping timeout: 256 seconds]
Haohmaru has quit [Remote host closed the connection]
Haohmaru has joined #openocd
Willy-- has quit [Quit: Konversation terminated!]
dinkelhacker has joined #openocd
In0perable has quit [Excess Flood]
dinkelhacker has quit [Remote host closed the connection]
Inoperable has joined #openocd
nerozero has quit [Ping timeout: 246 seconds]
nvmd has joined #openocd
Haohmaru has quit []
guest has joined #openocd
<guest> PaulFertser I do not have line terminations. That is something I will go ahead and add. I have a logic analyzer that I have been using to investigate the signals and they look clean to me. I'll send a screenshot of how they look. Also, for what it is worth, I was able to use a RPi4's GPIO to the target and successfully was able to connect to the
<guest> target at higher adapter speeds and perform the flash operations. That setup was also with no line terminations.
<guest> Here is a screenshot of the capture of the IMX6 to the target at a lower speed in which it was able to connect to the target (adapter speed 100khz):
<guest> And here is a screenshot of the capture of the IMX6 to the target at a higher speed in which it does not work(500khz):
<karlp> a logic analyser will always "look good" because it pretends everything's square, but it's not a good representation of what the other device is actually seeing.
<karlp> those captures are zoomed way too far out to see anythign meaningufl anwyay.
<guest> Fair point, I'll take a look at an analog capture and see if anything looks unusual.
<PaulFertser> guest: different SoCs have different drive strength sometimes.
<PaulFertser> guest: usually JTAG adapters have like 47 -- 100 Ohm in series on each data line.
<PaulFertser> (and maximum drive strength)
<guest> After doing an analog capture, it seems pretty clear that it is a signal integrity issue.
<guest> Here is what the signals look like at 500khz speed: https://freeimage.host/i/HCs3M4n
<guest> And at 100khz: https://freeimage.host/i/HCsFjKF
<guest> I'll go ahead and add termination resistors and see if that resolves things. Thanks!
nvmd has quit [Ping timeout: 246 seconds]
guest has quit [Quit: Client closed]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
nvmd has joined #openocd
<karlp> well, it gets the same clock pulses at least?
<karlp> what on earth are you using that's giving uyou +- 10V ranges for what's a, 3.3 at best range signal?
<karlp> that's horrible :|
maribu[m] has joined #openocd
<maribu[m]> Hi. I have been fighting hard to flash a CC2650 with an XDS110 with OpenOCD. It worked just find the first time, but it failed for every subsequent try. (The config it is trivial as it gets: It sources interface/xds110.cfg, then sets the adapter speed and selects JTAG, then sources target/ti_cc26x0.cfg.)
<maribu[m]> I could reproduce the behavior with two different boards. I updated the XDS110 firmware. I am almost sure that connecting under reset would fix the issue. However, any sort of reset_config that is not none results in bad things to happen. I believe that a correct reset sequence does require some extra magic due to the ICEPick, but I have now idea what exactly is needed. Any suggestion how I can actually connect unter reset?
<maribu[m]> (I am using a fairly recent (last commit from the 15th of November 2022) version of OpenOCD build from source, rather than an official release or release candidate.)
wingsorc has joined #openocd