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.

CCS/TMDSEMU110-U: UNIFLASH V4 command line error -programStatusOutput option

Part Number: TMDSEMU110-U
Other Parts Discussed in Thread: UNIFLASH, TMS320F28377S

Tool/software: Code Composer Studio

Hi Guys,

I tried to run this using with dslite.bat generated using uniflash v4 but it generates an error its it does not recognize the -programStatusOutput, I need it to check the file for pass and fail. Any other options that does the same?

user_files/configs/tms320f28377s.ccxml -l user_files/settings/generated.ufsettings -programStatusOutput ProgResult.txt passed failed -ccxml tms320f28377s.ccxml -b Z1UnlockButton -s Z1CSMPSWD3=46A39CE1 -s Z1CSMPSWD2=BAFA3E10 -s Z1CSMPSWD1=D3976FC5 -s Z1CSMPSWD0=1A67CB04 -s VerifyAfterProgramLoad=2 -e -f "user_files/images/001_Loader.out"

Thanks

  • Nestor,

    The "programStatusOutput" option was a UniFlash v3 CLI option, and is not available in the UniFlash v4 CLI anymore.

    The v4 equivalent option is to echo the “errorlevel” variable after running a UniFlash command. If the value is 0, it succeeded; otherwise it failed.

    For example, on Windows:

    > echo %errorlevel%

    Thanks.
  • Hi Ricky,
    How do I capture the value from the errorlevel and store it in a text file? The reason I'm asking is because I am writing an external production program that will call the command line dslite.bat and then capture the value. Inside the external program I will check if 0 or 1 then proceed to the next testing.
    One more thing, I noticed that when I run my dslite.bat the dos console displays a "success" right at the end of flashing. Similarly if I can only capture this text that would be fine but how?
    I hope to hear from you soon.
    Regards,
    Nestor
  • Nestor Estrada said:
    How do I capture the value from the errorlevel and store it in a text file?

    You can just pipe the output to a file

    > echo %errorlevel% > errorlevel.txt

    Thanks

    ki