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 Error running preprocessor recipes - Unable to archive compiled files (Read 7250 times)
nicostak
Newbies
*
Offline


Posts: 7
Location: ddd
Joined: Mar 26th, 2014
Error running preprocessor recipes - Unable to archive compiled files
Apr 29th, 2016 at 1:21pm
Print Post  
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
Select All
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 y85at1\PinChangeInterrupt\PinChangeInterrupt.a" at1\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
Select All
#include <PinChangeInterrupt.h> 



The error is thrown no matter what code i try to compile ( for example also with)
Code
Select All
#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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #1 - Apr 29th, 2016 at 1:47pm
Print Post  
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
Location: ddd
Joined: Mar 26th, 2014
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #2 - Apr 29th, 2016 at 2:13pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #3 - Apr 29th, 2016 at 10:51pm
Print Post  
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
Location: ddd
Joined: Mar 26th, 2014
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #4 - Apr 30th, 2016 at 10:33am
Print Post  
Hi,
Sorry, i've forgot the tiny core link

here it is:
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #5 - Apr 30th, 2016 at 12:44pm
Print Post  
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
« Last Edit: Apr 30th, 2016 at 12:45pm by Tim@Visual Micro »  

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


Posts: 7
Location: ddd
Joined: Mar 26th, 2014
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #6 - Apr 30th, 2016 at 1:55pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running preprocessor recipes - Unable to archive compiled files
Reply #7 - Apr 30th, 2016 at 2:05pm
Print Post  
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 TopicPrint