Page 1 of 6

JTAG connection to StartKit

Posted: Wed Dec 18, 2013 12:15 am
by LyleHaze
StartKit looks great, I look forward to getting it up and running here.

I checked the documentation, but I didn't see the JTAG loop brought out on any connectors.

Assuming XTimeComposer will not run on my computer, how can I connect my existing JTAG programmer to this board?

Thanks,
LyleHaze

Re: JTAG connection to StartKit

Posted: Wed Dec 18, 2013 11:43 am
by XMatt
The startKIT has been designed as a very low cost board and hence the XTAG has been integrated into the xCORE device. Due to the design of the system there is no simple way to access the external JTAG pins on the device to allow it to be used with an external programmer.

Re: JTAG connection to StartKit

Posted: Wed Dec 18, 2013 12:19 pm
by segher
"No simple way"?

Challenge accepted.

Re: JTAG connection to StartKit

Posted: Wed Dec 18, 2013 1:00 pm
by XMatt
segher wrote:"No simple way"?

Challenge accepted.
Good stuff, as a hint to start with the JTAG pins are looped back to ports on tile 1 as well as to the external programming header.

Re: JTAG connection to StartKit

Posted: Wed Dec 18, 2013 1:34 pm
by segher
Yeah saw that header (since a few minutes I have a board --
looks great, love the packaging too (but yet another logo
for XMOS?!), it's not plugged in yet).

The plan is first to reverse the USB protocol to get the board
to run at all -- I cannot run the host tools...

Re: JTAG connection to StartKit

Posted: Wed Dec 18, 2013 6:43 pm
by AJB2K3
LyleHaze wrote:StartKit looks great, I look forward to getting it up and running here.

I checked the documentation, but I didn't see the JTAG loop brought out on any connectors.

Assuming XTimeComposer will not run on my computer, how can I connect my existing JTAG programmer to this board?

Thanks,
LyleHaze
What OS are you running?

Re: JTAG connection to StartKit

Posted: Wed Dec 18, 2013 8:06 pm
by LyleHaze
@AJB2K3

I am running AmigaOS4, which is neither Windows, Mac, nor Linux compatible.
My current computer is an X1000, which is full ATX sized PowerPC board.
The main processor is a PASemi PA6t, but it also has a XS1-L02 from XMOS with an interface directly to the fast localbus of the PA6T. An integrated JTAG port allows us to re-program the built in XMOS chip (and any additional ones we add) on the fly without needing any adapters or programmers.

With lots of help from Segher, I was able to get the built in JTAG up and running, and we have command line and GUI based tools to operate that easily.

Even though we have a dedicated XMOS chip on every board, we can not compile any code for it locally, because the tools from XMOS all require an X86 processor, running Windows or Linux. :(

Now the next gen board is being designed. This time it looks like we will be going with a more available freescale processor, but still embedding an XMOS chip in each board, and a dedicated slot for accessing its available I/O.

I find it odd that while A-Eon is building each new computer with an XMOS chip and slot built in to each board, the compiler tools from XMOS ignore this family of computers completely.

Re: JTAG connection to StartKit

Posted: Thu Dec 19, 2013 10:59 am
by segher
I traced the traces...

Code: Select all

M mode2?
I TDI
S TMS
K TCK
D #DEBUG
O TDO
R reset?
H not connected at all
Now of course we have to convince core #0 to not drive
those pins. Haven't tried yet.

Re: JTAG connection to StartKit

Posted: Thu Dec 19, 2013 9:25 pm
by segher
I'm not very sharp today it seems...

After the power pins (G 5 33) all the other pins
(M I S K D O R G H) of course line up perfectly
with the XSYS pins 3..19, and then another G.
The G H are the uart pins :-)

So yeah then R is reset; it doesn't seem to actually
go to the reset input of the device though. Curious.

Still haven't booted the device; it turns out I don't
have any microusb cables :-P

Re: JTAG connection to StartKit

Posted: Tue Dec 24, 2013 6:39 pm
by segher
The plot thickens.

Still no cable so doing all this "dry", just the way I like it.

It turns out there is a hardware manual for the startkit; I've
looked for it but couldn't find it on the XMOS website, but
there of course always is google. The manual contains the
schematic.

It seems the UART pins on XSYS are no more; TX (on the
target side) now is another GND (G on startkit), and RX
now is called OTP_HOLD (H on startkit), but not connected.

The debug core uses all 1-bit ports, and in a nice sane order,
except it skips 1I (XnD24, ball V13), and in fact that seems
to be the only pin missing from the schematic.