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 Board dependant on configuration? (Read 2060 times)
MartinAndersen
Newbies
*
Offline


Posts: 5
Joined: May 14th, 2019
Board dependant on configuration?
May 14th, 2019 at 11:13am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board dependant on configuration?
Reply #1 - May 14th, 2019 at 11:38am
Print Post  
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: 5
Joined: May 14th, 2019
Re: Board dependant on configuration?
Reply #2 - May 14th, 2019 at 11:41am
Print Post  
That will be great!
Is there any ETA for this?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board dependant on configuration?
Reply #3 - May 14th, 2019 at 11:46am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board dependant on configuration?
Reply #4 - May 27th, 2019 at 6:21pm
Print Post  
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: 5
Joined: May 14th, 2019
Re: Board dependant on configuration?
Reply #5 - May 28th, 2019 at 9:07am
Print Post  
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.
« Last Edit: May 28th, 2019 at 9:09am by MartinAndersen »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board dependant on configuration?
Reply #6 - May 28th, 2019 at 10:25am
Print Post  
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 TopicPrint