I am trying to use an xtag2 as a development board, so I have connected the jtag test pads of one to the xsys connector of the other, and connected the two 5v supply pins of the xsys connectors with each other.
It is recocnised in "debug configuration" of xTIMEcomposer as
XMOS XTAG-2 connected to L1[0] TnhN80dH
but:
when i try to run I get:
Warning: XN11135 Attribute SystemFrequency is ignored when Oscillator is not specified.
Warning: according to mode pins, system is not set to boot from JTAG
xrun: Program received signal ET_ILLEGAL_RESOURCE, Resource exception.
0x00010b98 in getAllChansFunc ()
and if I try to debug i see:
“No source available for getAllChansFunc()”
and it seems as if program counter is stuck in this command iven if try I to step.
freer (1r) res[r0] *
Finally it crahes... Any help?
I have not set any crystal frequencies, or any other settings but since mode pins are read I assume hardware communication is OK, maybe not?
Debugging an xtag2 xith an xtag2
- sethu_jangala
- XCore Expert
- Posts: 589
- Joined: Wed Feb 29, 2012 10:03 am
You need to specify the oscillator frequency int eh XN file. Something like this,Warning: XN11135 Attribute SystemFrequency is ignored when Oscillator is not specified.
<Node Id="0" InPackageId="0" Type="XS1-L8A-64" Oscillator="25MHz" SystemFrequency="500MHz">
Did you check the MODE pins of your design? are they set properly according to boot mode?Warning: according to mode pins, system is not set to boot from JTAG
The mode pins are not set correctly because the XTAG2 has them set permenanetly. BUT in this guide
https://www.xmos.com/en/download/public ... -XTAG2.pdf
it says
https://www.xmos.com/en/download/public ... -XTAG2.pdf
it says
I will look into setting the frequency, thank you!You can also use xrun (or run configurations/run) to run firmware on the USB board
via the JTAG board. You may get warnings that the boot mode is not set correctly,
but the device should still execute the code loaded via JTAG.
I copied the content I found here from here:
https://github.com/itdaniher/xtag2-tink ... r/XTAG2.xn
but still the same...
Also I observed this in the console
.
.
.
etc
https://github.com/itdaniher/xtag2-tink ... r/XTAG2.xn
but still the same...
Also I observed this in the console
Code: Select all
.gdbinit: No such file or directory.
auto-solib-add on
Undefined command: "auto-solib-add". Try "help".
connect --adapter-id TnhN80dH
0x0001cdc4 in ?? ()
load
Loading section .text, size 0xaee lma 0x10000
Loading section .init, size 0x5c lma 0x10aee
Loading section .fini, size 0x3a lma 0x10b4a
.
.
etc
One issue you are going to have is that the XTAG is going to boot from it's OTP every reset
I don't mind as I will use it as a dev board,
or maybe do you mean it cannot be used even as such?
or maybe do you mean it cannot be used even as such?
The issue is the XTAG is going to be running it's bootloader - which waits for its xtag binary from the tools. You will be interrupting it and trying to load your own code into the device in a potentially random state (resources could be allocated etc) hence the traps.
On potential method would be to somehow invalidate the code in the OTP (i.e. an invalid CRC) such that the device doesn't boot its boot loader. Another method would be to use the bootloader in the OTP and some USB code on the host to load your own image (rather than the XTAG image).
Since I am an XMOS employee I will need to check our position on "hacking" the XTAG before encouraging this too much! ;)
Ideally what you really want is a "blank" XTAG by the sounds of it...
On potential method would be to somehow invalidate the code in the OTP (i.e. an invalid CRC) such that the device doesn't boot its boot loader. Another method would be to use the bootloader in the OTP and some USB code on the host to load your own image (rather than the XTAG image).
Since I am an XMOS employee I will need to check our position on "hacking" the XTAG before encouraging this too much! ;)
Ideally what you really want is a "blank" XTAG by the sounds of it...
OK I will wait for a reply, thank you for your effort either way!
In the meantime if you are looking for a cheap (free!) dev kit: https://www.xmos.com/startkit/promotion
Wow, I had not seen that! I sent my application, and I certainly would not mind paying for it. Bear in mind the XK-1A costs the equivalent of 124$ in Europe...