Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Leonardo - Upload only available by pressing 'F5'??? (Read 6786 times)
ProZak
Newbies
*
Offline


Posts: 4
Location: South Australia
Joined: Sep 24th, 2012
Leonardo - Upload only available by pressing 'F5'???
Sep 25th, 2012 at 1:19am
Print Post  
Hi.

Using:
VS2010 Pro - v10.0.40219.1 SP1Rel
Visual Micro - v1209.20

Basically as the thread title suggests.  I build my project with the Leonardo connected and it compiles just fine - but it doesn't upload automatically to the Leonardo.

There is no "upload" menu or toolbar options and the only way to upload is by pressing 'F5'. Using the toolbar button for 'Build" compiles but doesn't upload either.

Reading http://www.visualmicro.com/page/How-to-compile-and-upload-to-an-Arduino-using-Vi... suggests:

To recap, all of the Visual Studio "build/debug" tool bar buttons, "build" menu items, "debug" menu items,  right click context project menu and keyboard shortcuts provide compile and upload for Arduino. For an example then press F5

I get none of the above except for pressing 'F5' - which is the "Start Debugging" function in VS2010.

So, what am I doing wrong?  Or is this just a glitch?

Also, how do we find what version of VM we actually have loaded?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Leonardo - Upload only available by pressing 'F5'???
Reply #1 - Sep 25th, 2012 at 2:27am
Print Post  
There is some confusion somewhere. 

For example:

For upload VM doesn't actually look for F5. VM just responds to the Visual Studio "DebugStart" macro command. 

The "Debug.Start" is executed by Visual Studio when you click the "Debug>Start" menu item or F5 or some other options.

What about a little green arrow on the toolbar pointing  to the right. The little green arrow also does "Start.Debug" so does that work?

And you say that the menu item "DEBUG" doesn't work when you select "Start" or "Start without debug"?


  
Back to top
IP Logged
 
ProZak
Newbies
*
Offline


Posts: 4
Location: South Australia
Joined: Sep 24th, 2012
Re: Leonardo - Upload only available by pressing 'F5'???
Reply #2 - Sep 25th, 2012 at 3:00am
Print Post  
Tim@Visual Micro wrote on Sep 25th, 2012 at 2:27am:
There is some confusion somewhere. 

I'm beginning to feel that too...

Tim@Visual Micro wrote on Sep 25th, 2012 at 2:27am:
What about a little green arrow on the toolbar pointingto the right. The little green arrow also does "Start.Debug" so does that work?

Yes,  That works fine.

Tim@Visual Micro wrote on Sep 25th, 2012 at 2:27am:
And you say that the menu item "DEBUG" doesn't work when you select "Start" or "Start without debug"?

No, that works fine also.

My interpretation of the link I previously posted suggests that when I do the "build" (via "Build->Build xxx" or "Build->Rebuild xxx") that after compiling the build of the project, that it would be uploaded to the Arduino (Leonardo)... This doesn't happen. 

As quoted by the article I linked to :

To recap, all of the Visual Studio "build/debug" tool bar buttons, "build" menu items, "debug" menu items,  right click context project menu and keyboard shortcuts provide compile and upload for Arduino.

So, as I interpret that statement...

1) "Build" or "Rebuild" from the menu function "Build->Build xxx" (or "Build->Rebuild xxx") will be followed by an upload to the Arduino board.  The upload does not happen.

2) Right-Click context menus "Build" or "Rebuild" will be followed by an upload to the Arduino board.  Again, the upload does not happen.

3) The keyboard shortcuts?  There's a shortcut for "Build" or "Rebuild"?  I know there's one for "Start Debugging" and that's the one where the upload works?!?

So, is it a misunderstanding of that article?  Or should the "Build" or "Rebuild" menu function send the compiled code up to the Leonardo after it's finished compiling?
« Last Edit: Sep 25th, 2012 at 3:25am by ProZak »  
Back to top
 
IP Logged
 
ProZak
Newbies
*
Offline


Posts: 4
Location: South Australia
Joined: Sep 24th, 2012
Re: Leonardo - Upload only available by pressing 'F5'???
Reply #3 - Sep 25th, 2012 at 3:21am
Print Post  
Ahhh!  Hang on (light bulb flickers above head)...  I think I'm starting to see what is actually meant by that article (just that the previously quoted statement from the article is a little misleading/ambiguous perhaps?).

So the proper way to compile+upload to the Arduino is via the Debug  functions (Start debugging, F5, etc.). Otherwise it is not automatic after all... is that right?

When using the "Build->Build xxx" or "Build-> Rebuild xxx" menu function it is just a "verify code" function?
« Last Edit: Sep 25th, 2012 at 3:27am by ProZak »  
Back to top
 
IP Logged
 
Marius
Developer
****
Offline


Posts: 204
Location: Centurion RSA
Joined: Sep 7th, 2011
Re: Leonardo - Upload only available by pressing 'F5'???
Reply #4 - Sep 25th, 2012 at 5:33am
Print Post  
The only time the code is "loaded" automatically is when debug is activated. And it should be like that. All the other build options are standard for Studio type environments and never programs the target. 
S.O.P.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Leonardo - Upload only available by pressing 'F5'???
Reply #5 - Sep 25th, 2012 at 7:20am
Print Post  
You are right the instructions should say 

Quote:
Build and/or compile


Yes you have option just to build/verify or build and upload. 

Same as in the arduino ide. This is also how visual studio works however it is usual run app instead of upload.
  
Back to top
IP Logged
 
ProZak
Newbies
*
Offline


Posts: 4
Location: South Australia
Joined: Sep 24th, 2012
Re: Leonardo - Upload only available by pressing 'F5'???
Reply #6 - Sep 25th, 2012 at 1:50pm
Print Post  
Tim@Visual Micro wrote on Sep 25th, 2012 at 7:20am:
Yes you have option just to build/verify or build and upload. 


Ahh!  Now I get it.  Yeah, the article's instructions threw me off.  I was expecting the "Build->Build xxx" function to also upload to the Arduino after it finished compiling.  It was only when I figured that VM was following the same methodolgy as the Arduino IDE that I realised what the article was trying to say.

Thanks to you both for the clarification.

There is another issue I'm having with VM but it is not really serious, and when I gather some more info about the issue I'll post in another thread.

Thanks again guys!  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint