Renaming a project in CW 5.7 for HC08

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

Renaming a project in CW 5.7 for HC08

2,065 次查看
glennk
Contributor I
Is there any easy way of renaming projects in CW 5.7?  I have an old project that I want to use as a starting point for a new project, but I want to rename all the files that were created with the original name. This would include the .MCP file, the C file that contains main(), the output hex files, and a few others.  Thanks.
标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

936 次查看
CompilerGuru
NXP Employee
NXP Employee
There is no action renaming all those things at once. For CW those are independent names, that they happen to start with the same letters has no special meaning.
To rename the project/mcp, just use windows explorer or open it with CW and do a save as.
For project files, open the project, open the file to rename via Files tab and then use File->Save as. This will save the file with the new name, and at the same time also adapt the project references.
The output ELF file has to be renamed in the Linker settings. The SRecord name is in the default setup derived from the ELF file name.

Daniel

936 次查看
Lundin
Senior Contributor IV
While you're at it, you might want to throw away the junk binaries created by CW at linking and placed into the directory "ProjectName_Data". If you rename the project, a new directory will be created but the old one remain.