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) Sparkfun pro-micro - Error reading variants path (Read 10372 times)
neuralian
Newbies
*
Offline


Posts: 7
Joined: Jan 20th, 2014
Sparkfun pro-micro - Error reading variants path
Mar 10th, 2014 at 8:51pm
Print Post  
I am trying to program a Sparkfun pro-micro 3.3v arduino clone. I have the files installed and included the path to the folder containing pins_arduino.h in the toolchain compiler directories list.   

On compile I see a 'pop-up' message: 'error reading variants path' and the compiler output is:

====
Compiling 'promicrotest_04' for 'SparkFun Pro Micro1 8MHz/3.3V'
promicrotest_04.ino:In file included from
arduino.h:213:26: error: pins_ No such file or directory
promicrotest_04.ino:No such file or directory
Error compiling

=====

If I save and restart the path to pins_arduino.h is missing from the directories list. I am sure it is the right path.  (C:\Program Files (x86)\Arduino1p05\hardware\SF32u4_boards\variants\promicro) 

It all works OK with the Arduino IDE.

I am using Arduino 1.05 because I also want to use Teensy, which requires that version.

Thanks.
  
Back to top
 
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Sparkfun pro-micro - Error reading variants path
Reply #1 - Mar 10th, 2014 at 9:01pm
Print Post  
Hi Mike,

I am developing with the same board at this time. You need to get some files from SparkFun and add them to the IDE \hardware directory. In my case its:

C:\Program Files (x86)\Arduino 1.0\hardware\mega-pro-3.3V

Are you setup this way ?

For me it has been working fine for two months.
« Last Edit: Mar 10th, 2014 at 9:05pm by Gilles Plante »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sparkfun pro-micro - Error reading variants path
Reply #2 - Mar 10th, 2014 at 9:14pm
Print Post  
Hi Mike,

Gilles is right about installing the sparkfun hardware/toolchain in "arduinoIde\hardware\". 

Another optional location which is not dependent on ide revision is sketchbookfolder\hardware\ (normally documents\arduino\hardware)

I am not sure if that is the current board name. It's worth revisiting the sparkfun page and downloading the definition(s) for Arduino 1.0 which will be compatible with 1.0.5.

It is also an idea to clear the current sparkfun definitions (and tool chain files) you have installed for the board prior to copying new ones from sparkun.com
« Last Edit: Mar 10th, 2014 at 9:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
neuralian
Newbies
*
Offline


Posts: 7
Joined: Jan 20th, 2014
Re: Sparkfun pro-micro - Error reading variants path
Reply #3 - Mar 10th, 2014 at 9:59pm
Print Post  
Thanks for your prompt help, Guys.

I uninstalled Atmel Studio, Visual Micro & Arduino & re-installed them, with the pro-micro board files ...

... and now it works! Smiley

I think maybe the issue was not having the right version of Visual Micro for Arduino 1.05 (ie RTFM).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sparkfun pro-micro - Error reading variants path
Reply #4 - Mar 10th, 2014 at 10:01pm
Print Post  
Great, thanks for the update and thanks to Gilles
« Last Edit: Mar 10th, 2014 at 10:01pm by Tim@Visual Micro »  
Back to top
IP Logged
 
neuralian
Newbies
*
Offline


Posts: 7
Joined: Jan 20th, 2014
Re: Sparkfun pro-micro - Error reading variants path
Reply #5 - Mar 11th, 2014 at 3:35am
Print Post  
Further update: Can now program Sparkfun pro-micro 3.3 & Teensy 3.1 using Atmel Studio 6.1.

When loading Teensy projects there is an error message saying that the processor is not supported, but it seems to work if I just ignore that message.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sparkfun pro-micro - Error reading variants path
Reply #6 - Mar 11th, 2014 at 1:03pm
Print Post  
Great.

Question. Have you used the Teensy app option in Visual Micro or Arduino 1.0.x?

Thanks
  
Back to top
IP Logged
 
neuralian
Newbies
*
Offline


Posts: 7
Joined: Jan 20th, 2014
Re: Sparkfun pro-micro - Error reading variants path
Reply #7 - Mar 11th, 2014 at 9:19pm
Print Post  
I have installed the Teensyduino add-on for Arduino 1.05, and can compile and upload code to Teensy boards using the Arduino IDE. I have configured AS6.1 for Teensy and can compile & upload code to Teensy boards using AS6.1.  Is that what you mean by "Teensy App"?

I use Uno, Sparkfun pro-micro 3.3v and Teensy 3.1.  Atmel Studio + the Visual Micro add-on lets me program all of them with a real IDE. I have not tried debugging - it's next on my list. That was my main reason for moving to this IDE. The Arduino IDE is hopeless for debugging when projects get slightly complicated.  Mine are getting slightly complicated.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sparkfun pro-micro - Error reading variants path
Reply #8 - Mar 11th, 2014 at 9:37pm
Print Post  
Hi mike,

Yes sorry I wasn't very clear. If you have set your Teensyduino Ide location in Visual Micro for the Teensy application then that answers the question thanks. 

I look forward to one day getting back to some projects, yours sound interesting.

Quote:
When loading Teensy projects there is an error message saying that the processor is not supported, but it seems to work if I just ignore that message

The reason I ask is that one of the main differences between using the Arduino 1.0.x and the Teensy options in Visual Micro is to prevent this message.

Does this message appear for every Teensy project? Even the ones that use Uno or the sparkfun board?

Thanks
« Last Edit: Mar 11th, 2014 at 9:37pm by Tim@Visual Micro »  
Back to top
IP Logged
 
neuralian
Newbies
*
Offline


Posts: 7
Joined: Jan 20th, 2014
Re: Sparkfun pro-micro - Error reading variants path
Reply #9 - Mar 11th, 2014 at 11:30pm
Print Post  
Hi Tim:

Teensyduino.exe now seems to modify an existing Arduino installation rather than installing a separate Teensy application.  I have only one Arduino IDE, v1.05.  Teensy and pro-micro boards show up in that.  

In Atmel Studio I can compile and upload to a Teensy 3.1 whether 'micro apps' is selecting 'Teensy' or 'Arduino 1.0.x'.  I get the error message either way when I load a saved Teensy project, but not when I load a pro-micro project.

« Last Edit: Mar 11th, 2014 at 11:32pm by neuralian »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sparkfun pro-micro - Error reading variants path
Reply #10 - Mar 12th, 2014 at 11:44am
Print Post  
Mi Mike,

Yes I know thanks. One of the only differences between the Teensy option in Visual Micro and the Arduino 1.0.x is that we handle the "non-atmel" processor of Teensy 3x

I think that if you remove the folder location from Arduino 1.0.x and just use the Teensy option that error when you open a project will go away. However because you have the error I would open the project, select a normal board like the Uno then close and save the project. Then re-open and select the Teensy 3 using the "Teensy" application option in Visual Micro. Then save and close your project. When you next open the project I would not expect to see the error.

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint