Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Board dependant on configuration? (Read 322 times)
MartinAndersen
Newbies
*
Offline



Posts: 3
Board dependant on configuration?
May 14th, 2019 at 12:13pm
 
Hi!
Im using several boards for the same project and code. One is the "extended" version, other si the "basic", and last the "debug" version. The code has conditional compilation for each board, and ive set some defines that are configuration dependant. So choosing one or the other will build the code accordingly. Everything is great!
Just can figure out how to make the board to also be configuration dependant. If i change to a different build config, the board does not change accordingly.
Is it possible to accomplish this?
It would be great not to manually change the board each time.
Thanks!
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Board dependant on configuration?
Reply #1 - May 14th, 2019 at 12:38pm
 
Yes this is currently under review. There will be an option to fix a board or port to a configuration. It might make more sense in some cases to fix the port but either should be available.

We can often work out the board from the port, if not automatically then especially after an upload but maybe not relevant from you.

Back to top
 
WWW  
IP Logged
 
MartinAndersen
Newbies
*
Offline



Posts: 3
Re: Board dependant on configuration?
Reply #2 - May 14th, 2019 at 12:41pm
 
That will be great!
Is there any ETA for this?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Board dependant on configuration?
Reply #3 - May 14th, 2019 at 12:46pm
 
Maybe next week or two. Register for pre-release notifications here

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Board dependant on configuration?
Reply #4 - May 27th, 2019 at 7:21pm
 
This is implemented in the latest 1905.25.5 release in this gallery

You have to switch on "vMicro>General>Save Board and Port For Project Configuration". Also applies to board options.

Back to top
 
WWW  
IP Logged
 
MartinAndersen
Newbies
*
Offline



Posts: 3
Re: Board dependant on configuration?
Reply #5 - May 28th, 2019 at 10:07am
 
You just won my annual subscription Smiley

PS: maybe an option to save board, and a different option to save port. Cause i want to save board but not port... port may be different each time, depending on which USB i connect the board... just a thought.
Back to top
« Last Edit: May 28th, 2019 at 10:09am by MartinAndersen »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10310
United Kingdom
Re: Board dependant on configuration?
Reply #6 - May 28th, 2019 at 11:25am
 
Thanks, I wondered about that. Yes will try to split for next release.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print