[Feature Req] Initial setup

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

Hi all,

I'm sorry if any such previous post is done, but I dint find anything similar thru search.

I'm using AVR studio (v 4.13.528) and WinAVR. Everytime when I start a new project, I've to set the optimization level, include directories, etc. thru the GCC plugin. If such things can be stored as a known configuration, then it will be fast to start with. Is there already a way to do this?

Cheers,
Vignesh

If everything seems to be coming onto your way, then you are probably driving on a wrong lane..

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

vignesh wrote:
If everything seems to be coming onto your way, then you are probably driving on a wrong lane..

I guess that, along the same line of thinking...

To the pessimist, the cup is half empty.

To the Optimist, the cup is half full.

To the engineer, the cup is too damn big!

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

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

Ha ha, I liked the engineer's cup!

Cheers,
Vignesh

If everything seems to be coming onto your way, then you are probably driving on a wrong lane..

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

Anyone happen to notice this?

Cheers,
Vignesh

If everything seems to be coming onto your way, then you are probably driving on a wrong lane..

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

vinqnesh,

I'm sorry that I didn't answer your original question. I predominently program in C, using the ImageCraft ICCAVR compuler. I rarely ever program in assembly and, I never program with the AVRStudio supported GCC compiler. I mostely use AVRStudio for FLASH programming.

In fact, I rarely ever use the AVRStudio simulator as, the one time I did use it, it lied to me and I wasted about 4 days debugging a timer problem that didn't exist in the real world hardware.

But, when I read the message in the footer of your post, it reminded me of the "Half full/half empty" thing.

Sorry that I was unable to help...

You can avoid reality, for a while.  But you can't avoid the consequences of reality! - C.W. Livingston

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

For the drunk the cup is NOT big enough..??

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

open the Project options.
On the top of it you see default written in a white box. Next to it is Edit configurations.
There you can add one. Try if this does the trick you are after. Haven't used it myself (as writing 2 numbers isn't that hard for me).

I'll resist the urge to comment on the cup part of the topic ;)

Hope it helps.

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

With 4.13.528 I've noticed that if you have a GCC project loaded and then use Project-New Project it then inherits the settings of the current project. So if you want a new project to start with -Os (and a link against libm.a) then just make sure you have an existing project with these settings before you create the new one.

(I'm guessing this may actually be by design rather than simply a case of serendipity!)

Cliff

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

If one always uses an external Makefile, then you don't have to go through those settings every time. However, the trade off is that you have to manually add the files to the Makefile.

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

Thank you everyone for your replies.

Cliff, your trick does the job for me!

--Vignesh

Cheers,
Vignesh

If everything seems to be coming onto your way, then you are probably driving on a wrong lane..