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.

MSP430FR5969: Issues with Command line build

Part Number: MSP430FR5969
Other Parts Discussed in Thread: CCSTUDIO

I am trying to automate the build and flash of my project using command line as described here:

https://software-dl.ti.com/ccs/esd/documents/ccs_projects-command-line.html

I have the following issue:

It builds sometimes and sometimes it gives me the error:

The folder "<My Workspace>" application com.ti.ccstudio.apps.projectBuild -ccs.projects <MyProject> -ccs.configuration Debug\.metadata is read-only

I am using the following command (CCS not open):

eclipsec -noSplash -data "<My Workspace>" -application com.ti.ccstudio.apps.projectBuild -ccs.projects <My Project> -ccs.configuration Debug

For the same project I can build it with CCS without any issues. I am using CCS  Version: 10.4.0.00006

I cannot reproduce this issue consistently. Rebooting the computer does not help

  • Hello,

    After speaking with a colleague, it seems your issue is related to the CLI not being able to update the output "Debug" folder. Some things to check/try:

    • Check that no files are open by other programs such as editors
    • Confirm project has a "debug" configuration
    • Double check what happens without the -ccs.configuration parameter
  • I rebooted the computer (Windows 10). Checked the task manager to see if there were any programs running - none. Opened command prompt and typed in  

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "<My Workspace>" -application com.ti.ccstudio.apps.projectBuild -ccs.projects <My Project> -ccs.clean

    got the same error. I tried it with these commands as well

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "<My Workspace>" -application com.ti.ccstudio.apps.projectBuild -ccs.projects <My Project>  -ccs.configuration Debug

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "<My Workspace>" -application com.ti.ccstudio.apps.projectBuild -ccs.projects <My Project>  

    Everytime I get "Debug\.metadata is read-only". I have checked to read if the .metadata is readonly and the check box has a square dot in it and not a check mark. 

    I opened a command prompt as administrator as ran the following command:

    >attrib -r -s .metadata

    the result remains the same. The I ran CCS and was able to build the project

  • Hello,

    I'll be looping in some of our CCS experts to see if they can help you further on this. 

  • Hello

    "Debug\.metadata is read-only

    Can you provide what the path is for both your workspace and project folders?

    Feel free to change some of the folder names for privacy purposes. However I need more details than just <My Workspace> and <My Project>.

    thanks

    ki

  • C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "C:\Users\atma\workspace_v10\" -application com.ti.ccstudio.apps.projectBuild -ccs.projects myProj -ccs.clean

    The project location is

    C:\Users\atma\workspace_v10\myProj

  • Ah that looks ok. 

    I think I misunderstood the original error message.

    The error is clearly some permissions issue with your workspace folder.

    Can you try using the command line to import the project to a new empty workspace folder (have the command create the folder) and then afterwards try to build the project in the new workspace folder?

    example:

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "<new workspace location>" -application com.ti.ccstudio.apps.projectImport -ccs.location <full path to myProj project folder> -ccs.copyIntoWorkspace

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "<new workspace location>" -application com.ti.ccstudio.apps.projectBuild -ccs.projects myProj -ccs.clean

    Thanks

    ki

  • This command :

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data ""C:\Users\atma\temp_WS" -application com.ti.ccstudio.apps.projectImport -ccs.location "C:\Users\atma\workspace_v10\myProj" -ccs.copyIntoWorkspace

    results in the same "Debug\.metadata is read-only" error

    I copied my project to the desktop and ran the command 

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data ""C:\Users\atma\temp_WS" -application com.ti.ccstudio.apps.projectImport -ccs.location "C:\Users\atma\Desktop\myProj" -ccs.copyIntoWorkspace

    I get this error:

    There is no .metadata folder in either locations

  • .metadata would be a folder inside your workspace folder.

    Can you specify a workspace folder outside your user folder? Like C:\Temp\temp_WS

  • Just tried it

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data "C:\Temp\tiProj\" -application com.ti.ccstudio.apps.projectImport -ccs.location "C:\Users\atma\workspace_v10\myProj" -ccs.copyIntoWorkspace

    Same error. Probably there is some issue with the wrokspace_v10 folder? 

  • C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data ""C:\Users\atma\temp_WS" -application com.ti.ccstudio.apps.projectImport -ccs.location "C:\Users\atma\workspace_v10\myProj" -ccs.copyIntoWorkspace

    results in the same "Debug\.metadata is read-only" error

    I copied my project to the desktop and ran the command 

    C:\ti\ccs1040\ccs\eclipse\eclipsec -noSplash -data ""C:\Users\atma\temp_WS" -application com.ti.ccstudio.apps.projectImport -ccs.location "C:\Users\atma\Desktop\myProj" -ccs.copyIntoWorkspace

    I noticed that you have some typos in the command.

    You have TWO quotes in front of the workspace path:

    -data ""C:\Users\atma\temp_WS"

    Please remove one:

    -data "C:\Users\atma\temp_WS"

  • I corrected it but it did not fix the problem though

  • -data "C:\Temp\tiProj\"

    remove the last backslash:

    -data "C:\Temp\tiProj"

  • I created a new folder called myProj in Temp. I used CCS to import my project into that folder. Closed CCS and then using command line I am able to clean, build and flash. I will let you know if I run into problems in future. My guess is esclipsec does not like long path names 

  • The CCS CLI project commands are very senstive to typos and gives misleading error messages. I was able to reproduce your errors when I had the same typos for the workspace path (double quotes or the extra backslash). Hence it is very important to pay close attention that what you type for the command is correct.

    Thanks

    ki

**Attention** This is a public forum