NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal has quit [Ping timeout: 245 seconds]
tsal has joined #openocd
alkane has quit [Ping timeout: 260 seconds]
alkane has joined #openocd
noarb has quit [Quit: ZNC 1.8.2 - https://znc.in]
noarb has joined #openocd
nerozero has joined #openocd
<Hammdist> through FT232H using openocd, is there a maximum size of JTAG DR shift that can be done in a burst without stopping the clock, and if so what is the approximate number of bits for this?
<Hammdist> maybe I should just use the additional signals on JTAGG module to do it proper
bvernoux has joined #openocd
Haohmaru has joined #openocd
JakeSays_ has joined #openocd
JakeSays has quit [Ping timeout: 276 seconds]
Hawk777 has quit [Quit: Leaving.]
<PaulFertser> Hammdist: but the clock comes from FT232H so why would you care even if it's stopped for a little bit?
bvernoux has quit [Ping timeout: 265 seconds]
<Hammdist> in some setups the clock would be used to sample a stream of bits from a different clock domain. interruptions => bits lost => bad
<PaulFertser> Hm, ok. Not sure, guess you can easily just try doing e.g. drscan with 4096 bits and see it on oscilloscope to get first impression.
<PaulFertser> The buffer in RAM has 16384 bytes but how many are sent at a time and whether ftdi inserts any real pause I do not know.
sugarbee1 has quit [Ping timeout: 272 seconds]
sugarbeet has joined #openocd
JakeSays has joined #openocd
JakeSays_ has quit [Ping timeout: 276 seconds]
<Hammdist> drscan gives no output. I loaded an svf file, is it possible that it has somehow disabled echoing of values to the terminal? if so, how to re-enable this?
<Hammdist> Info : JTAG tap: auto0.tap tap/device found: 0x41112043 (mfg: 0x021 (Lattice Semi.), part: 0x1112, ver: 0x4)
<Hammdist> Error: IR capture error at bit 3, saw 0x05 not 0x...3 <-- is this normal?
<Hammdist> PaulFertser: ^
<jancoow> mhm, any idea of the NVM rows are also wiped by chip erase on the atsaml?
<jancoow> PaulFertser also, seems that when locking the security bit, our magic cold plug thingy doesn't work and unable to chip erase
<Haohmaru> aww
<Haohmaru> maybe you need that openocd "10" with the special patch?
<Haohmaru> there is typically some calibration values in some areas of the NVM that should not be erased by chip erase, (at least on the other families it's like that)
<Haohmaru> hm, or maybe it wasn't
<Hammdist> so I found by accident that if I connect to openocd with telnet (rather than stuffing commands in cfg file) I actually get output from drscan
<Hammdist> but now the output from drscan is all zeroes when I expect it not to be
Foxyloxy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<PaulFertser> Hammdist: no, svf shouldn't affect any output of the other commands.
Foxyloxy has joined #openocd
<PaulFertser> Hammdist: ir capture means it's reading the contents of IR and checking it against a mask, by default it's supposed to be exactly matching the JTAG standard.
<PaulFertser> jancoow: yeah, right, that's expected as we discussed.
<jancoow> PaulFertser ye
<jancoow> exactly
<jancoow> so probably becuase of the atmel ice
<PaulFertser> jancoow: not, just because it's really locked and you do not engage code to do real cold-plug.
<PaulFertser> jancoow: of course you do not need "openocd 10" but yes, there's a patch which was not properly finished which you can use for inspiration to make OpenOCD support cold-plug proper.
<Haohmaru> "0.10.0" or something
<Hammdist> now I've hardcoded the verilog on the FPGA to always produce 1s, like so: JTAGG prim(.JTDO1(1'b1)). yet when I do: svf ...; irscan auto0.tap 0x32; drscan auto0.tap 32 0; I still just get 0s out
<PaulFertser> Hammdist: yeah, I despise this idea of yours ;)
<PaulFertser> Hammdist: you have an LA handy? Probably it's indeed 0 there and there's a problem with some part of Verilog code, probably it's not really attached to JTAG pins or something.
<Hammdist> you sure that the device won't be reset between svf and irscan?
<Hammdist> when entered on a telnet session
<Hammdist> maybe there's an enable for the user JTAG somewhere that I have to enable. like in the lpf or ecppack or something could be
<PaulFertser> Hammdist: well, svf just plays back commands, what's inside your file you can see there. Nothing more.
<Hammdist> as usual it's all my fault then :)
<PaulFertser> Hammdist: having some tool to check what's there happening on the wire is always nice in cases like that for sanity-checking and being able to concentrate on digging in the right direction, hence why I asked about LA.
<Hammdist> have only digital multimeter. also no test points on my board so not easy to even connect the digital multimeter to anything
<Hammdist> actual command I am running in telnet: svf ./toplevel_test1.svf -tap auto0.tap ; irscan auto0.tap 50 ; drscan auto0.tap 32 0 ... I believe 50 is 0x32 which is correct for ER1 register on ECP5
<Hammdist> hm. haven't found any enable/disable bits for JTAG in LPF format or ecppack
<Hammdist> autodetected jtag settings did not match ulx3s config files. changing to match ulx3s settings
<Hammdist> ffffffff <-- nice
<PaulFertser> You can use 0x in Tcl for hex notation, no problem with that.
<PaulFertser> Hammdist: so you got the expected results now? What was the difference?
<Hammdist> the JTAG autodetection thing had resulted in recommending -irlen 3 for some reason and I didn't notice that's a bad thing
<PaulFertser> Oh that would explain strange effects.
<Hammdist> copying -irlen 8 from ulx3s project was the bulk of the fix (and -ircapture 0x5 also suppresses that error message I had pasted above)
<PaulFertser> You also see the right irlen inside the SVF file.
<PaulFertser> Probably it would be nice to have a warning when they mismatch.
Hawk777 has joined #openocd
Haohmaru has quit [Quit: saionara]
Foxyloxy has quit [Quit: Textual IRC Client: www.textualapp.com]
Foxyloxy has joined #openocd
Xogium has quit [Ping timeout: 252 seconds]
Xogium has joined #openocd
russ has quit [Ping timeout: 252 seconds]
russ has joined #openocd
<antto> ah sh*t, daplink firmware uses a RTOS, doesn't it
nerozero has quit [Ping timeout: 260 seconds]
WeaselSoup_ has joined #openocd
WeaselSoup has quit [Ping timeout: 252 seconds]