Why do I get "Fatal Error: wrong # or args: should be 'source fileName' 'Error: quartus_cmd exited with status 1' 'place and route failed.' when attempting to launch the QuartusTM software from LeonardoSpectrum or when running a LeonardoSpectrum tool command language (Tcl) file in the Quartus software?
LeonardoSpectrum writes out a Tcl file pointing to your EDIF file. If there are any spaces in your directory structure, they are also written directly into the Tcl file. Allowing unescaped empty space is invalid syntax for Tcl and will not be interpreted correctly when sourced.
For example, the following will cause an error in LeonardoSpectrum because of the empty space between "My" and "Work":
project create D:/My Work/leo_spectrum/testing/case_mux
This empty space affects users who try to launch the Quartus software (command-line) from LeonardoSpectrum as well as users who source the Tcl file generated by LeonardoSpectrum in the Quartus software.
As a workaround, you can choose to bring up the GUI when using the place and route tab in LeonardoSpectrum, or place the Tcl file and EDIF both in the Quartus working directory and remove all path references in that Tcl file.
For example, each reference to "project create D:/My Work/leo_spectrum/testing/case_mux" should be replaced with "project create case_mux".