{"id":7440,"date":"2021-08-06T11:37:50","date_gmt":"2021-08-06T18:37:50","guid":{"rendered":"https:\/\/visualgdb.com\/w\/?p=7440"},"modified":"2021-08-06T11:37:50","modified_gmt":"2021-08-06T18:37:50","slug":"troubleshooting-xsct-issues","status":"publish","type":"post","link":"https:\/\/visualgdb.com\/documentation\/xilinx\/xsct\/","title":{"rendered":"Troubleshooting XSCT issues"},"content":{"rendered":"<p>This page provides instructions for troubleshooting issues with the Xilinx XSCT tool and VisualGDB.<\/p>\n<p>XSCT is a part of the Xilinx Vitis environment that allows creating, building and configuring projects programmatically. VisualGDB launches XSCT in the background each time you create, debug or change a Vitis-based project.<\/p>\n<p>However, under some circumstances, XSCT might fail to start properly. The first step to troubleshoot such issues would be to check the <strong>&lt;Project Directory&gt;\\.visualgdb\\XSCT-Wizard.log<\/strong> file, if using wizard. If the project has already been created, you can enable XSCT logging via VisualGDB Project Properties and then check the <strong>&lt;Project Directory&gt;\\XSCT.log<\/strong> file:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/log.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7446\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/log.png\" alt=\"\" width=\"943\" height=\"173\" \/><\/a><\/p>\n<p>If the log file doesn&#8217;t help, please follow the steps below to troubleshoot the issue further:<\/p>\n<ol>\n<li>Enable the <strong>XSCT Diagnostics Mode<\/strong> under <strong>Tools-&gt;Options-&gt;VisualGDB-&gt;Xilinx<\/strong>:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/settings-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7445\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/settings-1.png\" alt=\"\" width=\"744\" height=\"434\" \/><\/a><\/li>\n<li>Try creating a new project, or otherwise reproducing the XSCT failure. Once the diagnostic mode is enabled, instead of launching XSCT in the background, VisualGDB will launch it in a separate command prompt window and ask you to enter the &#8220;xsdbserver start&#8221; command:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/xsct.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7442\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/xsct.png\" alt=\"\" width=\"978\" height=\"511\" \/><\/a><\/li>\n<li>Run the command shown by VisualGDB (it will be copied to the clipboard) and press OK <strong>after<\/strong> you see the &#8220;done-&lt;GUID&gt;&#8221; line:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/xsct2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7443\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/xsct2.png\" alt=\"\" width=\"979\" height=\"512\" \/><\/a><\/li>\n<li>VisualGDB will now connect to XSCT and query various information from it:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/progress.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7444\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/progress.png\" alt=\"\" width=\"979\" height=\"512\" \/><\/a><\/li>\n<li>If the XSCT prompt (<strong>xsct%<\/strong>) does not appear, the XSCT process might be exiting immediately after being launched. If this is the case, try running it again from the command prompt window started by VisualGDB. The typical command is<strong> &lt;Vitis directory&gt;\\bin\\xsct.bat -n -interactive<\/strong>:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/run.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7447\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/run.png\" alt=\"\" width=\"979\" height=\"512\" \/><\/a><\/li>\n<li>If XSCT exits again, try running it from another command prompt window. If it works differently, try running the &#8220;set&#8221; command from both command prompt windows and comparing the output. You can then try adjusting the variables in the window launched by VisualGDB by running the &#8220;set&#8221; command, e.g. &#8220;<strong>set PATH=C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\EXTRAS<\/strong>&#8221; and then running <strong>xsct.bat<\/strong> again.<\/li>\n<li>If changing the PATH variable fixes XSCT issues, you can configure VisualGDB to set it to a custom value via <strong>Tools-&gt;Options-&gt;VisualGDB-&gt;Xilinx-&gt;XSCT Path Override<\/strong>:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/path.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7448\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2021\/08\/path.png\" alt=\"\" width=\"744\" height=\"434\" \/><\/a>If the issue is caused by another variable, you can hardcode it inside <strong>xsct.bat<\/strong>.<br \/>\nNote that normally VisualGDB resets XSCT PATH to &#8220;<strong>%WINDIR%\\system32;%WINDIR%<\/strong>&#8221; to avoid conflicts with other tools. However, in some cases, this still doesn&#8217;t work, and the correct PATH needs to be found experimentally.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>This page provides instructions for troubleshooting issues with the Xilinx XSCT tool and VisualGDB. XSCT is a part of the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202],"tags":[191,228,235],"_links":{"self":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/7440"}],"collection":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/comments?post=7440"}],"version-history":[{"count":1,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/7440\/revisions"}],"predecessor-version":[{"id":7449,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/7440\/revisions\/7449"}],"wp:attachment":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/media?parent=7440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/categories?post=7440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/tags?post=7440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}