Exporting a .cwx file, from an existing CodeVisionAVR project without one?

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

In CodeVisionAVR, there is a "CodeWizardAVR", which should allow a quick/easy starting setup of a project. Additionally, the wizard also has its own file format, which for XMEGA chips is .cwx. Basically, if you setup the project through the wizard, the wizard settings will/can be saved in a .cwx file (for XMEGA chips).

 

CodeWizardAVR.png

 

So, in principle, if you have an older project with a .cwx file, you could create a new project, start the CodeWizardAVR, load the .cwx file, and thus copy the initial settings from the older project into a new one.

 

Now, I'd like to do the same - except, in my older project, the .cwx file is not preserved. Is there an option in CVAVR, so that I could export a .cwx file, from a currently opened project that doesn't have one?

 

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

Of course the absolute best thing would be to ask Codevision themselves.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Looking at a .cwx file it just seems to be a whole lot of "name=value" statements.

 

I doubt if you can generate the .cwx from an existing project.

 

Surely it is easier to just run the CodeWizard.   Input your data in the usual way.   After all,  it is your project.   You know which USART and what baud rate etc.   Save the .cwx file.

Compare your new program with the old working version.

 

David.

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

Why don't you just use the starting version of the .PRJ that corresponds to the Wizard output?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

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

Thanks, all, for the responses!

 

js wrote:

Of course the absolute best thing would be to ask Codevision themselves.

 

Indeed; however, I thought, maybe this is something trivial that I'm overlooking (won't be the first time :) ), and I really like it when I can solve such problems by looking them up on the net, so I thought, I might as well post here and ask...

 

david.prentice wrote:

I doubt if you can generate the .cwx from an existing project.

 

Thanks for confirming this, that was my hunch too.

 

theusch wrote:

Why don't you just use the starting version of the .PRJ that corresponds to the Wizard output?

 

Well, basically, I have a project that was developed by others for quite a while (but with the .cwx not preserved, although I strongly suspect they used the wizard to start that project up), so its .PRJ is not exactly the starting version. I just wanted to start a new project with the exact same settings, and with the minimum of manual double-checking of settings: had they preserved their .cwx, it would have been straightforward to use it, to start a new project with the same settings.

 

 

david.prentice wrote:

Surely it is easier to just run the CodeWizard.   Input your data in the usual way.   After all,  it is your project.   You know which USART and what baud rate etc.   Save the .cwx file.

 

Eh yeah, that is the thing - it is not my project, so I don't quite know the right USARTs, clocks, baudrates etc. In which case, if the original author(s) preserved the .cwx, they would have made it much easier for me to start a new project with the exact same settings - but they did not. So I hoped - the next best thing would be, if it would be possible to recreate a .cwx from the existing project, so I don't have to manually double-check each and every setting, when going through the wizard for a new project.

 

But now that I have it more-or-less confirmed, that there is no current facility to generate .cwx from an existing project - manual double-check of settings it is, then...

 

Thanks again!

Last Edited: Mon. Jun 17, 2019 - 07:50 AM