cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
betontalpfa
Explorer
Explorer
311 Views
Registered: ‎10-12-2018

print command failure if hw_server runs on Linux and xsct runs on Windows

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:

  • Vivado 2017.4
  • Windows 10.0.19041 Build 19041 (xsct client)
  • 4.15.0-112-generic #113-Ubuntu SMP (hw_server)

 

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

 

0 Kudos
1 Reply
ibaie
Xilinx Employee
Xilinx Employee
252 Views
Registered: ‎10-06-2016

@betontalpfa 

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


Ibai
Don’t forget to reply, kudo, and accept as solution.