UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
298 Views
Registered: ‎07-28-2008

xsct exec console output where goes?

Jump to solution

I'm trying to create a script for

program_flash -f BOOT.bin ...

that can be sourced in xsct% or ideally call from .batch by

 

%SystemRoot%\system32\cmd.exe /k C:\Xilinx\SDK\2018.2\bin\xsct.bat xsct.tcl

 

Calling "program_flash -f *** " directly inside xsct% give console message, and it runs OK.

Soure a script with the same working command line in a *.tcl file gives error:

invalid command name "program_flash"

Chang script to:

exec program_flash -f ...

gives no error, but there is no console output after source. I guess it's redirected somewhere, is it possible to control the redirection, or at minimum write to a file?

 

Thanks,

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
248 Views
Registered: ‎09-12-2007

Re: xsct exec console output where goes?

Jump to solution

would need to append the command with a &

 

For example: I have a script.bat file:

C:\Xilinx\SDK\2019.1\bin\xsct.bat script.tcl

My script.tcl file just dumps the help:

exec program_flash -help &

 

Then if I just execute the batch file, this will dump the help info:

tcl.PNG

Note: you can add a pause in the bat to prevent it closing

 

 

View solution in original post

1 Reply
Moderator
Moderator
249 Views
Registered: ‎09-12-2007

Re: xsct exec console output where goes?

Jump to solution

would need to append the command with a &

 

For example: I have a script.bat file:

C:\Xilinx\SDK\2019.1\bin\xsct.bat script.tcl

My script.tcl file just dumps the help:

exec program_flash -help &

 

Then if I just execute the batch file, this will dump the help info:

tcl.PNG

Note: you can add a pause in the bat to prevent it closing

 

 

View solution in original post