This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Uniflash Continuous Mode command line support

Other Parts Discussed in Thread: UNIFLASH

Hi,

I am using an XDS220 to program an infineon XC28336 in production.  It is taking a long time.  It appears to take 6 seconds every time I say go just to start up- that is to say, it configures the programmer every time.  I see in the 2.2 release notes that Continuous mode for command line was added.  I don't see any documentation for this feature, but it sounds vaugely like something that I might want.

Does anyone know about this feature, or know how I might elimintate some of these 6 seconds when I program the same file again and again.

Patrick

  • Patrick,

    You can use this mode like this:

    uniflash -mode repeat [CONFIG] [OPERATION]

    The mode of operation will be different, give it a try and see if this is what you are looking for. 

    The details are in uniflashv3\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_ReadMe.txt; the following is an excerpt from the document:

    [UTILITY]
    Provides various utilities to use during the command line execution.

    "-log" givens the ability to specify a file to log information to for the execution of the application.
    If no log option is specified, the logging information will appear only in the console.

    "-verbose" sets the verbose output level. Defaults to 1 if not set.

    "-mode" puts the tool into various modes, modifying the basic behaviour of the tool

    [Supported Modes]
    "repeat" -> after the [Operation] paramters are finished executing, on user input, it executes the same operation again. This allows users to switch out the device with another (of the same) device and execute the same command without needing the tool to reconfigure the application. Input "exit" to end the repeat mode.

    Regards,

    Victor

  • Hi Victor,

    Thanks for highlighting that.  Would you have any C code examples of how to embed this functionality into my test exec?  It would seem that I need to redirect stdin, stdout & stderr and have not done that before in windows.

    Thanks

    Patrick

  • I am not exactly sure what you are trying to do, but it sounds like you want to execute a command to run uniflash.bat with arguments in a C program? Either way for generic programming questions your best bet is stackoverflow.

  • I have a test exe that programs, then tests our 6 DUTs in parallel.  I would like to avoid the 6 second setup time for the XDS220 every time I program a board.  Continuous mode available in Uniflash 2.2 would seem to do that.  I was spawning 6 processes & then looking at the output files.  The new continuous mode requires me to interact (ie.  read a done & type a go for the next one).

    I was wondering if you have any example code of how to use this functionality in an external program.  I don't have an operator there to hit go 6 times in 6 different windows.

    An easier method would be a "go again" option.  That would just use the previous configuration and allow me to use the program non-interactively.  I didn't see that any such option exists. 

    -Patrick

  • Patrick,

    Okay, I think I know what you are saying now. There is no readily available command options to do this like you have described, but if you are using system programming languages like java, you can get the process input and output streams and basically monitor the output and send input keystrokes when time is right.

    for example: http://stackoverflow.com/questions/11573457/java-processbuilder-input-output-stream

    I believe a few scripting languages let you do similar things. 

    Also you can use DSS scripting interface with UniFlash, in which case you would have full control:

    http://processors.wiki.ti.com/index.php/Debug_Server_Scripting/Step_By_Step

    Victor