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) Boards Manager won't add new boards (Read 13752 times)
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Boards Manager won't add new boards
Jun 5th, 2015 at 5:34am
Print Post  
I'm using Atmel Studio 6.2, Arduino 1.6.4, Visual Micro 1505.19 sp4.  The boards that show up in my list are the ones that were already set up in my Arduino IDE when I first set up VM: Arduino core, and Adafruit (added with Arduino IDE's Boards Manager).  I have since added some Boards Manager urls in VM's IDE configuration screen (and also added them to Arduino's url list, in the course of troubleshooting this problem.  didn't help).  These urls successfully load their contents into the Manage Boards tab of VM Explorer.  When I click a new board type, and install it, it appears to work in VM (the board greys out and become listed in the Installed section).  And it does work at some level (if I go to the Arduino IDE, it does have the new boards installed).  But the boards never actually become available to VM to use (not in the shortcut bar, Tools menu, etc.).  And if I close VM Explorer and open it again, the boards that I just downloaded are back to their uninstalled status, not greyed out and no longer in the Installed list.  VM will then happily "install" them all over again.

Clicking the "View user hardware folder" link at the bottom of VM Explorer gives the error "The system cannot find the file specified".  Not sure if that's related, but VM seems to have found the rest of the bits of my Arduino IDE (including the extra boards I had added before installing VM), so I'm not sure why it's balking now.  This is a pretty fresh install of windows on this computer, and I'm pretty sure I don't have a manually added hardware folder anywhere.  I've only used the Boards Manager on this computer.

I have uninstalled and reinstalled VM several times now, with reboots and everything, and this issue persists.  I noticed that the shortcut bars never really go away, even after uninstalling, they just become empty.  The Tools>Visual Micro menu does disappear, though.  At any rate, after every reinstall of VM, every attempt to install with the board manager, etc., the boards list only ever has the things it discovered when I initially installed VM.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #1 - Jun 5th, 2015 at 3:44pm
Print Post  
Hi,

You only need to add the board index urls to the arduino file>prefs not to both although I wouldn't expect that to be an issue. Both the vm and the arduino urls are combined.

1)

After making changes in boards manager of either arduino or visual micro you either need to click the Rescan button or re-start the ide.

2)

What is the name of the arduino app that is displayed on the tool bar by Visual Micro? Arduino 1.6?

3)

It is important you use sp6 which is the latest release. There have been many changes to bring support for the recent Arduino 1.6.2+ changes and Boards Manager http://www.visualmicro.com/page/Visual-Micro-Product-Version-History-Fixes-and-A...

Hopefully this info helps?

Thanks
« Last Edit: Jun 5th, 2015 at 3:45pm by Tim@Visual Micro »  
Back to top
IP Logged
 
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Re: Boards Manager won't add new boards
Reply #2 - Jun 5th, 2015 at 10:39pm
Print Post  
Yeah, I would expect to only have to add the urls in one place.  I had tried adding them to Arduino IDE's list early on, because I had noticed that the only ones that actually worked were the ones added through the Arduino IDE.  But adding them to Arduino IDE's list after the fact did not help.  My list of boards is still frozen at what it was when I first installed VM.

1: I have done both those things, numerous times throughout the process.   
2: Arduino 1.6
3: I just looked, and I can't actually find anywhere where it says what version I have installed.  I downloaded the version from the "Download Latest Visual Micro" link on the main download page just yesterday while going through the uninstall/reinstall cycle.  Underneath the download link it says "(version 1505.19 Sp4 released 30th May 2015)", so I'm assuming that's the version I've got.  Any way to verify this?  And if that is truly Sp4 and not just an unupdated description on the download page, where do I find Sp6?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #3 - Jun 5th, 2015 at 11:05pm
Print Post  
Oh thanks I forgot to alter the text of the version number on the downloads page. That explains a few things. oops

I didn't read your message the first time. 

