On 23 Jan 2015 20:48:50 +0000 (GMT), Theo Markettos
<
theom...@chiark.greenend.org.uk> wrote:
>
> In uk.comp.os.linux Java Jive <ja...@evij.com.invalid> wrote:
> >
> > Do you happen to know of such a widget?
>
> Look for the things that convert 2.5" PATA hard drives to 3.5" PATA. They
> have 2mm socket -> 2.5mm plug adaptors. Or simply solder them on.
Ding! Yes, I have two of those, so even one spare, but even better I
didn't have to vandalise, because it so happens that in line with the
JTAG connector there are no protruding components on the NMP board.
VERY useful tip, thanks yet again.
> > ... but zJTAG failed to find the unit, despite trying with every /L1
> > parameter between 0 and 10, and then 149 as the documentation from
> > QNAP (previously linked) suggests a speed of 200Kb/s.
> >
> > I guess that means one or more of:
> > :-( My soldering efforts weren't good enough
> > :-( Not all the crammed in connections were able to make
> > :-( I connected up wrong (see next para)
> > :-( zJTAG just can't recognise my type of hardware.
>
> Try shorting TDI to TDO and see if there's any difference in the error
> message. That'll indicate if those two pins are working.
A good idea in principle, but it's difficult to see how to do that in
practice because, unlike the pins on the TUMPA, the pads don't go
through to the other side of the NMP board, and it's very difficult to
trace the connections to a suitable point to place a probe - partly,
although we still have the picture of the board without the header
mounted that I linked previously ...
http://www.macfh.co.uk/Temp/QNAP_NMP-1000_Board.png
... because the header itself obscures important detail, but mainly
because everything is so damnedly small - I can only see anything
worthwhile with a x10 lens, and I'm not prepared to wait for evolution
to grow me an extra pair of hands so that I can hold the board with
one hand, the lens with another, and probes for a resistance meter
with two more ...
However I do know, because I have indeed been able to measure them
statically with a resistance meter, that on each board the GRNDs are
all connected to each other via the board itself, and therefore that
all GRND connections are good and that a GRND connection definitely
exists between the boards, and for the signal connections similarly I
know each is getting from the reverse end of its TUMPA pin (I mean
that I'm probing the base part of each pin on the other side of the
board to the connector fitting itself) to the foot of the
corresponding JTAG header pin, but there's no obvious way of being
absolutely certain that the foot of each signal JTAG header pin
actually makes electrical contact with the corresponding pad on the
board. The facts that they all look as though they ought to be, and
all the similar looking GRNDS definitely are, and that the results
obtained below vary with whether the NMP is switched on or not, all
encourage me to believe logically that all connections are good, but,
due to the difficulties outlined in the previous paragraph, I can't
think of a practical way of putting the matter beyond any doubt by
actual physical measurement.
> > As far as the connecting up goes, some of the connections names in the
> > TUMPA manual (no longer on the TIAO site so here's my copy) ...
>
> I'd guess VTAR = VREF. You don't need SRST (or TRST) but you could try
> RST=nSRST anyway. Bare minimum is TDI, TDO, TCK, TMS (and VREF depending on
> the design of programmer).
If I connect VTAR <-> VREF, an LED (red) lights on the TUMPA, and
zJTAG behaves a little differently as outlined in the next paragraph,
but otherwise I don't observe any difference. Likewise RST<->nSRST
doesn't seem to make any difference either.
Although zJTAG outputs a message "Please confirm VREF signal
connected!", its behaviour suggests that this is solely so that it can
sense whether the target board is running as it (zJATG) starts to run
- if the board is already switched on it hangs (but confusingly
without a message) waiting for you to switch the board off before it
proceeds to the prompt to switch it on. I suppose this is because it
wants to catch the board as it first boots.
I've now tried, and got not very far with:
OpenOCD v0.8.0 (Linux)
OpenOCD v0.8.0 (Windows 7)
zJTAG (Windows XP)
The results are appended below.
As they are different depending on whether the board is switched off
(ID = all 1s) and on (ID = all 0s) , I hope that means that the JTAG
header connections and the TUMPA itself are correct and working, but
I'm stumped as to how to get a more meaningful response out of the
board itself. Perhaps it's a question of knowing how to configure
OpenOCD correctly, or perhaps I need to set a jumper somewhere on the
NMP board to make it respond to JTAG, but for the moment, I'm
completely stuck.
Can anyone help with configuring OpenOCD, and/or particularly the
configuration error message from it ...
-chain-position required when creating target
... for which a search finds nothing really useful?
OpenOCD (Linux)
===============
NMP Turned off:
---------------
root@Charles-2:/home/Embedded# openocd -f
/usr/local/share/openocd/scripts/interface/ftdi/tumpa.cfg
Open On-Chip Debugger 0.8.0 (2015-01-24-20:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 200 kHz
none separate
in procedure 'init'
NMP Turned on:
--------------
root@Charles-2:/home/Embedded# openocd -f
/usr/local/share/openocd/scripts/interface/ftdi/tumpa.cfg
Open On-Chip Debugger 0.8.0 (2015-01-24-20:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 200 kHz
none separate
in procedure 'init'
root@Charles-2:/home/Embedded# openocd -f
/usr/local/share/openocd/scripts/interface/ftdi/tumpa.cfg -f
/usr/local/share/openocd/scripts/target/smp8634.cfg
Open On-Chip Debugger 0.8.0 (2015-01-24-20:51)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 200 kHz
none separate
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
trst_and_srst separate srst_gates_jtag trst_push_pull srst_push_pull
connect_deassert_srst
Warn : smp8634.cpu: nonstandard IR mask
Runtime Error: embedded:startup.tcl:20: -chain-position required when
creating target
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'target' called at file
"/usr/local/share/openocd/scripts/target/smp8634.cfg", line 31
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 20
OpenOCD (Windows 7)
===================
NMP Turned off:
---------------
C:\Program Files\OpenOCD>"C:\Program Files\OpenOCD\bin\openocd.exe" -f
"C:\Program Files\OpenOCD\scripts\interface\ftdi\tumpa.cfg"
Open On-Chip Debugger 0.8.0 (2014-04-28-08:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 200 kHz
none separate
Info : clock speed 200 kHz
Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!!
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Warn : gdb services need one or more targets defined
NMP Turned on:
--------------
C:\Program Files\OpenOCD>"C:\Program Files\OpenOCD\bin\openocd.exe" -f
"C:\Program Files\OpenOCD\scripts\interface\ftdi\tumpa.cfg"
Open On-Chip Debugger 0.8.0 (2014-04-28-08:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 200 kHz
none separate
Info : clock speed 200 kHz
Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!!
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: IR capture error at bit 0, saw 0x00 not 0x...3
Warn : Bypassing JTAG setup events due to errors
Warn : gdb services need one or more targets defined
C:\Program Files\OpenOCD>"C:\Program Files\OpenOCD\bin\openocd.exe" -f
"C:\Program Files\OpenOCD\scripts\interface\ftdi\tumpa.cfg" -f
"C:\Program Files\OpenOCD\scripts\target\smp8634.cfg"
Open On-Chip Debugger 0.8.0 (2014-04-28-08:39)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 200 kHz
none separate
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
trst_and_srst separate srst_gates_jtag trst_push_pull srst_push_pull
connect_dea
ssert_srst
Warn : smp8634.cpu: nonstandard IR mask
Runtime Error: embedded:startup.tcl:20: -chain-position required when
creating t
arget
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'target' called at file "C:\Program
Files\OpenOCD\scripts\target\sm
p8634.cfg", line 31
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 20
zJTAG (Winows XP)
=================
NMP Turned off:
---------------
C:\TEMP>"C:\Program Files\ZJTAG\zjtag.exe" -probeonly /L1:149
==============================================
zJTAG EJTAG Debrick Utility v1.0
==============================================
Set I/O speed to 200 KHz
USB TAP device has been initialized. Please confirm VREF signal
connected!
Press any key to continue... ONCE target board is powered on!
Probing bus ... Done
Detected IR chain Length is 1
CPU Chip ID: 11111111111111111111111111111111 (FFFFFFFF)
*** Unknown or NO CPU Chip ID Detected ***
*** Possible Causes:
1) Router/Modem is not Connected.
2) Router/Modem is not Powered On.
3) Improper JTAG Cable.
4) Unrecognized CPU Chip ID.
NMP Turned on:
--------------
C:\TEMP>"C:\Program Files\ZJTAG\zjtag.exe" -probeonly /L1:149
==============================================
zJTAG EJTAG Debrick Utility v1.0
==============================================
Set I/O speed to 200 KHz
USB TAP device has been initialized. Please confirm VREF signal
connected!
Press any key to continue... ONCE target board is powered on!
Probing bus ... Done
Detected IR chain Length is 0
CPU Chip ID: 00000000000000000000000000000000 (00000000)
*** Unknown or NO CPU Chip ID Detected ***
*** Possible Causes:
1) Router/Modem is not Connected.
2) Router/Modem is not Powered On.
3) Improper JTAG Cable.
4) Unrecognized CPU Chip ID.