Forum Discussion

MUmbr2's avatar
MUmbr2
Icon for New Contributor rankNew Contributor
6 years ago

4 USB-Blasters keep getting assigned different indexes when using quartus_jli.exe (system power cycle or not). How can I programmatically find out the correct index to use for each device?

We are developing an automated test system that needs to run JTAG scripts using 4 USB-Blasters (1 per product). We are running scripts using quartus_jli.exe and we need to specify the correct device index, in order to use the right hardware. Problem is that the indexes seem to be changing after system power cycles or just while running testing.

We have tried obtaining the Device ID values, which seem unique in Windows. But the order the Device ID values appear seems consistent, while the quartus_jli.exe device enumeration keeps changing.

Is there a better property to be used for this? What does quartus_jli.exe use to enumerate the devices?

We are running scripts using CMD:

<quartus_jli.exe path> -c N <JAM file path> -a p

Where N is the device index (1 to 4 in our case).

We can obtain the list of devices by running in CMD:

<quartus_jli.exe path> -n

But this gives very little information on what devices is which index. Any pointers would be highly appreciated!

8 Replies

  • ShafiqY_Intel's avatar
    ShafiqY_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi MUmbr2,

    May you can try command "jtagconfig" first to understand more details about device index.

    Cheers

    • MUmbr2's avatar
      MUmbr2
      Icon for New Contributor rankNew Contributor

      Hi ShafiqY,

      Thank you for the pointer, however your screenshot shows that both devices have the same ID. I get the exact same on my machine, i.e. no unique identifier for each cable. Do you happen to know where I can find a list of properties for the JTAG Cable? If there is a blank field, such as, "description", I could maybe apply a unique identifier myself? Using --setparam

      The other option would be to try and remove all of the cables programmatically and then add the in the order I need them in. I'm also running Windows, which might make it difficult to go very low level.

      • ShafiqY_Intel's avatar
        ShafiqY_Intel
        Icon for Frequent Contributor rankFrequent Contributor

        Hi MUmbr2,

        If you have similar ID for x4 JTAG cable with devices, I think the best option is as you idea above. Remove all the cables, then add them one by one, and identify their specific device index number (jtagconfig).

        This is the best option you can do.

        Thanks