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.

CCS3.3 error Cannot open command file 'Debug.lkf': Invalid argument

I had a Windows XP, CCS 3.3 setup that worked.

I now have a new Win7 machine, so I installed WinXP Mode and followed the same procedure to install CCS3.3

When I load in my project and attempt a rebuild all, I get several of these kind of errors:

[lmx9838_cache.c] "C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.1.18\bin\cl6x" -g -pdr -pdv -pdsw225 -fr"Z:/Projects/FFL_NEW/trunk/c6745/drv/Debug" -i"Z:/Projects/FFL_NEW/trunk/c6745/drv/../bsl/fflc6x" -i"Z:/Projects/FFL_NEW/trunk/c6745/drv/../../platform/include" -d"_DEBUG" -mv6740 -@"Debug.lkf" "lmx9838_cache.c"
>> ERROR: Cannot open command file 'Debug.lkf': Invalid argument

It doesn't happen everywhere Debug.lkf is referenced, only for some.

A Google search didn't show anything...does anyone know what is going on?

  • It sounds like some permission problem. Debug.lkf is a file generated by CCS, which contains linker options to be passed to the linker. If it cannot open the file, it might be some access issue. I see you are referencing some Z: drive. Is that a shared netowrk drive?

    ki

  • Thanks for the response.

    Yes, it's a mounted drive.  I'm running CCS3.3 inside of Windows XP Mode, but the source files are on my Win7 hard drive.  So within the XP vm, I mounted my Win7 hard drive as a Z drive.  Is there a way to set the permissions properly for the mounted drive?

  • Could you copy the files to your VM and see if the issue goes away? I would like to see if the mounted drive is indeed the issue.

  • That was the next thing I tried and it works!

    I might have to live with having source files duplicated in the vm...

    I tried using the attrib command from the command prompt from XP (http://support.microsoft.com/kb/326549) and removing read-only from the source files on the Win7 mounted drive, but afterwards the compile still failed with the same errors.