Other Parts Discussed in Thread: CCSTUDIO, SYSBIOS, AFE031
I have been using batch scripts to do nightly builds with CCSv5.1 for some time. Most work very predictably. This one baffles me.
From my log:
...
c:\ti\ccsv5\eclipse\eclipsec.exe -nosplash -data C:\Users\x0183614\workspace_v5_g3dc_u -application com.ti.ccstudio.apps.projectImport -ccs.location \dspsrdc_csa\emeter\dsp_c28x\PLC_AppBoot
--------------------------------------------------------------------------------
Importing project from '/dspsrdc_csa/emeter/dsp_c28x/PLC_AppBoot'...
Done!
c:\ti\ccsv5\eclipse\eclipsec.exe -nosplash -data C:\Users\x0183614\workspace_v5_g3dc_u -application com.ti.ccstudio.apps.projectImport -ccs.location \dspsrdc_csa\emeter\dsp_c28x\PLC_dfu
--------------------------------------------------------------------------------
Importing project from '/dspsrdc_csa/emeter/dsp_c28x/PLC_dfu'...
Done!
call "..\script\myclean.bat"
c:\ti\ccsv5\eclipse\eclipsec.exe -nosplash -application com.ti.ccstudio.apps.projectBuild -data C:\Users\x0183614\workspace_v5_g3dc_u -ccs.projects
sysbios_g3_plc_dc_F2806x -ccs.configuration Release_AFE031
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CCS headless build starting... [Wed Feb 20 17:54:32 CST 2013]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
================================================================================
Pre processing...
================================================================================
Building...
call "..\script\myclean.bat"
c:\ti\ccsv5\eclipse\eclipsec.exe -nosplash -application com.ti.ccstudio.apps.projectBuild -data C:\Users\x0183614\workspace_v5_g3dc_u -ccs.projects sysbios_g3_plc_dc_F2806x -ccs.configuration Release_AFE031_CRC16_MSB
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CCS headless build starting... [Wed Feb 20 17:55:24 CST 2013]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
================================================================================
Pre processing...
================================================================================
Building...
**** Clean-only build of configuration Debug for project crc_vcu ****
C:\ti\ccsv5\utils\bin\gmake -k clean
DEL /F "U:\dspsrdc_csa\emeter\dsp_c28x\Lib\Debug\crc_vcu.lib"
Could Not Find U:\dspsrdc_csa\emeter\dsp_c28x\Lib\Debug\crc_vcu.lib
DEL /F "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16.pp" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc32.pp" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc8.pp"
Could Not Find C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16.pp
DEL /F "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16.obj" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16_vcu.obj" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc32.obj" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc32_vcu.obj" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc8.obj" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc8_vcu.obj"
Could Not Find C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16.obj
DEL /F "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16_vcu.pp" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc32_vcu.pp" "C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc8_vcu.pp"
Could Not Find C:\Users\x0183614\workspace_v5_g3dc_u\crc_vcu\Debug\crc16_vcu.pp
'Finished clean'
' '
...
Here is the batch file.
set BLDCMD=-application com.ti.ccstudio.apps.projectBuild
set IMPCMD=-application com.ti.ccstudio.apps.projectImport -ccs.location
set ECLIPSEC=c:\ti\ccsv5\eclipse\eclipsec.exe -nosplash
set WS=%USERPROFILE%\workspace_v5_g3dc_u
if exist %WS% rmdir /s /q %WS%
set WS=-data %WS%
...
(lots of imports and there are no missing imports)
...
echo %ECLIPSEC% %WS% %IMPCMD% %ROOT%\PLC_dfu | %TEE% -a %logfile%
%ECLIPSEC% %WS% %IMPCMD% %ROOT%\PLC_dfu | %TEE% -a %logfile%
rem starting builds
echo starting builds
echo call %CLEAN% | %TEE% -a %logfile%
call %CLEAN% >nul 2>nul
echo %ECLIPSEC% %BLDCMD% %WS% -ccs.projects sysbios_g3_plc_dc_F2806x -ccs.configuration Release_AFE031 | %CNV% | %TEE% -a %logfile%
%ECLIPSEC% %BLDCMD% %WS% -ccs.projects sysbios_g3_plc_dc_F2806x -ccs.configuration Release_AFE031 | %CNV% | %TEE% -a %logfile%
dir \dspsrdc_csa\emeter\dsp_c28x\G3\proj\G3_mac\Release_F2806x\sysbios_g3_plc_dc_F2806x_AFE031_CRC16_MSB.out | %TEE% -a %logfile%
echo call %CLEAN% | %TEE% -a %logfile%
call %CLEAN% >nul 2>nul
echo %ECLIPSEC% %BLDCMD% %WS% -ccs.projects sysbios_g3_plc_dc_F2806x -ccs.configuration Release_AFE031_CRC16_MSB | %CNV% | %TEE% -a %logfile%
%ECLIPSEC% %BLDCMD% %WS% -ccs.projects sysbios_g3_plc_dc_F2806x -ccs.configuration Release_AFE031_CRC16_MSB | %CNV% | %TEE% -a %logfile%
dir \dspsrdc_csa\emeter\dsp_c28x\G3\proj\G3_mac\Release_F2806x\sysbios_g3_plc_dc_F2806x_AFE031_CRC16_MSB.out | %TEE% -a %logfile%
The first build does nothing in batch mode. It works fine if I use the GUI.
I do 40 or so builds a night and this is the only one that does this.
Any ideas?