Codewarrior Project Management (DSC56800 8.0 & Microcontrollers 6.0)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Codewarrior Project Management (DSC56800 8.0 & Microcontrollers 6.0)

3,714 Views
v_dave
Contributor IV
Hello All,
 
OK, I have been using Codewarrior for the DSC 568000 8.0 & Microcontroller 6.0 for a few months now.  So far my projects have been standalone and easy to manage.  Now I need to take one of the projects and branch it into a new project. 
 
What is the simplest way to copy a project so that it can be renamed and used as a base to start a new one?
 
Labels (1)
0 Kudos
4 Replies

291 Views
J2MEJediMaster
Specialist I
The following steps should copy a project, while retaining most of the build settings.

1) Make a duplicate of your project directory.
2) Open the duplicate directory's project fle (extension of .mcp) with CodeWarrior.
3) Project | Reset Project Entry Paths
4) Project | Remove Object Code...
5) Project | Re-search for Files
6) Remove any source files from CodeWarrior's Project window, then delete the source files from the directory.
7) Add your new source files to the project directory, then add them to the CodeWarrior Project Window.
8) Go to CodeWarrior's DSP56800 Target panel and change the name of your output binary file, if necessary.
9) Close CodeWarrior and rename the project file.
10) Open the file with CodeWarrior again. You'll see a new subdirectory appear, named after the project file's new name and the word Data added. (That is, newProj.mcp spawns a newProj_Data subdirectory.) This new directory contains most of the settings information. Delete the old project _Data subdirectory.

---Tom


Message Edited by J2MEJediMaster on 2008-01-03 12:52 PM
0 Kudos

291 Views
bob_s
Contributor III
Thanks Tom.  I am also interested in this issue and very new to CW.  Step 6 is not clear to me.  Do I delete all the files from the 'User Modules' subdirectory from the files tab?  What about the files under the 'Generated Code' subdirectory?  What about the files under the 'Doc' subdirectory which have the name of the old 'main' file?

If I'm going to be adding these files (or some of them) back in to the project, what is the point of deleting them from the directory unless CW needs to be started without them (to remove some latent dependencies)?

Thanks,
Bob

0 Kudos

291 Views
J2MEJediMaster
Specialist I
Sorry, I should have been more clear on step 6. You remove your old source files from CodeWarrior's project window. Do not touch anything CodeWarrior generated when you made the project. I'd also recommend that you delete these source files from the project directory so as to avoid confusion with your new source files. Does that make sense?

---Tom
0 Kudos

291 Views
CrasyCat
Specialist III
Just my 2 cents input on this one.
 
With CodfeWarrior for MCU, you can use the Pack and Go wizard to duplicate your project.
  - Open the project in the IDE
  - select "Help" -> "Pack and Go Wizard"
  - Follow instruction on the screen to create a zip file
  - Extract the .zip file onto another directory.
 
You should have a duplicate of the first project
This works fine as long as you are only using relative paths in the project settings.
If you have absolute paths n there you may get into some trouble.
 
I am not familiar with DSC56800 tools so I do not know whether this option is available there too.
If you have an entry Pack and Go in the Help menu there you can proceed that way too.
 
CrasyCat
0 Kudos