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.

CCS4 and Multiple Project Revisions

I am just starting to learn how to use CCS4 and have spent two hours or so reading many posts and guides from the wiki but can not find a simple explanation on how to approach multiple revisions of the same CCS4 project.  I am new to Eclipse and CCS4 coming from CCSV3.1 so apologies for what seems like a trivial question?

To explain further:

I start with PROJECT1_VERSION1 in WORKSPACE1 and develop as required.

I now want to leave PROJECT1_VERSION1 as a baseline but continue development starting with a copy of PROJECT1_VERSION1.

What approach should I take to create PROJECT1_VERSION2 and where should it go (WORKSPACE1 or WORKSPACE2)?

I do not want to start off with a directory/workspace scheme that I will live to regret!

Regards, Andrew.

PS - assume a simple project - i.e. no linked files.

 

  • I would suggest copying and importing that project into a new workspace. That is the best bet

    Thanks

    ki

  • Thanks for the reply,

    How do I create a new workspace?

  • Inside CCS, you can use the menu: 'File->Switch Workspace' option. This will prompt you for a new workspace folder. You can then specify a new folder for your workspace.

    ki

  • Thanks Ki,

    How do I copy the project?

    If from CCSV4 then how?

    Regards, Andrew

  • You can just physically copy the project folder into the new workspace and then import it into your workspace. 

    Similar to what is described in slide 16 of http://processors.wiki.ti.com/images/0/09/CCSv4_Tips_%26_Tricks.pdf

    Thanks

    ki

  • Thanks Ki,

    This will result in hundreds of workspaces each containing a single code revision.  Can you please confirm that this is the recommended approach?

    Regards, Andrew

  • Why not use version control software? Am I missing something?

  • Much of my work is carried out on stand-alone computers where version control software does not, from experience, make life any easier.  It also makes, transport, backups and then synchronising of backups awkward.

    I am trying to understand if it is possible (and a good idea) to place multiple revisions within one workspace, or a single revision in each workspace (as you suggest) or to carry out version control some other way and copy and paste as required.

    Regards, Andrew

  • The reason why I suggested multiple workspaces is because I don't think you can have projects of the same name in the same workspace. Simply renaming the project folder does not help, it doesn't change the actual project name (which is contained inside the generated project files). If you don't need to work on the various revisions/copies at the same time, you can simply have all your revisions in the same workspace, but only import the one you are interested in working on. Then when you are done with that particular revision, you can remove the reference from the workspace (but the project folder will still physically remain in the workspace folder) and import another revision that you now wish to work with. And you can continue to swap in/out various copies of the project that way. Hopefully that made sense...

  • Ki-Soo Lee said:
    you can simply have all your revisions in the same workspace

    Just want to clarify that what I meant is "workspace folder"

    ki

  • Thanks Ki,

    I think I now understand.  I can have all my revisions in separate physical folders in a single workspace folder.  Then, to swap revisions, I can delete the current one from the CCSV4 workspace and import the one I do want.

    I'll give this a try.

    As you mentioned version control software, how does CCSV4 support this?

    Andrew

  • A.Wilson said:
    I think I now understand.  I can have all my revisions in separate physical folders in a single workspace folder.  Then, to swap revisions, I can delete the current one from the CCSV4 workspace and import the one I do want.

    Right. When you delete the project reference, make sure you select the option to NOT delete the actual physical folder in the workspace. That way it will still be there when you want to reimport it again

    A.Wilson said:
    As you mentioned version control software, how does CCSV4 support this?

    There are many version control plug-ins for Eclipse that CCS can leverage (SourceSafe, SVN, ClearCase, etc). CVS is already supported by default.

    ki

  • If you are dealing with simple projects, where all source files are contained in or "below" root directory of the project, then one option might be to just copy the project directly in CCS project view. i.e. select the project, right click and choose copy. Then right click again in project view and select paste. You will be asked to specify new projects name(I think it defaults to "Copy of projectName:). Eclipse does not allow to have two projects with the same name as Ki mentioned. However, just to re-iterate this will work for simple projects where all source files are contained at or below root directory of the project. This process does a simple file copy and adjust internal project names, thus  this process will not work for projects that have been made portable through use of macros.ini file. (more details on this topic are at link below). 

     

    http://processors.wiki.ti.com/index.php/Portable_Projects#Linking_Files

     

     

    Martin

     

  • A.Wilson,

    MartinS said:
    If you are dealing with simple projects, where all source files are contained in or "below" root directory of the project, then one option might be to just copy the project directly in CCS project view. i.e. select the project, right click and choose copy. Then right click again in project view and select paste. You will be asked to specify new projects name(I think it defaults to "Copy of projectName:).

    Martin's suggestion is much better than mine. I would definitely recommend using this technique than the one I described. It works quite nicely.

    ki

  • Ki/Martin

    Thank you for the help, I'll try this out.

    Regards, Andrew

  • I want to knoe about the description of the menu  options in the ccs4. Please provide the user manual of the ccs4.

    1) I want to use the CVS in ccs$. How to use it?

    2) I want to know about the TEAM option at Right click of the  Project