System-Console CLI no USB devices detected
Hello,
I am having issues running the Quartus system-console 12.1sp1 as CLI.
system-console.exe --cli [or witout --cli] [wait a bit] get_service_paths {device}
works as expected in the GUI system-console, however adding the CLI option returns no answer (no devices detected). Could someone help me understand why?
On my dev setup, everything works fine, but I was trying to replicate the setup on a new computer, and can't detect the USB devices anymore.
The only difference I noticed that the computer where CLI does NOT work displays
"Warning: FPGA does not contain SystemConsole USB soft logic (no I2k ack)"
However, this warning is displayed both in CLI and GUI mode, so I would think is not related to my issue.
I tried 2 computers, both Windows 7 64bits and Windows 10 64bits, both show the same issue.
[I made sure to close all other system-console windows, computers have been rebooted a few times, etc...]
Thank you for your help
Edit: I think the issue comes from the USB device detection: Running a loop of:
refresh_connections # Refresh USB Devices pause 5 seconds # Pause for 5 seconds
until get_service_paths {device} returns an output solves it.
A few questions:
- Why does system-console CLI behave differently than GUI on this one?
- Is there a way to remove the pause(5) command, and instead wait until refresh_connections finishes? refresh_connections returns immediately, but unfortunately still works in the background for another 5seconds or so.