You are here

Renaming project | Cypress Semiconductor

Renaming project

Summary: 2 Replies, Latest post by 78RPM on 14 Dec 2014 05:20 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
user_343349849's picture
314 posts

 I want to clone a project to use as beginning of a very similar project (and later for new versions of same code).

Is the recommended method to "archive the workspace/project" to a new folder and unzip it.

Then open the project that was copied and right click and "rename" main project? What about the ".cywdr" file, does this also need renaming?

Or are there other areas or namespaces I need to change.

From experience with VB.NEt, there was a host of changes to copy a project and get it running again. With PIC, you tended to have to unload the files and re include them otherwise the compiler would compile to the address of the original modules.




user_1377889's picture
9294 posts

Yes, that is the way you have to use to clone a project. The good news: Creator 3.1 has got a new function "Save as..."



user_302397898's picture
102 posts

 That method does work but I have used a different one.

Open a new project, select Target Device, then save it with the new name. Close Workspace
Open old project and do a Select All on the TopDesign. Edit/copy. Close Workspace.
Open new project. Click on TopDesign screen and do a Edit/Paste. Close Workspace.
Open old project. In main.c do a Edit/Select all, Copy.  Close Workspace.
Open new project. Go to main.c and delete the sample code. Edit/paste.

If you have multiple pages in your TopDesign, you have to copy each page separately.

Do a Clean & Build.  You probably find that you have to copy device.h into your cydsn folder and try again.

One little irritating thing about this method is that your TopDesign is enlarged by about ten percent. I don't know why.

Log in to post new comments.