VS Arduino
>> >> Board dependant on configuration?
https://www.visualmicro.com/forums/YaBB.pl?num=1557832402

Message started by MartinAndersen on May 14th, 2019 at 11:13am

Title: Board dependant on configuration?
Post by MartinAndersen on May 14th, 2019 at 11:13am
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!

Title: Re: Board dependant on configuration?
Post by Visual Micro on May 14th, 2019 at 11:38am
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.


Title: Re: Board dependant on configuration?
Post by MartinAndersen on May 14th, 2019 at 11:41am
That will be great!
Is there any ETA for this?

Title: Re: Board dependant on configuration?
Post by Visual Micro on May 14th, 2019 at 11:46am
Maybe next week or two. Register for pre-release notifications here

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Title: Re: Board dependant on configuration?
Post by Visual Micro on May 27th, 2019 at 6: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.


Title: Re: Board dependant on configuration?
Post by MartinAndersen on May 28th, 2019 at 9:07am
You just won my annual subscription :)

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.

Title: Re: Board dependant on configuration?
Post by Visual Micro on May 28th, 2019 at 10:25am
Thanks, I wondered about that. Yes will try to split for next release.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.