sreenivasarao

Help for Supporting Multiple Digilent HS2 Jtag adapter

Recommended Posts

Hello,

we are having some issue with second adapter. read_memory function returns same value which is already written on previous adapter.

Details:

1) Connected Multiple Digilent JTAG HS2 to same Computer

2) Using our application perform the following operations

 a. perform write_memory/read_memory operation on First Adapter (e.g) written 0x10 at 0xf0011200) and read the value at 0xf0011200

b. Then call read_memory against second Adapter. Instead of zero value, getting same value(0x10)

Our Application uses arcint.h and apidglnt.dll for geting ARC Interface(do like enumerate all Jtag Adapter, Connect to selected adapter then finally do read_memory/Write_memory Operations).

Before connecting to second adapter, it remove existing connected adapter then proceed further.

please suggest regarding this.

it works fine if we do the same thing in MetaWare Software.

 

Thaniks,

Regards,

Sreenivas

 

 

Please See the log for more information.

 

Available adapters for jtag:
ID : Ashling Opella-XD ARC Driver, 06-Mar-2014 v1.0.5-B
2017-11-13 18:05:42.452 ,INFO ,CTF     ,"Available adapters for jtag:" , 
0 -> SN:210241743507
2017-11-13 18:05:42.453 ,INFO ,CTF     ,"0 -> SN:210241743507" , 
1 -> SN:936737571414
2017-11-13 18:05:42.453 ,INFO ,CTF     ,"1 -> SN:936737571414" , 
2017-11-13 18:05:42.453 ,INFO ,CTF     ,"Enter adapter index (0-1): " , 
Enter adapter index (0-1): 0
Selected Adapter: SN:210241743507
2017-11-13 18:05:44.800 ,INFO ,CTF     ,"Selected Adapter: SN:210241743507" , 
[JTAG] Running in 4wire mode.
[DIGILENT] Attempting to set speed to 3000000 Hz.
[DIGILENT] Speed was set to 3000000 Hz.
[JTAG] JTAG7 config0 register in 4wire mode = 0xffffffff
[JTAG] JTAG7 rdback0 register in 4wire mode = 0xffffffff
[JTAG] JTAG7 rdback0 register in 2wire mode = 0x1609
[JTAG] JTAG chain analysis: input 0xff, output bit stream was:
[JTAG]   1000 1101 0010 0100 0000 0010 0000 0100
[JTAG]   1000 1101 0010 0100 0000 0000 0000 0100
[JTAG]   1111 1111 0000 0000 0000 0000 0000 0000
[JTAG] The bits are left-to-right in order of exit from TDO.
[JTAG] Reversed, as they appear in the shift registers, they are:
[JTAG]   0000 0000 0000 0000 0000 0000 1111 1111
[JTAG]   0010 0000 0000 0000 0010 0100 1011 0001
[JTAG]   0010 0000 0100 0000 0010 0100 1011 0001
Readmemory return Value  22
Available adapters for jtag:
ID : Ashling Opella-XD ARC Driver, 06-Mar-2014 v1.0.5-B
2017-11-13 18:05:58.415 ,INFO ,CTF     ,"Available adapters for jtag:" , 
0 -> SN:210241743507
2017-11-13 18:05:58.415 ,INFO ,CTF     ,"0 -> SN:210241743507" , 
1 -> SN:936737571414
2017-11-13 18:05:58.415 ,INFO ,CTF     ,"1 -> SN:936737571414" , 
2017-11-13 18:05:58.415 ,INFO ,CTF     ,"Enter adapter index (0-1): " , 
Enter adapter index (0-1): 1
Selected Adapter: SN:936737571414
2017-11-13 18:06:01.230 ,INFO ,CTF     ,"Selected Adapter: SN:936737571414" , 
[JTAG] Notational conventions:
[JTAG]   ARC.cN means the N-th ARC in the chain (N=1,2,...).
[JTAG]   ARC.N  means the ARC whose IDCODE arcnum is N.
[JTAG]   It is possible for these numbers to differ.
[JTAG] ARC.c1 is ARC.0
[JTAG] ARC.c1 has status register length of 7
[JTAG] ARC.c2 is ARC.16
[JTAG] ARC.c2 has status register length of 7
[JTAG] There are 2 jtag unit(s).  Left-to-right, they are:
[JTAG]    1: id=0x200024b1 (ARC.0), irlen=4, arc_type=2
[JTAG]    2: id=0x204024b1 (ARC.16), irlen=4, arc_type=2
[JTAG] ARC.c1: to my right: 4 IR bits, 1 data bits.
[JTAG] Running in 4wire mode.
[DIGILENT] Attempting to set speed to 3000000 Hz.
[DIGILENT] Speed was set to 3000000 Hz.
[JTAG] JTAG7 config0 register in 4wire mode = 0xffffffff
[JTAG] JTAG7 rdback0 register in 4wire mode = 0xffffffff
[JTAG] JTAG7 rdback0 register in 2wire mode = 0x1609
[JTAG] JTAG chain analysis: input 0xff, output bit stream was:
[JTAG]   1000 1101 0010 0100 0000 0010 0000 0100
[JTAG]   1000 1101 0010 0100 0000 0000 0000 0100
[JTAG]   1111 1111 0000 0000 0000 0000 0000 0000
[JTAG] The bits are left-to-right in order of exit from TDO.
[JTAG] Reversed, as they appear in the shift registers, they are:
[JTAG]   0000 0000 0000 0000 0000 0000 1111 1111
[JTAG]   0010 0000 0000 0000 0010 0100 1011 0001
[JTAG]   0010 0000 0100 0000 0010 0100 1011 0001
Readmemory return Value  22
[JTAG] Notational conventions:
[JTAG]   ARC.cN means the N-th ARC in the chain (N=1,2,...).
[JTAG]   ARC.N  means the ARC whose IDCODE arcnum is N.
[JTAG]   It is possible for these numbers to differ.
[JTAG] ARC.c1 is ARC.0
[JTAG] ARC.c1 has status register length of 7
[JTAG] ARC.c2 is ARC.16
[JTAG] ARC.c2 has status register length of 7
[JTAG] There are 2 jtag unit(s).  Left-to-right, they are:
[JTAG]    1: id=0x200024b1 (ARC.0), irlen=4, arc_type=2
[JTAG]    2: id=0x204024b1 (ARC.16), irlen=4, arc_type=2
[JTAG] ARC.c1: to my right: 4 IR bits, 1 data bits.
 

Share this post


Link to post
Share on other sites

HI @sreenivasarao,

We do not support third party software. We have never used arcint.h and apidglnt.dll. We suggest that you reach out to Synopsys about their software.

thank you,

Jon

Edited by jpeyron

Share this post


Link to post
Share on other sites

Hi Jon,

same issue has been reproduced when I opened FTDI- FT Prog application.

When I connect 2 or more JTAG's, it duplicates the information to all JTAG's.

Attached Screen shot for reference.

 

Thanks,

Deepak

Multiple JTAG Connected.jpg

Edited by Deepak Srirama Bairy

Share this post


Link to post
Share on other sites

Hi @Deepak Srirama Bairy,

Based on the device output you are using JTAG-HS2's. Is that correct? Please download Adept 2 here and make sure the Serial Numbers are different.  Once you have Adept 2 downloaded I would suggest to look at this forum thread. I have not used FTDI -FT prog. I would also reach out to FTDI about their software. 

thank you,

Jon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now