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/IWR1642BOOST: Getting pre-build Error While Compiling a Project

Part Number: IWR1642BOOST

Tool/software: Code Composer Studio

Hi,

I am getting a prebuild error while rebuilding a project. But at the end of rebuilding it is not showing any error. I am a little confused about this.

Here is a pre-build error 

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
 
rm -f C:/Users/LaxmiKant/Google Drive/CCSv7/pplcount_16xx_mss/xwr16xx_pplcount_mss.bin
makefile:193: recipe for target 'pre-build' failed
process_begin: CreateProcess(NULL, rm -f C:/Users/LaxmiKant/Google Drive/CCSv7/pplcount_16xx_mss/xwr16xx_pplcount_mss.bin, ...) failed.
make (e=2): The system cannot find the file specified.

gmake[1]: [pre-build] Error 2 (ignored)

What could be the possible reason?

  • LAXMI KANT TIWARI said:
    I am getting a prebuild error while rebuilding a project

    It looks like the pre-build step for the project is trying to delete the existing file xwr16xx_pplcount_mss.bin by using the Linux command rm -f, whereas the project is using CCS under Windows and the rm command doesn't exist on Windows. Therefore, in the pre-build command try replacing "rm -f" with the equivalent windows command of "del /f".

  • Hi thanks for reply.
    How can I change it to "del /f"? Please suggest.
  • Update:
    I am using CCSv7.4 on Windows 10.
  • LAXMI KANT TIWARI said:
    How can I change it to "del /f"? Please suggest.

    If you right-click on the project in the CCS Project Explorer to get the project properties under CCS Build -> Steps you can edit the command for the "Pre-build steps":

  • Hi,

    Thanks for the simple explanation. I did it and now both error has gone and one new error came. 

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
     
    del /f C:/Users/LaxmiKant/Documents/CCSv7/pplcount_16xx_dss/xwr16xx_pplcount_dss.bin
    makefile:199: recipe for target 'pre-build' failed
    Invalid switch - "Users".
    gmake[1]: [pre-build] Error 1 (ignored)

  • LAXMI KANT TIWARI said:
    I did it and now both error has gone and one new error came. 

    From the error, the problem is that the pathname generated by Eclipse isn't quoted and contains forward slashes which confuses the Window command interpreter.

    Try setting the pre-build step to the following:

    ${CG_CLEAN_CMD} "${PROJECT_ROOT}/xwr16xx_pplcount_mss.bin"

    The ${CG_CLEAN_CMD} is an attempt to get a pre-build command which will work under Linux and Windows. I am running CCS under Linux under the moment, and haven't tried the command under Windows yet.