Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Error running preprocessor recipes - Unable to archive compiled files (Read 4511 times)
nicostak
Newbies
*
Offline



Posts: 7
ddd
Error running preprocessor recipes - Unable to archive compiled files
Apr 29th, 2016 at 2:21pm
 
Hi. I moved on Visual Studio 2015 to work with my attiny chips ( programmed with arduino as ISP ) .

I wrote lot of sketches and worked always fine, but now i've included a library that gives me a compilation error when i try to deploy my project on the IC.
I must tell first that the same code is compiling fine on arduino ide.

I always use libraries from the web and never experienced any error, just this one is crashing all out.

The Error output is:
Code:
Compiling 'Flussimetro' for 'ATtiny x5 w/ ATtiny85 @ 1 MHz  (internal oscillator; BOD disabled)'
Error running preprocessor recipes
	Preprocess: "C:\Program Files\arduino-1.5.8\hardware\tools\avr\bin\avr-ar" rcs "C:\Users\nicol\AppData\Local\Temp\VMicroBuilds\Flussimetro\tiny_tinyx5_attiny85at1/C:\Users\nicol\AppData\Local\Temp\VMicroBuilds\Flussimetro\tiny_tinyx5_attiny85at1\PinChangeInterrupt\PinChangeInterrupt.a" "C:\Users\nicol\AppData\Local\Temp\VMicroBuilds\Flussimetro\tiny_tinyx5_attiny85at1\PinChangeInterrupt\PinChangeInterrupt.cpp.o"
Unable to archive compiled files
Error running preprocessor recipes
Error running preprocessor recipes
Error compiling libraries
 



In my sketch, i included the library this way:
Code:
#include <PinChangeInterrupt.h> 



The error is thrown no matter what code i try to compile ( for example also with)
Code:
#include <PinChangeInterrupt.h>

void setup() {

}
void loop() {

}
 



Hope someone could help me, i upload the library as attachment if someone could try to run it









Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10387
United Kingdom
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #1 - Apr 29th, 2016 at 2:47pm
 
I will take a look

Please confirm where you downloaded the hardware and library from. urls please

Thanks
Back to top
 
WWW  
IP Logged
 
nicostak
Newbies
*
Offline



Posts: 7
ddd
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #2 - Apr 29th, 2016 at 3:13pm
 
Hi,

Library :
https://github.com/NicoHood/PinChangeInterrupt

Arduino IDE downloaded from:
http://arduino.cc/download_handler.php?f=/arduino-1.5.8-windows.zip

Thank you for your interest and fast reply
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10387
United Kingdom
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #3 - Apr 29th, 2016 at 11:51pm
 
Thanks for the library link and it's useful to know you are using arduino 1.5.x

Can you please give a link to the hardware you downloaded and installed for the attiny 85

Thanks
Back to top
 
WWW  
IP Logged
 
nicostak
Newbies
*
Offline



Posts: 7
ddd
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #4 - Apr 30th, 2016 at 11:33am
 
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10387
United Kingdom
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #5 - Apr 30th, 2016 at 1:44pm
 
Thanks. I have found out what is happening.

1) Workaround for your existing 1.5.x config

The PinChange Library has a setting that is supported in later Arduino 1.6.x versions but is not supported for the Arduino 1.5.x version you are using.

Visual Micro is incorrectly trying to use the property and in the next release will ignore it if the Arduino version < 1.6. The error message is also confusing and has been changed.

You can remove the property yourself. It is called DotALinkage=true. The property is in the text file called "document/arduino/libraries/PinChangeInterrupt/library.properties"

After removing the property click "Tools>Visual Micro>Reload Toolchains" or restart the ide.

2) Alternative 1.6.x

You can use the zips from arduino.cc to unpack arduino 1.6.8. Both Arduino 1.5 and 1.6 can be registered with Visual Micro at the same time then you can easily switch between the two using the tool bar.

You can see in the image that I have used the "Micro Explorer>Board Manager" to install a Tiny85 core from David Mellis. After doing so I opened the PinChangeInterrupt example added the #define LED_BUILTIN and then it compiled fine.

You might have good reason for sticking with Arduino 1.5 so I am not questioning that but thought it useful to show the alternative.

Thanks for the post
Back to top
« Last Edit: Apr 30th, 2016 at 1:45pm by Visual Micro »  
WWW  
IP Logged
 
nicostak
Newbies
*
Offline



Posts: 7
ddd
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #6 - Apr 30th, 2016 at 2:55pm
 
Thank you so much, that worked like a charm.

Just for yearbooks, long-story-short, i've switched in the past to 1.6.x edition of arduino IDE but i've experienced a lot of problems and frustration when i discovered that applications developed and working with 1.5.x started to output lines over lines of errors and warnings.Tried to inspect took me too long time with partial results . So i came back and happy again.

Thank you again for your intereset in resolving this problem.

P.S. I don't want to take advantage of your kindness,but does Visualmicro supports debuggers like Atmel-ice ( the only one available for tiny's) for code step by step debugging?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10387
United Kingdom
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #7 - Apr 30th, 2016 at 3:05pm
 
Hi,

Quote:
i've switched in the past to 1.6.x edition of arduino IDE but i've experienced a lot of problems and frustration when i discovered that applications developed and working with 1.5.x started to output lines over lines of errors


Yes that makes sense and that is why Visual Micro still supports the older versions of Arduino. There are so many variations of cores and libs on the web that I agree it is impossible to expect everyone to use the latest Arduino.

The Arduino Ide is also often in transitional state with the next "wonderful" but different way of working Smiley It's been a bumpy ride for the past year but they say it has stabilized now, so Visual Micro is slowly doing the same.

Quote:
Visualmicro supports debuggers like Atmel-ice ( the only one available for tiny's) for code step by step debugging


Not directly but you can build with Visual Micro (in any ide) or the Arduino Ide. Then in Atmel Studio click "File>Open object file for debugging" it will guide you through and create a read-only "debugger friendly" project from the .elf produced by the build.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print