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.

Batch File Build Invocation

Other Parts Discussed in Thread: CCSTUDIO

I have a Perl script that, after building, updates a header file with values from the exported map file.  After the Perl script runs, the project needs to be built again, so I have created a batch file to do this.

I tried invoking the batch file from the Build Command, but this always receives an error in Code Composer v4.  So instead, I placed the batch file call as a post build command.  However, since the final instruction of the batch file calls the build routine, this enters an infinite loop ... So I need another way to instantiate this batch call.

This problem aside, I get a gmake error 13 (ignored) on the actual build command in the batch file, which is copied almost directly from the wiki.  Since I cannot post the actual project here, I have created a sample project, Perl script (which basically just touches the file so it will be marked for rebuild), and batch file that is giving this error.  Any help in this area would be much appreciated--I haven't used batch extensively, so it's entirely possible it's just something I'm not understanding about batch calls.  Thanks!

MyProject.zip
  • It's probably worth noting that, if you change the last line of the batch file to the following two lines:

    cd %CCS4_DIR%

    jre\bin\java -jar startup.jar -data %WORKSPACE_DIR% -application com.ti.ccstudio.apps.projectBuild -ccs.projects %PROJECT_NAME% -ccs.configuration %CONFIG_NAME%

    The build will actually start instead of throwing the error 13.  However, it then hangs on "Building..."  If you terminate at this point, it always seems to be stuck on:

    C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** Deleting file `MyCode.out'