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.

Cannot run program "DEL": Launching failed - CCSv6.1

Other Parts Discussed in Thread: ENERGIA

I've been using CCSv6.1 for a couple months now and I've never run into this issue until today. All of a sudden I get an error when trying to build my project. Also, it seems to only be with a specific project because it builds fine on others. I figured if it was something in my code it would at least get passed the build phase. 

Cannot run program "DEL": Launching failed

I don't believe there is an actual DEL.exe, I think all exists in COMMON.COM or something. Why would this all of sudden happen? 

  • DEL is run if you are doing a clean. CCS will remove the generated files prior to running the rest of the build. The command that is run varies by OS but on Windows this will be DEL.

    For example if I run right click on a simple project I have in my workspace and select Clean project I will see the following executed:

    **** Clean-only build of configuration F2806x_FLASH for project BlinkingLED ****

    "C:\\ti\\ccs610\\ccsv6\\utils\\bin\\gmake" -k clean
    DEL /F "BlinkingLED.out"
    DEL /F "BlinkingLED-DevInit_F2806x.pp" "BlinkingLED-Main.pp" "F2806x_GlobalVariableDefs.pp"
    DEL /F "BlinkingLED-DevInit_F2806x.obj" "BlinkingLED-Main.obj" "F2806x_CodeStartBranch.obj" "F2806x_GlobalVariableDefs.obj"
    DEL /F "F2806x_CodeStartBranch.pp"
    'Finished clean'
    ' '

    **** Build Finished ****



    DEL is a valid command from the windows shell. What happens if you go to the command prompt window and type DEL? It should say "The syntax of the command is incorrect." If you don't get that then something seems to have changed on your machine so that this is no longer a valid command.

    Regards,
    John
  • I get the same result as you when I do a Clean on another project.

    I get the result I expect from trying DEL in the command prompt.

    I try to do the Clean on my main project and it does nothing. I would expect it to at least say there's nothing to clean. So I do a build next and I get this:

  • That is really odd that the command works for some projects but not others. Any chance that I could get the project (via a private conversation) to see if I can make it do the same here? I can send you a friend request so that we can start a private conversation so that you don't have to post the project in the forums.

    In the meantime I will ask around to see if others have some ideas on what could be causing this.

    John
  • So here's something interesting. This problem only seemed to happen when I was "refining" my code, i.e. adding comments, improving data types, etc. So I figured I revert back to known "working" code and that built just fine. *mind blown*
  • Did you revert the whole project or just some source files? If it was just a few source files then my mind is going to join yours. If it was the project then I wonder if something got corrupted on check-in.
  • I literally had my main .ino file open in CCS, selected all and deleted. Then I opened the old code in a text editor, copy and pasted into the .ino in the project and it built fine. Saaaaaay whhhhhhatttt?

    I'm using WinMerge right now to see if there's something obvious in the code.

  • I fixed it but I have no idea why it was doing what it was doing. I started taking out lines of code and I noticed in one of my concatenated strings, I missed a double quote before a terminating \.

    request.body = "{\"Key\":\"" + myValues.Key + \"}";

    This should be:

    request.body = "{\"Key\":\"" + myValues.Key + "\"}";

    And that fixed this issue. Wait. What? Why? Shouldn't this just be an error AFTER this is built?
  • No clue why that would impact a clean.
  • Craig,

    Could you send us your <workspace>/.metadata/.log file?  

    It is possible that an uncaught exception was triggered by that missing double quote before or during makefile generation.  And so the makefile wasn't generated properly, which could cause the 'clean' target to fail in a strange way.

    - Baltasar

  • , I will send you a PM. Accept my friend request?

  • I get the same problem with Energia. The  "\"  symbol causes this error.

  • FYI - this problem has now been addressed for the upcoming CCS v6.1.3:
    SDSCM00052715 Energia sketch imported into CCS generates build error "Un-terminated string literal...

    - Baltasar