The following error message is displayed in the Intel® Quartus® Prime Pro Edition Software version 21.3 and 21.4 when you perform the following tasks:
- Downloading a Nios® V processor application ELF file into Intel® FPGAs using the niosv-download utility.
- Generating an OpenOCD configuration file using openocd-cfg-gen utility.
INFO: Generating OpenOCD config file. Running "openocd-cfg-gen -c 2 /tmp/niosvm.cfg".
Please specify a valid cable
ERROR: Failed to generate OpenOCD config file.
This error message occurs due to a bug in the openocd-cfg-gen utility, whereby the utility cannot generate the OpenOCD configuration file unless the targeted Intel FPGA is connected to the 1st cable instance.
A similar error can be seen when you are using the niosv-download utility because the niosv-download utility also calls out or uses the openocd-cfg-gen utility.
You may run the jtagconfig command to display all the connected instances to the host computer.
To work around this problem in the Intel® Quartus® Prime Pro Edition Software version 21.3 and 21.4, follow these steps:
- Ensure that the targeted Intel FPGA is connected to the 1st cable instance.
- Disconnect other Intel FPGAs from your host computer through the following methods:
- Power down the devices
- Unplug the devices from the host computer
- Download and install the following patch to fix this error in the Intel® Quartus® Prime Pro Edition Software version 21.3:
- Download and install the following patch to fix this error in the Intel® Quartus® Prime Pro Edition Software version 21.4:
This problem is fixed starting from Intel® Quartus® Prime Pro Edition Software version 22.1.