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.

CCS/CCSTUDIO: CCS7 force build version every time

Part Number: CCSTUDIO


Tool/software: Code Composer Studio

I try to build the version.c file every time the project is build.  I follow example from forums for CCS4, but it did not work.

I add the following into project "CCS Build", "Pre-build steps"

${CCS_UTILS_DIR}/bin/gmake -k -j  4  /NMD_Bringup_app/Application/Version.c

makefile:243: recipe for target 'pre-build' failed
gmake[2]: *** No rule to make target '/NMD_Bringup_app/Application/Version.c'.
gmake[1]: [pre-build] Error 2 (ignored)

Thanks for advice

  • Dilbert,

    I played around a bit and I was able to get this to work.
    ${CG_TOOL_CL} -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me ${PROJECT_ROOT}/john.c

    Basically it is ${CG_TOOL_CL} <options for compiler> <filename>

    For the filename I used the variable for the project location as my file is in the root of the project but you could adjust that as needed. In your case I believe this would be ${PROJECT_ROOT}/Application/Version.c

    Don't forget to add include paths to the options.

    Regards,
    John
  • Hi John,
    I got it working as suggested

    "${CCS_UTILS_DIR}\bin\gmake" -k -j 4 -B Application/Version.obj -O

    However, even when I click "debug", it will also go through the Build process. That's mean it does twice now.
    Any way I could skip the Build check before "Debug" ?

    Thanks,
    Dilbert