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 Solution with two projects, each different code and COM port (Read 7999 times)
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Solution with two projects, each different code and COM port
Aug 5th, 2014 at 6:53am
Print Post  
I have a 'Solution' with two projects, each different code and COM port, e.g., 
project client, uses COM39 for code downloading
project server, uses COM40 for code downloading.
On startup, AS/VM shows 'client' in boldface and server not boldface. As if one is the 'active' project.

I cannot get the non-boldface project, 'server' to download on its designated COM40. The output window says it is using COM39 (wrong one). Even so, it doesn't really use COM39, nor does it use COM40 as it should.

Boldface means?
download should be down how?

EDIT: And.. maybe since this is a Teensy 3 project, it matters that the downloader is the Teensy software program which has to be told which target to use.

Thanks
steve

« Last Edit: Aug 5th, 2014 at 7:22am by stevech »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Solution with two projects, each different code and COM port
Reply #1 - Aug 5th, 2014 at 12:09pm
Print Post  
Hi,

In Visual Studio (atmel) the bold project name means that is the "Startup project". You can right click any project in the solution tree and set is as the "Startup project". 

This is then the project that will compile/upload and/or debug when you press F5 or the Start command.

To set a board and port for a project you must have the code open (be ready to edit) for the respective project. It can be confusing in VS because you can have the code open for project A yet click project B in the solution explorer but without opening the code of project B.

The "Build" menu at the top of the Ide gives a good indicator as to the "active editing project". It will say "Build>Project X" and/or "Build>Solution".

If a project has never had a port specified it will use the last selected port. If a project has an old/obsolete port specified you will need to change the port. the settings will save when the project is saved (vs will prompt when required).

I hope this helps.
  
Back to top
WWW  
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: Solution with two projects, each different code and COM port
Reply #2 - Aug 5th, 2014 at 5:42pm
Print Post  
Thanks very much! It works, now that I know that I need to change the target MCU's project property to "is the startup".

I misunderstood 'startup project' to mean the it is the project that the editor opens with after VS starts up. 

Great. thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Solution with two projects, each different code and COM port
Reply #3 - Aug 5th, 2014 at 5:49pm
Print Post  
Great. Yes it's a Visual Studio term and few people realize how it works.

Better docs required!  Smiley
  
Back to top
WWW  
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: Solution with two projects, each different code and COM port
Reply #4 - Aug 5th, 2014 at 6:13pm
Print Post  
yes, these days, the authors or others too close to a product write the help/user docs. Classically, they don't have enough empathy for the new or infrequent user's situation in having to know so much about so many things. 
« Last Edit: Aug 5th, 2014 at 6:14pm by stevech »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Solution with two projects, each different code and COM port
Reply #5 - Aug 5th, 2014 at 7:21pm
Print Post  
Furthermore the documentation has to give simple clarity to users who have never used a real Ide before and would find a discussion of multiple projects in a single solution too complicated.

So we have to walk a line and hope the more advanced users can use the standard F1 help system in their chosen Ide. In this case VS and Atmel work the same except in VS you can also right click a project and click "Start"
« Last Edit: Aug 5th, 2014 at 7:22pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
stevech
Member
***
Offline


Posts: 147
Location: So. Calif. US
Joined: Jun 16th, 2013
Re: Solution with two projects, each different code and COM port
Reply #6 - Aug 5th, 2014 at 8:00pm
Print Post  
Overall, I am delighted with VS/VM for my embedded work.
Using it is like having a Lexus or riding in first class, versus the Arduino IDE which was intended to be simple and unintimidating.   It is, but like diapers, one soon outgrows it.
« Last Edit: Aug 5th, 2014 at 8:10pm by stevech »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Solution with two projects, each different code and COM port
Reply #7 - Aug 5th, 2014 at 8:04pm
Print Post  
That's really good to hear thanks. It is a lot of work so pointless unless people enjoy it.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint