Go Down

Topic: Using AVR STudio to build Arduino projects (Read 5443 times) previous topic - next topic

For those of you who want to use AVR Studio to build you Arduino projects, check out my post in the AVRFreaks forum:

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=110776

The post describes how to use AVR Studio 5 instead of the  Arduino IDE to build applications. 

The Arduino IDE was really great at first - it got me started (big thanks), but over time I have started to dislike it.   Its slow.  It has no intellisense.  The IDE sucks.  I dislike the extra pass it makes to change my code in strange ways.  There's no debugger. So I went looking for alternatives, and came to the conclusion that there are two, Eclipse  ( http://arduino.cc/forum/index.php/topic,62094.0.html ) or Visual Studio (AVR Studio 5 to be precise).  As a long term Visual Studio user, I chose to make AVR Studio 5 sing and dance and had success.  Read the post above for the full story.

sixeyes

I'm currently using Eclipse but would like to use VS. What do you use for a serial monitor?

Iain

retrolefty

Sounds interesting, however the start where you say

Quote
"This post describes how to use AVR Studio 5 instead of the Arduino IDE to build applications. It presumes a certain level of knowledge and experience."


Kind of scares me.  ;)

Graynomad

Quote
What do you use for a serial monitor?

Any one of a dozen terminal programs, I like Tera Term.

_______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

sixeyes

I was wondering if there was anything that was integrated with AVR Studio. In Eclipse there's an integrated serial monitor.

retrolefty>When I said that "It presumes a certain level of knowledge and experience.", I didnt mean to scare anyone - I was just apologising for the lack of detail. I just didnt want to lose people in a lot of detail - eg - I said "define an external tool", but didnt say how to do that.
I also presume that you are comfy with VS which is probably why you are looking for an alternative to the Arduino IDE.
So no need to be scared, it really does work nicely.  Your IDE frustrations will be a thing of the past.

There are so many advanatages with this approach - its the best of both worlds. 

Sixeyes>What do you use for a serial monitor?
I use the one in the IDE at present, it does the job, so I havent felt the need to replace it.

retrolefty


sixeyes

I didn't know VS had a serial monitor.

How do you access it?
Does it remain open between uploads?
Is it similar to the output / debug windows?

Do you know if this will work even if we don't have the full version of VS2010?

The Eclipse monitor window remains open between uploads which is a real bonus for debugging.
The only pain is remembering to close the serial port before uploading.

#8
Aug 21, 2011, 01:24 am Last Edit: Aug 21, 2011, 01:27 am by frankDownunder Reason: 1
Sorry sixeyes, I meant the Arduino IDE !!  I just havent seen the need to find a replacement for the serial monitor (yet).  Ive got Eclipse installed so at your suggestion, Ill play with the one built into  it.  I have both VS2008 and VS2010 installed, but I doubt that either is necessary, I am NOT using them - just AVRSTudio.

CrossRoads

I guess I don't know what I am missing. I find the Aruino IDE easy to use and to test with via serial monitor. Sometimes I need a 2nd serial port and I use RS232 MON from EVMSoft.com for that. It allows more options vs just outputting characters, for  when I am simulating some other piece of hardware.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

sixeyes

Quote
I have both VS2008 and VS2010 installed, but I doubt that either is necessary, I am NOT using them - just AVRSTudio.

In your article you mention using Visual Assist so I wondered if VS2010 was required.

Quote
I guess I don't know what I am missing. I find the Aruino IDE easy to use and to test with via serial monitor.

From time to time it gets mentioned, can the Arduino IDE not close down when uploading a new sketch. With Eclipse you get that and it's a window within the IDE rather than a popup.

Other features are auto complete (unless you've had it, you won't miss it) and not having to recompile libraries for every update. The Arduino IDE becomes tedious as your code base grows in size.

Iain

CrossRoads

"The Arduino IDE becomes tedious as your code base grows in size."
I found using the Tabs feature of the IDE kept large code pretty workable.
I set up a bunch of tabs, named so they appeared in order:
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

sixeyes

It's not the editor that's the problem. It's that every time you compile, it compiles every file. In Eclipse only changed files are recompiled. The compilation time really bugged me using the Arduino IDE.

Iain

I think perhaps the fact that the Arduino IDE recompiles everything is definitely the worst aspect. But the editor is'nt far behind.  Its lack of auto-complete or intellisense or whatever you want to call it comes in at a close second.   
I dont want to sound like I am complaining, it was a fantastic way to get started. I wouldnt be having fun with micros now if it wasn't for the Arduino community.
But all I can say is that I was prepared to invest time so as I could work out how to use AVR Studio and didnt regret doing so.  I couldn't now go back to using the Arduino IDE, it would feel like stepping back a decade or three. And others now have the benefit of knowing about a better way.

buzzdavidson

Don't apologize for expressing your opinion!  And thanks for the post.  I happen to agree with your perspective - the Arduino IDE is nice and simple, but with that simplicity comes lots of limitations.  This seems to be a common theme among those of us who came into Arduino from the software development side of things.  I've re-installed Windows just to do some more in-depth work with AVR Studio; ideally I'd prefer to work with standard tools under 'nix (make, emacs, Bash in my case).  However, I often find that using the vendor's preferred tool suite makes exploration much easier, especially when starting with a new platform. 

BTW, there's nothing magical about the serial monitor in the Arduino IDE - it's just a serial terminal.  As Visual Studio is a plugin-based tool suite, I'm sure that there are lots of options available for integrated serial monitoring, if it's not actually included in the base distribution.  I've seen some *really* neat tooling available from the NetDuino side of things - integrated graphing and monitoring of analog and digital ports on the 'duino, etc.


Go Up