Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
>> >> Error running preprocessor recipes - Unable to archive compiled files
https://www.visualmicro.com/forums/YaBB.pl?num=1461936082

Message started by nicostak on Apr 29th, 2016 at 2:21pm

Title: Error running preprocessor recipes - Unable to archive compiled files
Post by nicostak on 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
[/code):

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() {

}
[/code]

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










Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by Visual Micro on Apr 29th, 2016 at 2:47pm
I will take a look

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

Thanks

Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by nicostak on 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

Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by Visual Micro on 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

Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by nicostak on Apr 30th, 2016 at 11:33am
Hi,
Sorry, i've forgot the tiny core link

here it is:
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/arduino-tiny/arduino-tiny-0150-0020.zip

Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by Visual Micro on 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
ATTiny-PinChange-DavidMellis.png (83 KB | )

Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by nicostak on 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?

Title: Re: Error running preprocessor recipes - Unable to archive compiled files
Post by Visual Micro on 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 :) 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.

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.