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 How change install new boards folder... (Read 950 times)
xbary_pb
Junior Member
**
Offline


Posts: 12
Joined: Dec 22nd, 2015
How change install new boards folder...
Nov 13th, 2020 at 9:44pm
Print Post  
Hello

I have a question, what should be done and where to make new arduino boards install in their fixed folder, e.g. C:\Works\hardware ??
I've changed here already

https://drive.google.com/file/d/1j0Q-UAuna_NCq3u3Xda36pGJeHqHCWTS/view

I have any Arduino IDE uninstalled.

XBary
« Last Edit: Nov 13th, 2020 at 9:45pm by xbary_pb »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How change install new boards folder...
Reply #1 - Nov 14th, 2020 at 12:02am
Print Post  
There are two different Arduino compatible systems to install hardware. 

The arduino sketchbook folder controls a few things but mainly a sub folder called Libararies where user installed libraries are located and a sub folder called hardware that confforms to the arduino 3rd party hardware specification.

Alternatively Board Manager is used along with the json index files such as the ones you have added to the locations window. The board manager in Visual Micro uses the same rules as the arduino ide which means the app_data\local\arduino15 is used by default. If a \portable sub folder exists under the arduino.exe folder then we look there instead. Visual Micro has one additional path property that you can set in "vMicro>General>Global Options" called "Contributions Folder/Path"

If you want to change sketchbook and downloadable contributions paths in the way you have described you should try to be familiar with the arduino 3rd party hardware specification and also the rules that the arduino ide enforces. This will avoid build problems when you use other peoples guides for certain arduino projects. They often relate to default sketch book folder locations which has a lot of importance (as described above). The default arduino sketchbook location is mydocuments/arduino. You have overriden it so keep that in mind when looking for which \libraries you have installed.

Finally beaware that without the arduino ide you don't have the arduino\libraries folder in the library path resolution chain. This still allows default ide libraries to be overriden by your own installation of a library BUT is a fallback location for architectures that don't meet your installed library version. It gives more flexibility especially for new arduino users.

If you set the sketchbook folder to c:\mywork then you should not set the contributions folder to c:\mywork\hardware. "c:\mywork\hardware" will be reserved for hardware that has not been designed for board manager use. The two sets of hardware cores should use different locations. 

Are you experienced with the arduino ide?

« Last Edit: Nov 14th, 2020 at 12:13am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
xbary_pb
Junior Member
**
Offline


Posts: 12
Joined: Dec 22nd, 2015
Re: How change install new boards folder...
Reply #2 - Nov 14th, 2020 at 11:31pm
Print Post  
In arduino IDE I know how and where, but I don't use it. This IDE is terrible ... I prefer the Visual Micro plugin.

After setting the "Contributions Folder / Path" to my path (C: \ Works), now when installing new boards, unpacked packages are in C: \ Works \ staging \ packages, but they are installed in C: \ Works \ packages \ . Only manually, as the archive will indicate. ZIP, the boards are installed in C: \ Works \ hardware. But it is not complete, because the compiler must be properly installed ...
It's a pity that everything is handcrafted, and it gets messy, part of something here, part of something. etc etc.

Well, you will have to manually install them so that the boards are in c: \ works \ hardware

Thank you
regards
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How change install new boards folder...
Reply #3 - Nov 14th, 2020 at 11:59pm
Print Post  
I'm sorry but I don't think I fully understand what you are asking for. We use same framework that Arduino and all compatibles are designed to use, via the Board Manager system.

Questions, please answer all three:-

  • Are you aware of the arduino 3rd party hardware spec and how the Board Manager system works?
  • Are you asking for something that the Arduino framework supports but that Visual Micro does not support?
  • Did you read the note about not confusing the sketch book folder with the downloadable contributions location?


Thanks
« Last Edit: Nov 15th, 2020 at 12:00am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint