Setting up MS Visual Studio to compile/upload?

Hey guys,

I just got my Arduino board recently. I'm a coder at heart so I'm really used to the MS Visual Studio 2005 work flow. Does anyone know how I can set up Visual Studio to use the AVR compiler? The compiler is somewhere in the IDE's program directory so which exe it is specifically and how its command line works would be great. Also some information on how to use avrdude manually to upload the binary as a post-build step? Thanks a lot!

If you set build.verbose and upload.verbose to true in your preferences file, you'll get the command lines that the IDE is using to compile and upload your sketch. That should help get you started.

I am trying to program in C++ with Microsoft Visual Studio 2005 and I am wondering if there are any examples or tutorials on how to include the header files that is used to communicate with Arduino Board.

Arduino in Visual Studio Beta

I'm keen to hear from anyone that would like to beta test an arduino extension for visual studio called Visual Micro. The extension makes it easy to build on new or existing sketches.

Visual Micro maintains sketch compatibility with arduino whilst allowing visual studios C++ intellisense to work with ANY core and ALL libraries.

The product is “boards.txt” and “serial port” aware, retains the board and port per project and allows arduino library folders to be added via a single menu click.

For anyone who doesn't know or can't remember arduino class, struct and method names the intellisense is very useful. You can read more about more Visual Micro features here http://www.visualmicro.com

If you would like to register as a beta tester please send us an mailto://beta@visualmicro.com or use the link on the Visual Micro home page.

Thanks

Visual Micro Development Team

What do the testers recieve for their time?

What versions of Visual Studio does the add-in work with?

I would love to have a play with it. Will email you when I get home.

Hi All,

Visual Micro...

Testers get to use the product early and to benefit from the product. Also having the opporunity to make suggestions.

It should work with Visual Studion 2005,2008,2010 but that's what the beta test is about

It is an addin so it is up to you to ensure that your microsoft licence agreement permitts you to install addins :slight_smile:

The basic version will be free

A CodeBlocks plugin would also be interesting...

Do you mean sample arduino code blocks in Visual Studio, intellisense style?

If so, yes I think you we are on the same track

The ability to "show related code snippet" example(s) for the current code line, with a "click to insert" option?

If not please then please do explain further

In any event keep the ideas coming

Thanks

http://www.visualmicro.com

Or was I just being a bit thick and you were simply talking about being able to expand and collapse functions in the editor.

Yes that's nice too :slight_smile:

Or, you could google CodeBlocks.

I googled it but just get a lot of techy stuff.

I only have so much time spare at the moment so maybe you can explain more

That doesn't sound like a CodeBlocks plugin is around the corner...
Sorry, I was not clear enough.
Here is what I was referring to : http://www.codeblocks.org/

Oh yes, I see what you mean. I had considered a winavr plugin. It would be quite simple, I'll have a play when i get a mo.

What appealed most about visual studio was the intellisense. Does code blocks provide intellisense for all source files included in the project?

Oh and the most important question does code blocks support CTRL/SHIFT+INS for copy paste? Call me old fashioned!!

The free Visual Studio extension for the Arduino IDE was released in beta today by Visual Micro. The addin supports all arduino/avr boards, all libraries and any other source or header files that you might need.

http://www.visualmicro.com/post/2010/04/11/How-to-enable-arduino-Intellisense-in-visual-studio.aspx

If you don't want to use the addin you might find the supporting files useful.

The supporting files include simple .bat files that break up the arduino sketch compilation into obvious chunks. There is also an empty visual studio project file that provides an example of how to configure a visual studio project to compile arduino sketch files

You can read more about how to compile using visual studio here

http://www.visualmicro.com/post/2010/04/11/How-to-compile-an-arduino-sketch-in-visual-studio-using-avr-gcc.aspx

You can find the quick start guide here

http://www.visualmicro.com/post/2010/04/11/Quick-start-guide-to-arduino-programing-in-visual-studio.aspx

Please email beta@visualstudio.com for an unrestricted beta copy of the software

Visual Micro - Arduino in Visual Studio

I think a fair point was made in this board, therefore, I have decided to make the visual studio addin open source.

Initially it is free to all, when I get a moment i will document and publish the code.

Introduction - Open Source Visual Studio for Arduino

I have been a keen arduino hobbyist for some years, but I have not enjoyed using the arduino/processing IDE. My preference is to use Visual Studio to create Arduino projects. This is why I have created the Visual Micro product, an Arduino AddIn for Visual Studio.

You will find information that explains how to use the product on this site. Use the search bar or "tags" list to find what you are looking for. The forum is a place for ideas, suggestions or general comments and feed back.

Initially I thought it right to charge for commercial use of the product but I have now decided that it should be free and also become open source. The reason for this is that, sites such as DIY Drones and Liquidware make some great products but I have also benefited from their code examples. So this is my opportunity to give to the community.

I have said that I developed this product because I want to use Visual Studio to create and maintain arduino projects. I am not the best developer to do this job and I also do not have much spare time. If anyone else would like to develop this product to be all it can be then I will be happy to supply all the information that I have and provide as much advice as I can give.

Currently in beta, please email for a download link

http://www.visualmicro.com

Kudos for converting it to open-source =)

Yes, kudos! I walked through the installation. Pretty straight forward, and I only guessed wrong a few times. :slight_smile:

Ahhhhh...... Intellisense......

This is excellent news, thank you for the post. If you have time I would like to hear about the "wrong guesses" so I can make things more robust.

Any info will be very helpful.

If anyone has any icons for the the buttons it will save me looking. I am very bad at drawing icons!