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 right-click deploy feature wanted (Read 1975 times)
Gregory
Junior Member
Developer
**
Offline


Posts: 18
Joined: Nov 30th, 2012
right-click deploy feature wanted
Feb 2nd, 2013 at 2:56am
Print Post  
Love, love love the tool...but one thing drives me nuts.

When I develop, I have arduino clients written in python or C (they talk to arduino through serial) and often  I have these as "set as startup project" because I am running them frequently.

Problem is, if I want to change the arduino code and deploy it, I must first right-click the arduino project, set it as "start up project" and only then can I deploy it by clicking the green arrow.    But now I don't want the arduino as the default startup project, so I have to then go back and set my python or c program as the default again.

Feature:  just as you have "build" as a right click  optiopn on the arduino project, would love to have a "build and deploy" so that I don't have to mess around with setting it as a startup project.  I could edit the arduino project and deploy it without "running" it.

Make sense?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: right-click deploy feature wanted
Reply #1 - Feb 2nd, 2013 at 3:02am
Print Post  
Yes makes sense but from memory you might have an option.

I'm sure I hooked up the right click "Start new instance" although haven't tried it for some time.
  
Back to top
IP Logged
 
Gregory
Junior Member
Developer
**
Offline


Posts: 18
Joined: Nov 30th, 2012
Re: right-click deploy feature wanted
Reply #2 - Feb 2nd, 2013 at 2:31pm
Print Post  
Don't see a "start new instance" anywhere...

But, basically, you are looking to accomodate solutions that have multiple projects in them.  The tool us just so useful and great that this is the one missing thing:  stop relaying on the arduino project being the "startup" project.  REasons:

1) you want the COM port and serial monitor to NOT require that the arduino project is the "start up project".   If you try to open the serial monitor when the project is not the default you get a "does not point to the instance of an object" error and you can't do the serial monitor.   Again, it is often the case that your client is another project in the solution, and you are alternating between that and the serial monitor to talk to your arduino.
2) just give a "build and deploy" right-click option so that the arduino project does not need to be the "default startup project".

If we can do those things then this is the greatest microcontroller development environment ever...

Let me know if I can help.  I don't know VS addins, but I know .net and win32 pretty well, if you can point out where this is...


G
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: right-click deploy feature wanted
Reply #3 - Feb 2nd, 2013 at 4:37pm
Print Post  
Hi, 

1)
I have right click project > Debug >Start New Instance. I do not have an option to deploy the Arduino/C++ project. If you can tell me the name of the macro that VS runs when you click Deploy I can add it to the same bit of code that captures "Debug >Start New Instance".

2)
I see a bug relating to the debugger raises an error if trying to open serial when positioned on another non-arduino project. However the serial window still opens and works. I'll look into that and hopefully can make the debugger work even if the current project is not the "start-up" project

The VS StartUp project is only supposed to be used for "F5/Debug>Start". I'll do more testing when I get some time. 

T
  
Back to top
IP Logged
 
CapnBry
Junior Member
**
Offline


Posts: 32
Joined: Nov 4th, 2011
Re: right-click deploy feature wanted
Reply #4 - Feb 28th, 2013 at 2:08pm
Print Post  
Along the same lines, if I have a solution with a .NET application (a visualization tool for the Arduino data) along with my Arduino project, it doesn't build when I do "Build Solution" (F6 or Ctrl-Shift-B) unless the Arduino project is set as the startup project. Even "Rebuild solution" just skims over the project. I have to either select the project and do "Build" on it, or set it as the startup project at which point "Build Solution" only builds the Arduino project and not the visualization.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: right-click deploy feature wanted
Reply #5 - Feb 28th, 2013 at 3:12pm
Print Post  
Okay so you can right click the solution and "select project only>build" or from the project menu at the top "Build>ProjectName"

If we are to integrate into the std vs build processes then we would need to be able to exclude a project from the build process and also only build if the solutions platform is the same as the projects platform? I think this is how vs works normally.

All this will be confusing for many new users so how about an option that specifies vm should fall in line with the standard vs "Build" configurations system?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint