echo off cls echo *** Building DSP... echo. set DSPDIR=..\common\DSP set CCS_DIR="\ti\ccsv6\eclipse" set ERRORFLAG=0 echo. echo Building Debug version of 28377S_MCB... %CCS_DIR%\eclipsec -noSplash -data %DSPDIR% -application com.ti.ccstudio.apps.projectBuild -ccs.projects 28377S_MCB -ccs.buildType full -ccs.autoOpen -ccs.configuration "Debug Flash" IF %ERRORLEVEL% NEQ 0 ( set ERRORFLAG=%ERRORLEVEL% echo ****************************************************************** echo * Debug build return error code of %ERRORLEVEL% echo ****************************************************************** ) ELSE ( mkdir ..\..\build\BOARDS copy "%DSPDIR%\DSP\28377S_MCB\Debug\*.out" ..\..\build\BOARDS\. echo Completed without any issues. ) echo. echo Building Release version of 28377S_MCB... %CCS_DIR%\eclipsec -noSplash -data %DSPDIR% -application com.ti.ccstudio.apps.projectBuild -ccs.projects 28377S_MCB -ccs.buildType full -ccs.autoOpen -ccs.configuration Release IF %ERRORLEVEL% NEQ 0 ( set ERRORFLAG=%ERRORLEVEL% echo ****************************************************************** echo * Release build return error code of %ERRORLEVEL% echo ****************************************************************** ) ELSE ( mkdir ..\..\build\BOARDS copy "%DSPDIR%\DSP\28377S_MCB\Release\*.out" ..\..\build\BOARDS\. echo Completed without any issues. ) REM ---------------------------------------------------------------------------------- REM Notes (for eclipsec cmds) REM ---------------------------------------------------------------------------------- REM REM Usage: REM eclipsec -noSplash -data "" REM -application com.ti.ccstudio.apps.projectBuild REM (-ccs.projects [ ]* | -ccs.workspace) [] REM REM where options include: REM -ccs.configuration REM The build-configuration name to build (optional). REM Defaults to active build-configuration. REM REM -ccs.projects [ ]* REM Space-separated list of projects to build. REM REM -ccs.workspace REM Build entire workspace. REM REM -ccs.buildType (incremental | full | clean) REM The type of build to perform (optional). REM Defaults to 'incremental'. REM REM -ccs.autoOpen REM Automatically open any closed projects (optional). REM REM -ccs.args REM File containing any extra arguments (optional). REM REM -ccs.help REM Print this help message. :END echo Return code = %ERRORFLAG% exit /b %ERRORFLAG%