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.

TMS320F280049C: errorlevel doesn't execute the echos cases

Part Number: TMS320F280049C

Hello, I am trying to get the error messages and exit code with the next batch file but do nothing.  what's wrong?

echo off

dslite.bat -c user_files/configs/f280049c.ccxml -l user_files/settings/generated.ufsettings -v user_files/images/ML_DPC_CI_W6.hex

if ERRORLEVEL 1 goto errorOccurred

echo TMS320F28049C Successfully Verified!

goto done

:errorOccurred
echo Programming TMS320F28049C FAILED!
exit -1
pause

:done
exit 0
pause