try allowing hw server ip #41

Merged
muellerr merged 1 commits from try-allowing-setting-hw-server-ip into main 2026-02-14 17:49:09 +01:00
3 changed files with 8 additions and 6 deletions
+1
View File
@@ -10,3 +10,4 @@
# running the application. You only need to do this once for unchanged bitstream as long as you
# do not reset the whole board.
# ZYNQ_BITSTREAM = "/home/$user/$project/$sdt_dir/bitstream.bit"
# HW_SERVER_IP = "localhost"
+2 -2
View File
@@ -1,5 +1,5 @@
if {[info exists env(ip_address_hw_server)]} {
set ip $env(ip_address_hw_server)
if {[info exists env(XSCT_HW_SERVER_IP)]} {
set ip $env(XSCT_HW_SERVER_IP)
} else {
set ip "localhost"
}
+5 -4
View File
@@ -22,8 +22,6 @@ def main():
parser.add_argument(
"-t",
"--tools",
# Required only if env var is not set
required=not bool(os.getenv("AMD_TOOLS")),
# Use env var if set
default=os.getenv("AMD_TOOLS"),
help="The path to the tool to use. Must point to a valid Vivado tools installation which"
@@ -43,10 +41,13 @@ def main():
help="No bitstream flashing for initialization with SDT.",
)
parser.add_argument("-a", "--app", dest="app", help="Path to the app to program")
default_ip = os.getenv("HW_SERVER_IP")
if not default_ip:
default_ip = DEFAULT_IP_ADDRESS_HW_SERVER
parser.add_argument(
"-i",
"--ip",
default=DEFAULT_IP_ADDRESS_HW_SERVER,
default=default_ip,
help="The IP address of the hardware server (default: localhost)",
)
parser.add_argument(
@@ -91,7 +92,7 @@ def main():
print(f"The app '{args.app}' does not exist")
sys.exit(1)
os.environ["IP_ADDRESS_HW_SERVER"] = args.ip
os.environ["XSCT_HW_SERVER_IP"] = args.ip
init_tcl = None
bitstream = None
if args.bit: