Pages: [1]   Go Down
Author Topic: Visual Micro - how to really use this thing?  (Read 1011 times)
0 Members and 1 Guest are viewing this topic.
Utah
Offline Offline
Newbie
*
Karma: 0
Posts: 7
.NET Micro Framework guy, now Arduino fan. Pro .NET client and server developer, hardware is a hobby.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got Visual Micro installed in VS 2012 and Atmel Studio. I have been using Visual Studio since before it was even called Visual Studio, so I am a well versed .NET dev.  *I am a total noob, however, to Arduino, and have been doing all kinds of successful things using the Arduino IDE.* smiley

HOWEVER, I can't get Visual Micro to behave like Arduino IDE, or as expected in VS:
  • When I open a sketch, it works great as long as it only relies on core libraries.  I cannot figure out how to reference external libraries.  Arduino IDE makes this INSANELY easy by just dropping it into your libraries folder, and the files that maintain proper folder structure "just work". Great, how do I get Visual Micro to do the same?
  • Similar to above, I can open the Micro Explorer, shows me Examples from the Core Arduino install.  But my external lib examples don't show up.  Why? (again, with Arduino IDE, they "just show up" when you drop them in your Arduino folder)
  • Intellisense is AWESOME. It even shows things from ALL available libraries as I type... except my downloaded external libraries.  Why?  (probably related to above)
  • Opening an arduino sketch in Arduino IDE that includes a header from an external library works fine. Open this same sketch in Visual Micro... no love. Has no idea where the included header resides (cannot navigate to declaration, nothin)
  • If I open an Arduino Sketch (mentioned above) and then close it, it asks if I want to save changes. I say NO. It "poops" all over my sketch folder with VS specific files anyway.  (minor nit, but annoying)
  • As a C# developer (admittedly and blissfully not C++), I am used to simply "add reference" when using external libraries and even projects within the same solution. The project/solution structure of Visual Micro is really odd.  I'm completely out of my realm as far as knowing how to create a library, and reference it in my Arduino main project/sketch. Aside from debugging and a great coding experience (in a single sketch with no reference), the whole point of getting away from Arduino IDE is to get into more complex project structures with libraries instead of big monolithic sketch files. But it's dang confusing how to, or to know what are best practices. Where are some good tutorials on that?

I've watched several videos, read through several forums.  Most everything about Visual Micro is awesome, but I just cant figure out these most basic things.  Surely it is possible, else this plug in would not be pitched as "100% compatible" with Arduino AVR/IDE.  As a well versed VS guy, I'm feeling pretty stupid right now. I believe a kitten just died somewhere.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8471
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I use VM with AS but have not encountered this yet, I did develop a library with it but that was 6 months ago, way to long for me to remember what I did.

I seem to remember though that I did not get the intellisence for my library, I'll bring it back up and check.

Have you asked on the VM forum?

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Utah
Offline Offline
Newbie
*
Karma: 0
Posts: 7
.NET Micro Framework guy, now Arduino fan. Pro .NET client and server developer, hardware is a hobby.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

As of the moment, I can't get access to the VM forum.  They've got the most buggered, unorthodox registration system I've ever seen.  Apparently, you send them an email and they create you an account, eventually?  Kinda lowers my confidence in their product.  smiley-sad
Logged

Offline Offline
Full Member
***
Karma: 11
Posts: 162
IDE for Microsoft Visual Studio and Atmel Studio 6.1, optional USB Debugger
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi depug,

I am sorry you found the forum registration a pain. Actually we get about 20 spam requests for each 1 real member so we use a system where by you apply via the registration page on the forum. We have recently started to sell the debugger option which brings in a small amount of revenue but everything else has been provided free for many years and as such we avoid too much extra work on behalf of spammers smiley You will read on our site and in the forum that response to visualmicro.com new registration requests has been slightly slowed this month due to some unique factors. It is impossible for us to monitor a large forum such as this for ad-hoc requests which is why we provide the Visual Micro forum.  We hope to see your reg request if you have not already made one.

So to answer a few questions...

1) You will see intellisense for all sources including core and libraries. In VS intellisense and the ability to use the class explorers  for libraries and core is enhanced if you click "Project>Show all sketch files". This additional option is for more advanced users, does not affect compilation but simply brings the sources from the libraries and core directly into the project. (Click the menu item again to remove the additional sources). Without this option VS or Atmel will perform exactly like the Arduino Ide

2) If you can not see your libraries in the explorer or on the menu item "Project>Add/Import Sketch Library" then the SketchBook Folder path will be wrong in the Visual Micro options. The path should normally be automatically discovered by Visual Micro from your Arduino Ide configuration, however, it has possibly been overridden and is pointing to the wrong location? (or we have a bug that has not been reported but it would be an obvious bug that I would have expected to have been reported by many others)

Do you know how to see and change the Arduino SketchBook folder path in Visual Studio?

Thanks

Tim

Below you can see the config options that specify which version(s) of Arduino you are using, where they are installed and what sketchbook location you optionally want to use. The image shows the config for Arduino 1.0.x apps. You will see there is also an Arduino 1.5.x option available

« Last Edit: November 23, 2013, 12:28:04 pm by Visual Micro » Logged

Arduino for Microsoft Visual Studio Pro and Atmel Studio 6.1 http://www.visualmicro.com
Arduino Debugger http://www.visualmicro.com/post/2012/05/05/Debug-Arduino-Overview.aspx

Pages: [1]   Go Up
Jump to: