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 Running programs in parallel - master/slave (Read 4849 times)
rick_duley
Junior Member
**
Offline


Posts: 49
Location: Western Australia
Joined: Jan 8th, 2017
Running programs in parallel - master/slave
Jan 23rd, 2017 at 7:17am
Print Post  
I am programming a master/slave setup for UNOs, nRF24L01 and TMRh20 RF24.h

How do I run the master and a slave (or six) at the same time in VS/vM?  Currently I do this with separate instantiations of the Arduino IDE, but it would be nice if I did not have to change IDEs all the time.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Running programs in parallel - master/slave
Reply #1 - Jan 23rd, 2017 at 1:38pm
Print Post  
It's easier to open visual studio twice for most users,  here is some extra info. 

The visual micro build and upload commands will upload the project associated to the active code editor.

The visual studio debug>start commands will upload the currently selected "startup project" (shown in bold in the solution tree)

The visual studio "build>project only" commands (menu and right click) will build the currently active code editor project

The visual studio deploy command on right click context menus will upload the selected item, deploy from top menu will do as it suggests based on menu location

Visual micro will allow serial debug for two projects in a single instance on different ports but it is not advisable because all short cut keys such as F5 will work only for the last started debug session.

Right click project, "start>new instance" will start a debug session for the selected project.

Gdb debug works like normal visual studio debug, which requires one instance per ide

Summary

So, you can easily build, deploy and use multiple serial for multiple projects in a single IDE instance, but to debug multiple projects at the same time use two or more instances.
« Last Edit: Jan 23rd, 2017 at 10:51pm by Tim@Visual Micro »  
Back to top
IP Logged
 
rick_duley
Junior Member
**
Offline


Posts: 49
Location: Western Australia
Joined: Jan 8th, 2017
Re: Running programs in parallel - master/slave
Reply #2 - Jan 23rd, 2017 at 10:41pm
Print Post  
Tim@Visual Micro wrote on Jan 23rd, 2017 at 1:38pm:
It's easier to open visual studio twice ...


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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Running programs in parallel - master/slave
Reply #3 - Jan 23rd, 2017 at 10:50pm
Print Post  
Edited the answer, was in a rush. You might still have the same conclusion but it might be clearer now.
  
Back to top
IP Logged
 
rick_duley
Junior Member
**
Offline


Posts: 49
Location: Western Australia
Joined: Jan 8th, 2017
Re: Running programs in parallel - master/slave
Reply #4 - Jan 23rd, 2017 at 11:13pm
Print Post  
Hi Tim

Much appreciative of your advice, but I have to ask, "Are you the only person in this Forum?"

I ask a question, you respond, etc.  I can't remember anyone else involved!  Isn't that a bit odd for a Forum?  Roll Eyes
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Running programs in parallel - master/slave
Reply #5 - Jan 23rd, 2017 at 11:19pm
Print Post  
It's just a place for me to support the plugin.
  
Back to top
IP Logged
 
rick_duley
Junior Member
**
Offline


Posts: 49
Location: Western Australia
Joined: Jan 8th, 2017
Re: Running programs in parallel - master/slave
Reply #6 - Jan 23rd, 2017 at 11:21pm
Print Post  
Tim@Visual Micro wrote on Jan 23rd, 2017 at 11:19pm:
It's just a place for me to support the plugin.


Glad you're here  Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint