Copying a project in a solution

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In general, there are copy functions for texts, files and directories.

 

Is it possible, inside a solution (AS 6.2 SP1), to copy a project and giving it a new name?

 

The project could be just one assembly file (*.asm, for ATmega8) and uses the in-built simulator only for debugging (no programmer).

I usually duplicate the properties of an earlier project into a new one manually.

 

Thank you.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think Atmel/(Microsoft)'s suggested method here would be to create a "template" then create the new project from the template.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you, clawson, for your prompt reply.

 

I read several times about the 'template' on the Help. But since I am new in using the actual compilers, yes I still live with DOS assemblers and old MCUs, I am not sure about the right sequence of steps to get a copied project in a solution.

 

Let us say, I work on a solution. In this solution, there is one project "FlashCode1" that has flashCode1.asm only.

What could be the steps to create, within the solution and if possible, another identical project "FlashCode2"?

 

For instance, is the saved 'template' for the solution or just of a project in it (the default one, for example)?

 

I feel that my questions sound rather silly to most AS users, I am sorry.

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  1. Copy the Project (.cproj) file in the file system (Win Explorer, DOS Box - whatever you prefer).
     
  2. In the Studio Solution Explorer, right-click the Solution and do Add > Existing Project
    Choose the copy you just made.
     
  3. In the Studio Solution Explorer, rename the Project(s) as required.

 

Done!

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've not used it myself. For something like a one source file project I think I'd just create a whole new project then add the existing source file to it myself. But I believe it starts with "Export" on the file menu. I think there's two kinds of template you can create and at some stage you get a choice. Later on you just use File-New Project and one of the options you get there is "create from template". The template you recently exported should now be listed there.

 

(I did this once and wrote a thread here about it but trying to fiund that could be more trouble than just trying it!)

 

I imagine the Studio user manual has something to say about this:

 

http://www.atmel.com/webdoc/atme...

http://www.atmel.com/webdoc/atme...

(and keep following "Next"...)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you, awneil and clawson, for your detailed reply.

 

You gave me steps to start with.