I am developing a C# application to load a TI Dsp using the Uniflash CLI. A package was created using the UNIFLASH tool and the batch file was invoked within the C# application.
Problem: Execution appears to stop when configuring the Debugger. Last return from CLI:
Configuring Debugger (may take a few minutes on first launch)...
When running the same batch file from a Windows console, it completes as expected. Is there an example CLI UNIFLASH dialog or a known solution to this problem?
c# snippit:
//Sets directory to application folder
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.Arguments = "/C cd " + folder;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = false;
process.Start();
process.WaitForExit();
process.Close();
//First UNIFLASH batch file
process.StartInfo.Arguments = "/C " + tbCmd.Text;
process.Start();
rtnval = await process.StandardOutput.ReadToEndAsync();