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 Installing a user library (Read 6412 times)
Ken Spurling
Newbies
*
Offline


Posts: 4
Location: UK
Joined: May 10th, 2013
Installing a user library
Jun 19th, 2014 at 2:25pm
Print Post  
Hi, I have been using Visual micro with Atmel Studio for some time with good results but I have now hit a problem that I can't get around. 

I want to use the cheaper ethernet module based on the ENC28J60. To do this I need to use the UIP Ethernet Library. Using the Arduino IDE 1.0.5 all works fine, I installed the UIP library compiled a library example and all worked using a Duemilanove.

But how do I do the same using Visual Micro (latest download) and Atmel Studio (6.2) running under Windows 8.1  16 bit.

The Visual Micro documentation for adding a library says use Project> Add/Import sketch library> User. But I can't do this as the User menu item is greyed out. Hovering over it gives a tooltip "adding child items to this menu will enable it".

I have tried manually adding the new library to the libraries folders under both the Arduino ide folder and the sketchbook folder, as I did for the Arduino IDE which works, but to no avail. 

I'm sure I must be missing something fairly obvious, can someone help please?

thanks
« Last Edit: Jun 19th, 2014 at 2:32pm by Ken Spurling »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing a user library
Reply #1 - Jun 19th, 2014 at 2:35pm
Print Post  
Hi Ken,

Can you please tell me what path you have entered in the "Sketchbook Location" box for the Arduino 1.0.x application

You can find this in "Tools>Visual Micro>Ide Locations"

Thanks
  
Back to top
IP Logged
 
Ken Spurling
Newbies
*
Offline


Posts: 4
Location: UK
Joined: May 10th, 2013
Re: Installing a user library
Reply #2 - Jun 19th, 2014 at 2:51pm
Print Post  
Hi,

C:\Users\Ken Spurling\Documents\Arduino. This has a folder libraries which contains folder UIPEthernet which is a copy off the equivalent Arduino IDE folder that works.

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing a user library
Reply #3 - Jun 19th, 2014 at 7:50pm
Print Post  
Hi,

That setup sounds quite normal. 

Some questions

Does the library appear under in "tools>visual micro>micro explorer"?

What do you mean is a copy of the Arduino Ide folder that works. Do you mean you are using the same sketchbook path for both apps and the same library or is the sketchbook folder different with a different copy of the library?

Can you please switch on "tools>options>viual micro>user interface trace" and re-start the ide then email the output that appears to info [at]visualmicro.com. Please include a zipped copy of the library with the email

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing a user library
Reply #4 - Jun 20th, 2014 at 1:52am
Print Post  
Hi Ken,

Thanks for all the great info by email. I found the problem it's a good one.

First of all visual micro should find the library regardless of where it is located (arduinoide/libraries or sketchbook/libraries). Sketchbook libs should take precedence because only one can be used during compile (based on the arduino.cc rules). 

1)

Arduino are in the process of moving to a new library format. Visual Micro supports both/all formats but auto detects the latest format by checking for an arduino library.properties file which isn't really needed for older format libraries and hasn't up until now been present.

The UIPEthernet library is an old format library but contains library.properties file. You can delete or rename the file then click the "tools>visual micro>reload tool chains" menu. The library should then appear on the menu. The file isn't needed by either visual micro or the arduino 1.0.5 ide. In fact it isn't currently needed by any of the arduino ide's while the library is in 1.0.x format.

It might be a good idea to re-start the ide.


EDITED
« Last Edit: Jun 20th, 2014 at 11:28am by Tim@Visual Micro »  
Back to top
IP Logged
 
Ken Spurling
Newbies
*
Offline


Posts: 4
Location: UK
Joined: May 10th, 2013
Re: Installing a user library
Reply #5 - Jun 20th, 2014 at 8:45am
Print Post  
Hi Tim,

Thanks for your help.

Yes, renaming the library.properties file fixed the problem and I can now see and use the library to produce a working Arduino application.

On the missing menu item I tried your suggestions, including installing the new beta, without success. I have attached a screen dump of the menu.

I'm a real fan of the Visual Micro product. Having intellisense and debug available in a mature IDE  is the only way for me. Keep up the good work.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Ken Spurling
Newbies
*
Offline


Posts: 4
Location: UK
Joined: May 10th, 2013
Re: Installing a user library
Reply #6 - Jun 20th, 2014 at 11:01am
Print Post  
Hi Tim,

Hey I have just realized I do have that menu item, it's platform explorer isn't it. Use it all the time but only just noticed the window comes up as Micro Explorer. Sorry for the misunderstanding.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Installing a user library
Reply #7 - Jun 20th, 2014 at 11:27am
Print Post  
Funny, I was about to post to say sorry i was confused and it has been renamed to "Platform Explorer" on the menu  Smiley

So everything is working well, thanks for the feedback
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint