qsys-script error "invalid command name" command name is empty string
Hi All,
When I run qsys-script it doesn't appear to work correctly even for a very simple TCL script?
$ qsys-script --script=test.tcl --quartus-project=test
***************************************************************
Quartus is a registered trademark of Intel Corporation in the
US and other countries. Portions of the Quartus Prime software
code, and other portions of the code included in this download
or on this DVD, are licensed to Intel Corporation and are the
copyrighted property of third parties. For license details,
refer to the End User License Agreement at
http://fpgasoftware.intel.com/eula.
***************************************************************
2025.03.05.11:50:01 Info: Doing: qsys-script --script=test.tcl --quartus-project=test
2025.03.05.11:50:05 Info: send_message Info 1
2025.03.05.11:50:05 Info: Info: 1
2025.03.05.11:50:05 Error: invalid command name ""
$ cat test.tcl
package require -exact qsys 22.1
[ send_message "INFO" "1" ]
[ puts "ERROR 1" ]
[ puts "ERROR 2" ]
[ send_message "INFO" "3" ]
$ cat test.qpf test.qsf
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2022 Intel Corporation. All rights reserved.
# Your use of Intel Corporation's design tools, logic functions
# and other software and tools, and any partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Intel Program License
# Subscription Agreement, the Intel Quartus Prime License Agreement,
# the Intel FPGA IP License Agreement, or other applicable license
# agreement, including, without limitation, that your use is for
# the sole purpose of programming logic devices manufactured by
# Intel and sold by Intel or its authorized distributors. Please
# refer to the applicable agreement for further details, at
# https://fpgasoftware.intel.com/eula.
#
# -------------------------------------------------------------------------- #
#
# Quartus Prime
# Version 22.4.0 Build 94 12/07/2022 SC Pro Edition
# Date created = 11:48:21 March 05, 2025
#
# -------------------------------------------------------------------------- #
QUARTUS_VERSION = "22.4"
DATE = "11:48:21 March 05, 2025"
# Revisions
PROJECT_REVISION = "test"
set_global_assignment -name TOP_LEVEL_ENTITY test
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 22.4.0
set_global_assignment -name PROJECT_CREATION_TIME_DATE "11:48:21 MARCH 05, 2025"
set_global_assignment -name LAST_QUARTUS_VERSION "22.4.0 Pro Edition"
set_global_assignment -name FAMILY "Arria 10"
set_global_assignment -name DEVICE 10AS016C3U19E2LG
Why do the commands in your script have square brackets [ ]? That could be the problem.