problem with project "sc_jtag": undefined JTAG pins?

Technical questions regarding the XTC tools and programming with XMOS.
jerryXCORE
Experienced Member
Posts: 65
Joined: Tue Apr 30, 2013 10:41 pm

problem with project "sc_jtag": undefined JTAG pins?

Post by jerryXCORE »

I just download a project:
https://github.com/xcore/sc_jtag

But when I build the project in xTimeComposer, I got error:
Error: Undefined reference to 'jtag_pin_TCK'
Error: Undefined reference to 'jtag_pin_TMS'
Error: Undefined reference to 'jtag_pin_TDI'
Error: Undefined reference to 'jtag_pin_TDO'


Where are those pins defined? Thanks!

(I want to do boundary scan, and read this post:
https://www.xcore.com/forum/viewtopic.php?f=26&t=1704
and find the project above!)


User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm

Post by Folknology »

If you cannot locate them in any of the source files, they may be defined in the XN file.

regards
Al
User avatar
myndideal
Active Member
Posts: 59
Joined: Thu May 05, 2011 10:00 pm
Location: Budapest

Post by myndideal »

This project does not have a declaration for the jtag ports/pins at all. (There is a todo line somewhere).
But there are only extern declarations for the ports. So, you can specify the ports manually.
I guess this project does similar things than the xtag2 boards do. So, this jtag pins are gpio pins from the code point of view.
jerryXCORE
Experienced Member
Posts: 65
Joined: Tue Apr 30, 2013 10:41 pm

Post by jerryXCORE »

Yes, I found those pins from XTAG2 schematic: add the port definitions manually, and compile successfully.

So far, the program runs(I connects XTAG2 to sliceKit board), but get number of taps: 0, (which is wrong, should be 1)

Just curious: when somebody developed the codes, haven't they tried to compile and do the basic debugging and testing?