copying files to make new project

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

copying files to make new project

Jump to solution
1,108 Views
stevec
Contributor III

I have an existing working project that I wish to slightly modify to add some more functionality too. I wish to call this project by a different name to distinguish it from the original. How do I go about copying files over to a new project directory without having to define the new project. Can I just copy the source files? Presumably something has to be done to the project file? I believe I used the Device Initialisation and possibly the Processor Expert in the original project.

 

Steve

Labels (1)
Tags (1)
0 Kudos
1 Solution
842 Views
BlackNight
NXP Employee
NXP Employee

For eclipse based CodeWarrior: select the project, copy (e.g. CTRL-C) and then paste (CTRL-V): this will ask you for the new name (e.g. "Copy of Project"), and you are ready to go.

Or: you can export (File > Export) that project and import (File > Import) it into another workspace too.

 

BK

View solution in original post

0 Kudos
4 Replies
842 Views
kef
Specialist I

You didn't say what CW version you are using. On classic IDE's it's simple. Copy entire project folder where you want and delete xxx_Data subfolder. Then you can rename *.mcp file. That's all. You may wish to change the name of application binary files. Just go to linker tab in project settings and change that name. Simple.

Don't know how to do the same in Eclipse IDE. Workspace concept IMO is wrong. What I learnt, that to move to another PC, you need to export project to *.zip or folder on source PC, then import it on destination PC. I'm not sure if you can do the same to rename project.

842 Views
peteyo
Contributor II

Hi Edward,

I am using codewarrior IDE 5.9 for an old MCU and now need to copy a project to a new name for next project.

I found the 'MCUinit.c' file is almost empty after using your steps of classic IDE.

What i did is to replace 'MCUinit.c' and 'MCUinit.h' (in Sources folder) with old files in original project folder.

Then a new_project.iPE file is auto-created after compiling the new project.

My question is, does my step copy a project completely? or still need some actions to match the whole setting of the old peoject?

Thanks,

0 Kudos
842 Views
stevec
Contributor III

I have CW IDE version 5.7. I'll try these suggestions thanks.

 

Steve

0 Kudos
843 Views
BlackNight
NXP Employee
NXP Employee

For eclipse based CodeWarrior: select the project, copy (e.g. CTRL-C) and then paste (CTRL-V): this will ask you for the new name (e.g. "Copy of Project"), and you are ready to go.

Or: you can export (File > Export) that project and import (File > Import) it into another workspace too.

 

BK

0 Kudos