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.

what's the reason for "garbage on command line"? in code composer C3x-4x

Other Parts Discussed in Thread: TMS320VC33, CCSTUDIO, TMS320LF2407A

Dear everyone:

          I developed  TMS320VC33 software in C language with the development enviroment C3x4x, versioned 4.10.37.  I installed the code composer with the same version and same steps in two windows xp laptop computers. However, when I built the project in one laptop computer it worked very well. But in the other one  built the same project with the same building options the code composer  always promoted  the error message: "garbage on command line".

          Would you please tell me the error would occour in what conditions? Why did I get the different result from the two computers with the same code composer, the  same C language project and project building options?

          Your soon reply would be so appreciated.

  • Hello,

    Sounds like there is an error in the string of build options that is being passed to the compiler. Maybe there is some corruption in the project file. You may want to recreate the project from scratch.

    Sorry I don't have much more suggestions. CC 4.10 is very old, over 12+ years old. And I don't believe it is supported on Windows XP.

    ki

  • I am having the same issue.  Did the original poster ever resolve the problem?

  • Have you moved the project to another folder?

    Try to move it to "C:\CCStudio_v3.3\MyProjects"    (Modify the path according to your installation)

  • Yes.  Unfortunately, that did not help.  I have also tried to run the build commands directly from the command line instead of using a Makefile.  What is interesting is that if I run command.com instead of cmd.exe, I can get the build command to work.

  • SOLUTION:

    I have found a solution to the problem.  The issue seems to be that there is some part of the compile that uses a temp directory defined in the environment variables as TEMP.  For me, this directory had spaces and that was the issue.  It all relates to what are considered 8.3 "short" file names leftover from the DOS days.  There is a registry setting that can be set to disable the creation of these short file names and only use the long names to speed up Windows.  If this is set, it can cause the error seen.  In order to enable the generation of 8.3 file names you can use the command "fsutil behavior set disable8dot3 0" at the command prompt.  Alternatively, you can set the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation to 0.  Note: You will need to delete and re-create the TEMP environment variable as the 8.3 names are only created during file creation.  The system does not go back and generate them for already created files.

  • Hey Joshua,

    I wanted to know where this TEMP folder would be? I am using a Windows XP system and am using Code Composer Studio v3.1. I am using a TMS320LF2407a eZdsp board. I used the Getting started with C programming application note to create the project. Even though have added all the necessary files I am getting an error "Garbage in the command line". I tried doing the command prompt method that you suggested. So if you can help me with the TEMP folder it would be great.

    thanks

    G.Shiva Ram

  • This folder is an environment variable.  You can get to the environment variables via Start Menu->Settings->Control Panel->System.  Select the "Advanced" tab.  Select the "Environment Variables" button.  For me, I had a user variable for TEMP and one for System.  The system one was fine because it was set to "C:\WINDOWS\TEMP".  However, the user one was set to "C:\Documents and Settings\user\Local Settings\Temp".  Since this had spaces in it, it was throwing the compiler off due to the aforementioned "short" filename issue.  You need to follow the instructions in the above post and then delete this TEMP variable and re-create it.  Just fixing the "short" filename issue will not retroactively change these folders.  You may have to delete and re-create the actual folder as well as the environment variable.

  • Hey Joshua,

    I tried re-creating the TEMP variable for the user as you said. I also deleted the Temp folder from the Local Settings folder and created a new empty folder with same name. But still I am facing the same problem. 

    And to add insult to the injury, now the source code which earlier used to get saved as a copy in the Temp folder is now not getting saved. It is getting saved in the system Temp variable address in the WINDOWS directory though!! 

    I tried re-starting WINDOWS to let the changes 'sink' in. But still no success! 

    :-/ 

    G. Shiva Ram

  • Perhaps you changed the registry setting but didn't restart before the delete and re-create of the TEMP folders?  Both steps may require restarts.  Maybe double-check that the registry setting is still set?  Maybe it is the folder that your source code is in that is causing the issue?  Perhaps it has spaces in the path and requires a re-create?  Perhaps it is some other folder in the build chain?  This method definitely worked for me.  I wish you luck.  Let me know your results.

  • Hey,

    I copied the files into the MyProjects folder of CCStudio and then the garbage error was gone. I tried changing the folder of my earlier folder without spaces and created a new project but yet the error was popping up.

    Now I am having these 3 new errors(related/unrelated I do not know). It is not able to identify any symbol which even I am not sure what is!  I am using the Getting started with programming of LF2407a file(SPRA755A) to create a project. The file names are referred to that file only.

    1. "_c_init0" symbol in "cvectors.obj". This symbol comes in the "cvectors.asm" file that is referred in the document to give vector definitions.

    2. "I$$SAVE", "I$$REST" symbol in "example_c.obj" file. Am not able to locate this at all as the example_c.obj file is created by CCS. 

    Anyone has a clue about this?? 

  • It is good to hear you are making some progress; however, I don't know a whole lot beyond correcting the "garbage on the command line" error that I personally had trouble with.  You may try and start a new topic if someone else doesn't chime in from this point forward regarding your other issues.  Best of luck.

  • So apparently the last set of errors were because I didnt add the rts2xx.lib file in the project. So its all done now. Thanks. :)

  • Awesome.  I'm glad you got it going.