The invalid user hardware folder is okay it just means you haven't got any user install hardware which would normally be in mydocuments/arduino/hardware (if you had added any)

The downloaded boards manager hardware is called "Contributed Hardware"

As a test please set "tools>options>visual micro>locations\contributions path" to a new test folder on your machine such as c:\contributions\test

Then use the visual micro boards manager to install everything

Click rescan and see if that resolves

If it does not then switch on tools>options>visual micro>user interface>trace

Then restart the ide and email what appears in the output window to info [at] visualmicro.com

Thanks



  
Back to top
IP Logged
 
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Re: Boards Manager won't add new boards
Reply #4 - Jun 6th, 2015 at 12:12am
Print Post  
OK, I set the contributions path to a test folder.  It was blank initially.  Should it have already been set to something?  Anywho, after setting that folder, under Manage Boards in VM Explorer, only the base Arduino boards showed as installed (not my Adafruit ones).  When I clicked the Adafruit ones to install, it finished in virtually no time.  When I clicked the other ones I have been trying to install, it took the minute or two it usually does to retrieve and install the files.  After clicking Rescan, the two new ones, that actually took time to download and install, disappeared.  But the Adafruit ones remained installed and available.  E-mailing you the results of the trace now.

Edit: The newly created contributions folder does appear to have the files for all three (Adafruit and the two that don't load).  The other two are for the bare atmega and the attiny, from the webpage linked from the VM configuration, with safe urls.

Edit edit: Tried with the ESP8266 url too, to see if maybe it was something particular to the two I had been trying.  Still no dice.  Appears to install, and files end up where they should in the contrib folder, but on a Rescan it goes back to appearing uninstalled, and never becomes available in the boards drop-down.
« Last Edit: Jun 6th, 2015 at 12:25am by CameronL »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #5 - Jun 6th, 2015 at 3:49pm
Print Post  
Please send the urls you are using to get additonal boardsand let me know the name and version of what is not installing

Thanks
  
Back to top
IP Logged
 
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Re: Boards Manager won't add new boards
Reply #6 - Jun 7th, 2015 at 4:36am
Print Post  
The following are the jsons I have added in VM configuration:

https://adafruit.github.io/arduino-board-index/package_adafruit_index.json

https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/packa...

https://raw.githubusercontent.com/carlosefr/atmega/master/package_carlosefr_atme...

VM Explorer is also showing me the contents of the following json's that I entered into the Arduino IDE's url list but not VM's:

http://arduino.esp8266.com/package_esp8266com_index.json

https://dl.dropboxusercontent.com/u/2807353/femtoCore/package_femtocow_attiny_in...

From all those, I have been attempting to install the attiny 1.0.1, the barebones atmega 1.1.0, and most recently the esp2866 1.6.4-673-g8cd3697 (but only to see if it would work, I don't intend to use it).
So far, nothing has installed.  The only boards VM sees are the ones I had added before initially installing VM.  Even adding the boards through the Arduino IDE, VM doesn't recognize anything other than the core and Adafruit ones.

Edit: not sure why it's splitting some of those urls into two lines.  It shows up as one line when I am editing the post, but gets split when I save.

Edit edit: This morning I tried uninstalling everything.  VM, Atmel Studio, Arduino, all of it, and reinstalling.  But the uninstalls don't do a very complete job, apparently.  After reinstalling, and before doing anything about boards manager, json url's, etc., everything is back to how it was.  Core + Adafruit installed, all the same board manager url's configured, etc.  Still can't install any new ones.

Edit edit edit: It was still looking at that manually configured contrib folder I created earlier (another setting that survived a complete reinstall).  When I cleared that setting and let it go to the default folder, it had only the core files (Adafruit not installed).  And upon trying to install the barebones atmega boards...  it worked!  Go figure.  I have absolutely no idea what was stopping it from working before, or what made it work now, but...  it does, so hurray?

Edit edit edit edit:  Argh!  After seeing the attiny and barebones boards install and work, I installed the Adafruit ones, too.  As soon as I installed them, it wiped out the attiny and barebones boards.  I was unable to reinstall them, even after uninstalling the Adafruit boards.  So now I'm right back where I was.  I can install the Adafruit boards and have them stick, but everything else disappears on a Rescan.

Edit 5: If I delete the entire Arduino15 folder in AppData\Roaming, then I can install the attiny and barebones boards.  I guess for now, I'll just avoid installing the Adafruit ones.  This whole thing is so bizarre...
« Last Edit: Jul 18th, 2015 at 10:29pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #7 - Jun 9th, 2015 at 12:38pm
Print Post  
Thanks for the info.

It sounds like visual micro is failing to load the adafruit package which causes it to stop attempting to load other packages. The order of load of packages is simply the order that windows passes a directory file list to Visual Micro. So it will be difficult to understand what is happening.

I will test the adafruit package thanks very much
  
Back to top
IP Logged
 
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Re: Boards Manager won't add new boards
Reply #8 - Jun 9th, 2015 at 12:50pm
Print Post  
Well, I'm assuming it's got something to do with some setting or configuration that lurked on my computer even after uninstalling all the relevant programs (Atmel Studio, Visual Micro, Arduino IDE).  If it was the Adafruit url itself, loads of people should have had this problem.  So I've gone scorched earth and wiped the entire laptop to start over clean.  I'll let you know how that goes once I get through the interminable windows update cycle and can get software reloaded.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #9 - Jun 9th, 2015 at 1:01pm
Print Post  
Hi,

It's a simpler system than you think.

Make sure your visual micro "contributions path" is empty so that all your software uses the arduino15 for installated packages.

Then you can delete the arduino15 to re-start from fresh.

Until adafruit fix the issue(s) in the json files or we find a fix I suggest only adding urls to the arduino ide and let arduino expand and install the new hardware via boards manager.

At least then you only have to worry about a single ide installing hardware for you.

If you install a url that causes a breakage you can simply delete the .json file from arduino15\packages. Then rescan or re-start visual micro.

Personally I have also found the adafruit files to be a problem. I would prefer not to support the adafruit hardware until they just include their own boards in their index file. They should leave esp8266 to esp8266.com (which is also still maturing)
« Last Edit: Jun 9th, 2015 at 11:29pm by Tim@Visual Micro »  
Back to top
IP Logged
 
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Re: Boards Manager won't add new boards
Reply #10 - Jun 9th, 2015 at 11:14pm
Print Post  
Yep, it certainly seems to stem from using the Adafruit url.  I tried including it last in the list of urls to see if the other stuff could load before it throws a monkey wrench in, but no dice.  But if I keep it out of the picture entirely, everything else works fine.  And the core boards include the Gemma, which means I can still program my Trinkets.  I guess I'll just leave it at that for now.
  
Back to top
 
IP Logged
 
CameronL
Newbies
*
Offline


Posts: 7
Joined: Jun 5th, 2015
Re: Boards Manager won't add new boards
Reply #11 - Jun 14th, 2015 at 5:34pm
Print Post  
Just a follow-up, I was able to manually install the Adafruit boards without hosing the others.  So it's something particular to their board manager json.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #12 - Jun 14th, 2015 at 5:59pm
Print Post  
Thanks for the update.

Visual micro uses the SharpZipLib library to unzip the tar balls, bzip, gzip files etc of each core. It's been a problem with the esp8266 hardware, I had to tweak the SharpLibZip library source to "sort of" get it working.

So we will move over to using 7Zip or something that might be more reliable in future releases of visual micro. Sad because for normal zips and most artchives from most sources the SharpZipLib has proved to work well  Undecided
« Last Edit: Jun 14th, 2015 at 6:00pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Boards Manager won't add new boards
Reply #13 - Jun 22nd, 2015 at 8:18pm
Print Post  
« Last Edit: Jun 22nd, 2015 at 8:18pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint