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
Hot Topic (More than 8 Replies) Board Manager (having more than one version) (Read 2494 times)
nullpointer
Newbies
*
Offline


Posts: 6
Joined: Dec 28th, 2023
Board Manager (having more than one version)
Dec 28th, 2023 at 5:26pm
Print Post  
Hi Folks,

I'm having trouble with the following; I have two projects that target different versions of the Espressive ESP8266 board. There are nuanced reasons for this I won't go into here but just to say one targets v2.4.2, and the other v2.1.0.

The problem I am having is that the board manager only seems to support one (even though the project files reflect the correct board revision *edit* Compile.vmps.xml appears to reflect the currently selected revision only).

C:\Users\MyUser\AppData\Local\arduino15\packages\esp8266\hardware

The above directory only ever contains the currently selected board revision (currently in a folder titled "2.1.0"). I am using VM without Arduino btw. My question is, how can I target different revisions without having to re-apply the correct one from the board manager? I would have thought that any version would remain in the hardware folder given its structure, but it seems only one is ever in there!

Many thanks for any help on this, hoping I'm missing something obvious to someone else.
« Last Edit: Dec 28th, 2023 at 5:54pm by nullpointer »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Manager (having more than one version)
Reply #1 - Dec 28th, 2023 at 6:20pm
Print Post  
Arduino normally only supports one package version from the same board index url. It shouldn't be possible to install both and it is possible that both use the same underlying toolchain tools version but with different package versions. It can be confusing.

In Visual Micro you have a few other ways to work outside of the standard arduino config

1) You are probably using the "Arduino 2" app in Visual Micro. You can also configure the "Visual Micro (No IDE)" app to a different "Optional physical folder for downloaded board packages" path such as "c:\mypackages\v1". You also then use board manager as normal to install for that app. In your project you will be able to select the esp board from either Arduno 2 or Visual Micro (No IDE)

2) You can store the desired core(s) below a solution. You can create two different solutions using the same or different projects, each solution has it's own contained core outside of board manager. Each can be checked into source control along with project sources. In the docs you will find "special folders and portability" here https://www.visualmicro.com/page/Special-Folders-and-Portability.aspx

You will read that the special folders have various levels of usage. The most extreme being the \portable which replicates how the arduino portable folder has always worked.

We are considering adding another special folder just for board manager packages but either the sketchbook/hardware or the portable can be used to configure two different solutions with two different cores.

Make sense?

  
Back to top
IP Logged
 
nullpointer
Newbies
*
Offline


Posts: 6
Joined: Dec 28th, 2023
Re: Board Manager (having more than one version)
Reply #2 - Dec 28th, 2023 at 6:37pm
Print Post  
>You can also configure the "Visual Micro (No IDE)" app to a different "Optional physical folder for downloaded board packages" path such as "c:\mypackages\v1".

I'll look into this, thanks! I am currently using Visual Micro No IDE so if I can configure the board packages path per solution that solves my issue.

What I'm not clear on however is that given the specific revision lives in its own folder and Configuration.Release.vmps.xml (say) can point to that folder why not have the board manager look in that folder on a per solution / project basis?

I could be wrong but previously I could change solution, and the correct board revision was picked up. What I mean is, I didn't have to update the board manager. VM understood it targeted a different revision of the board.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Manager (having more than one version)
Reply #3 - Dec 28th, 2023 at 7:45pm
Print Post  
Please follow the guide in yellow above for the project you believe shows a different vmpl to the build.
  
Back to top
IP Logged
 
nullpointer
Newbies
*
Offline


Posts: 6
Joined: Dec 28th, 2023
Re: Board Manager (having more than one version)
Reply #4 - Dec 28th, 2023 at 9:18pm
Print Post  
I will of course, it just seems that the board manager deletes the previous selected version folder when it does not need to. There is only ever the last selected version, and so back to the board manager.

I think it's an issue, why would you only ever have one version when many exist for different projects? It's a lonely folder with only one version currently. That means it should make sense to download any version and use that versioned folder.

Am I making sense? Don't wipe the other versions, leave them there and have the board manager pick the correct one.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Manager (having more than one version)
Reply #5 - Dec 28th, 2023 at 10:03pm
Print Post  
It's how arduino works and how it's always worked. There is only ever one per platform.

The output requested from the yellow box will show us which config you have selected. If your toolbar is set to debug then then the release.vmps will be stale/old the debug.vmps will be valid.
« Last Edit: Dec 28th, 2023 at 10:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nullpointer
Newbies
*
Offline


Posts: 6
Joined: Dec 28th, 2023
Re: Board Manager (having more than one version)
Reply #6 - Dec 28th, 2023 at 11:30pm
Print Post  
I'm clearly not understanding this apologies, in previous versions I could switch between solutions and the code would compile based on the SDK whatever version. Now, the board manager only has one and so the upload to the chip fails.

Why does the board manager want only one revision? Also, why does it delete previous selections?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Manager (having more than one version)
Reply #7 - Dec 29th, 2023 at 1:43am
Print Post  
Visual Micro and Arduino IDE board managers work the same way. They have only ever allowed a single core from each platform to be installed at any one time. There is no way to specify a version for a project, it is only possible to select a board name.

Previously you might have configured two board support urls. One for the released versions of your toolchain and one for the beta versions. Then you would have has option to select a board from each of the two packages. The boards would have had slightly different names on the menus.

The best solution is to install arduino 2 and run it once. Then configure the visual micro (no IDE) to use a different folder for board manager as suggested previously. Then you will be able to switch in visual micro between visual micro (no ide) and arduino 2. Both will provide same functionality but use a different set of boards or cores.

This functionality has not changed in any updates.

« Last Edit: Dec 29th, 2023 at 1:44am by Tim@Visual Micro »  
Back to top
IP Logged
 
nullpointer
Newbies
*
Offline


Posts: 6
Joined: Dec 28th, 2023
Re: Board Manager (having more than one version)
Reply #8 - Dec 29th, 2023 at 11:38am
Print Post  
Thanks for your help on this Tim, I've a much clearer understanding what's going on now. I've conflated some functionality to a configuration set up so far back it's flaky at best.

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Board Manager (having more than one version)
Reply #9 - Dec 29th, 2023 at 2:33pm
Print Post  
Do you have the info you need to correct things now?
  
Back to top
IP Logged
 
nullpointer
Newbies
*
Offline


Posts: 6
Joined: Dec 28th, 2023
Re: Board Manager (having more than one version)
Reply #10 - Dec 29th, 2023 at 3:38pm
Print Post  
100%  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint