create a new version of assembler project atmel studio 7

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

hello , I have imported a project  from avr studio 4 to Atmel studio 7.The name of this programm is performer 23.I built it and I have an asm file (performer23.asm).

If I modify performer 23 I would like to save it as a new version for example performer 24 .So ,  I will  have an independent  new version of performer and I will be able to return to the precedent version if the new version does not please me.But I don't know how to do.Can you help me? I work in assembler on ATMega32 .

Thank you for your help .I'm french...

This topic has a solution.
Last Edited: Fri. Oct 5, 2018 - 04:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Seems you need to learn about version control systems,  i.e.  VCS, SVN, GIT, I'm sure there are others! 

These systems were designed just for that purpose.  Do some googling.

 

 

 

Jim

Edit: corrected TLA VCS

Click Link: Get Free Stock: Retire early!

share.robinhood.com/jamesc3274

 

 

 

Last Edited: Thu. Oct 4, 2018 - 03:40 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I'd recommend that for an easy start and for someone working alone then SVN and specifically (on Windows) "TortoiseSVN" would be a great place to start.

 

Once you start using revision control you don't need "performer 23.asm", "performer 24.asm" and so on. You would just have a single "performer.asm". Each time you reach a significant mliestone version you "check in" the new/updated copy then later you can explore the history and pick out any version you like, so if you need to go back to "performer V11" it's easy or even if you want to see "what was different between V8 and V17" then that kind of thing is easy too. Also if you realise you broke everything when you went from V24 to V25 and are now getting loads of bug reports you can easily roll back to V24. Another thing you can do is when the customer using V17 says "I like this but I would just like this extra function added" then in the history you can "branch V17" to make a separate branch of development where you add that new feature to V17 without affecting anything ahead of there.

For info see pages such as:

 

https://tortoisesvn.net/docs/rel...

http://www.shokhirev.com/nikolai...

 

(it's very popular so there's a lot written on the internet about using it).

Last Edited: Thu. Oct 4, 2018 - 03:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do this a lot.  I use C++ but I guess you can do it with assembler.

 

Make a new folder.  You might want to call it performer24.  Copy the performer23 stuff to the new folder.  Don't copy the Debug folder.  Change the name of the *sln, *proj, and *xml files.  Edit the *sln and *proj files and change the occurances of "performer23" to performer24".  If you have additional include directories in the project you may have to make changes there.

Last Edited: Thu. Oct 4, 2018 - 04:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All that editing is exactly why revision control makes this 1,000 times easier.
.
In something I'm working on our team has made more than 65,000 versions and yet I could easily rebuild any one of them and all with the same SLN and PROJ files.

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

Giving a project name a number is a recipe for disaster, one mistype and you overwrite a previous version,

go ahead, ask me how I know this!   download, install a version control system and start using it, Clff's suggestion of "TortoiseSVN"  I would second (and use on my own projects)

 

Jim

 

 

Click Link: Get Free Stock: Retire early!

share.robinhood.com/jamesc3274

 

 

 

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

Thank tou very much for your help.What you call stuff is:bin,default,release,performer23 asm,performer23 assembler project,and performer23Componentinfo xml file? OK?

And when you write change the name of the sln,you mean atsln?

And I have another xml file: ConversionLog-09-27-2018 11-02-44   How to change the name?

And I have a file with the name: AVRStudioConversionLog    XSLT Stylesheet ...I don't know what to do with it !!!

So it's difficult for me to understand how to proceed...

Thank you for your comment.

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

I don't know tortoiseSVN but i will try to use it .I don't know how it works but it's probably the solution.Note that what I want was possible with AVRStudio 4.So I do not see the amelioration with ATMEL studio 7.

I'll be back!!! thank you.

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

Oh you can mess about renaming files and editing references as much in AS7 as AS4 but it is fraught with potential error. Proper revision control is not.

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

BTW if you want to know what needs editing to cjange a project name just create two blank projects from scratch: "foo1" and "foo2" then diff the similarly named files in each project to see what actually changes. As atsln and cproj files are XML it's easy to comparw and see how they differ.
.
If you can find a .gitignore file that someone has created for AS7 projects you'll get a list of file extensions that can be happily ignored (no point version managing auto-gen files!)

Last Edited: Thu. Oct 4, 2018 - 05:35 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

protale wrote:

 

And when you write change the name of the sln,you mean atsln?

And I have another xml file: ConversionLog-09-27-2018 11-02-44   How to change the name?

And I have a file with the name: AVRStudioConversionLog    XSLT Stylesheet ...I don't know what to do with it !!!

So it's difficult for me to understand how to proceed...

 

I don't know.  I guess my projects are simpler than yours.  I have 3 files with the project name but with different suffixes.

 

 C++-1-blink_using_CPU_delay_loop.atsln
 C++-1-blink_using_CPU_delay_loop.componentinfo.xml
 C++-1-blink_using_CPU_delay_loop.cppproj
 

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

Thank you steve .I'll try tortoise SVN .I've been looking for a long time.Finally ,perhaps tortoise is the solution.When you program ,this kind of tool is evident! I thought Studio 7 is an advanced software?!

Now I doubt.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

EUREKA! thank you steve , you help me to find the solution .It's not very simple.

I make a copy of performer23 folder.I rename it into performer24.All the files in this folder : bin ; debug ; default ; release ; performer23.asm ;performer23 assembler project ; performer23.componentinfo are renamed into 24.

But there is something more to do ! Here is the solution !

Open Atmel studio 7 , open file performer24 assembler project and edit it.Change all the terms with performer23 and replace them by performer24 and save your assembler project file.

Close solution and Open project /solution file with performer24 assembler project.Then open file performer24.asm.I select solution explorer and all my solution files appears with the number 24.

I modify performer24.asm in the edit window to make a different program and I built it.

Then save all.I close solution and I open  my project performer24.atsln.

IT WORKS. I have two independent projects performer23 and performer24.

I programmed my device (ATMega32) with the two projects .All is right.

It was long but it was good!

FINALLY THE SOLUTION !!! You help me to find it steve.So thank you VERY MUCH !

Have a nice day.

                                                                                                                                                 

Last Edited: Fri. Oct 5, 2018 - 10:36 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

protale wrote:
.Change all the terms with performer23 and replace them by performer24
Once again it's exactly this kind of thing that is the reason why a revision control system would be a FAR better idea.

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

You are certainly right but it's easy for me to proceed with my method.Because now I know how to proceed.So I don't need a new software and I don't have to learn how it works!

You understand what I mean?

furthermore the notice is certainly in english and me I'm french!

Here is:...