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.

TMDSEMU200-U: TMDSEMU200-U

Part Number: TMDSEMU200-U

Hello, I am trying to call error level flag on my .bat file to pause if an error occured, but it doesn't execute the error level..

Here my code

cd C:\ti\ccs1230\ccs\ccs_base\DebugServer\bin

dslite flash -c C:\Users\julioam\ti\CCSTargetConfigurations\Digi1.ccxml -e -f -v "C:\Users\julioam\ti\CCSTargetConfigurations\M1166001_V33607.out" "C:\Users\julioam\ti\CCSTargetConfigurations\M1158001_V34909.out"

if "%errorlevel%" ==  "1" goto next
else(
echo Operation Failed
pause)

:next
dslite flash -c C:\Users\julioam\ti\CCSTargetConfigurations\Digi2.ccxml -e -f -v "C:\Users\julioam\ti\CCSTargetConfigurations\M1166001_V33607.out" "C:\Users\julioam\ti\CCSTargetConfigurations\M1158001_V34909.out"
if "%errorlevel%" == "1" goto end
else(
echo Operation Failed
pause)

:end
exit

  • Hello Julio,

    Are you using some tool or software provided by TI or is this your own custom command line instructions/code that you're using? If it's the latter, you will have to try to ask on a different type of forum, as the E2E forum is meant for specifically TI-related questions.

    Best regards,

    Omer Amir

  • Hello Omer, can you provide the link where I can post my question, this is  a .bat file that I created with the documentation: UniFlash Quick Start Guide (ti.com).

  • Hello,

    Please note that the error level will be set to "0" if the operation is successful. Hence I assume you want to check fora return value of '0' instead of '1'.

    Your bat file also has some incorrect syntax.

    Try:

    cd C:\ti\ccs1230\ccs\ccs_base\DebugServer\bin

    dslite flash -c C:\Users\julioam\ti\CCSTargetConfigurations\Digi1.ccxml -e -f -v "C:\Users\julioam\ti\CCSTargetConfigurations\M1166001_V33607.out" "C:\Users\julioam\ti\CCSTargetConfigurations\M1158001_V34909.out"

    if "%errorlevel%" == "0" (
    goto next
    ) else (
    echo Operation Failed
    )
    pause

    :next
    dslite flash -c C:\Users\julioam\ti\CCSTargetConfigurations\Digi2.ccxml -e -f -v "C:\Users\julioam\ti\CCSTargetConfigurations\M1166001_V33607.out" "C:\Users\julioam\ti\CCSTargetConfigurations\M1158001_V34909.out"

    if "%errorlevel%" == "0" (
    goto end
    ) else (
    echo Operation Failed
    )
    pause

    :end
    REM exit