copying files to make new project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

copying files to make new project

跳至解决方案
1,156 次查看
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

标签 (1)
标记 (1)
0 项奖励
1 解答
890 次查看
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 项奖励
4 回复数
890 次查看
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.

890 次查看
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 项奖励
890 次查看
stevec
Contributor III

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

 

Steve

0 项奖励
891 次查看
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 项奖励