07-28-2020 02:31 AM
Error description
Xsct's print command fails in the following case:
The hw_server runs on Linux
The xsct client runs on Win10
Wrong behavior:
(When run commands from my Windows PC)
xsct% dow $writer_elf
...
...
xsct% print -dict &tcl_function_call &tcl_function_call {At col 18: Undefined identifier tcl_function_call. Invalid expression} xsct% print &tcl_function_call &tcl_function_call : At col 18: Undefined identifier tcl_function_call. Invalid expression xsct% print tcl_function_call tcl_function_call : At col 17: Undefined identifier tcl_function_call. Invalid expression
Expected behavior:
(Running commands from the Linux server)
xsct% dow $writer_elf
...
...
xsct% print -dict &tcl_function_call &tcl_function_call 21276 xsct% print &tcl_function_call &tcl_function_call : 21276 xsct% print tcl_function_call tcl_function_call : [16]
Note:
The error occurs only if the elf was downloaded from Windows. If the Linux downloads the elf, both Linux and Windows can use print command successfully.
I use:
See more at:
https://forums.xilinx.com/t5/Processor-System-Design-and-AXI/Synchronise-Zynq-with-TCL/m-p/1073951
https://www.xilinx.com/html_docs/xilinx2019_1/SDK_Doc/xsct/running/reference_running_print.html
07-31-2020 07:58 AM
You issue seems to be driven by the fact that the remote connection is done without symbol server.
-symbols Launch symbol server to enable source level debugging for remote connections
As a quick example I just tested the following command sequence loading the fsbl.elf into a ZC702 board from a windows host while the hw_server is executed on a Linux host.
Failing sequence:
xsct% connect -url <myserver>:3121 xsct% rst -system xsct% dow C:/workspace/fsbl/Debug/fsbl.elf xsct% print -dict &main &main {At col 5: Undefined identifier main. Invalid expression}
Successful sequence:
xsct% connect -url <myserver>:3121 -symbols xsct% rst -system xsct% dow C:/workspace/fsbl/Debug/fsbl.elf xsct% print -dict &main
&main 6112
Regards