Welcome! Log In Create A New Profile

Advanced

Recent problem compiling with Arduino

Posted by Dobert 
Recent problem compiling with Arduino
May 17, 2012 04:53AM
I’ve been compiling and uploading with Arduino for some time without problems. However after a computer crash, I downloaded and re-installed the Arduino, Sprinter and sanguinolu software/firmware and when I attempt to compile, I get the following error codes:

In file included from arc_func.cpp:26
/Sprinter.h:6:22: error: Arduino.h No such file or directory
In file included from arc_func.cpp:26
Sprinter.h:96: error: variable or field ’manage _inactivity’ declared void
Sprinter.h:96: error: ’byte was not declared in this scope
Sprinter h107: error: variable or field ’kill’ declared void
Sprinter h107: error:’byte’was nod declared in this scope


I also noticed the text “arguino W/ ATmega644P on Com 1” in the bottom margin in Arduino.
I’m using COM 6.

I really need some help on this one.
Any idea what I’m doing wrong?
Re: Recent problem compiling with Arduino
May 17, 2012 11:41AM
Is the reinstall a newer version of Arduino IDE? There are known issues with Sprinter and Arduino 1.0.

Does the compiler work at all? Try compiling (but not uploading) one of the Arduino examples.
Re: Recent problem compiling with Arduino
May 18, 2012 01:40PM
Yes I reinstalled the the latest version “Arduino 1.0.”
The compiler works, but gives errors
I’ve taken a look at the advice from sfisher10 “Known issues” but most of the suggested program lines that need inserting are already in the Arduino 1.0 files and the other options resulted in more errors.

So I went back to the Ardino-22 version. This was working a week ago, but now I get errors!
The compiler gives the following errors:
In file included from heater.cpp:28:
/pins.h:409:3: error #error Oeps!Make sure you have 'Arduino Mega' from the 'Tools → boards' menu.
Avr-gcc sketch-may18a.ccp.0: No such file or directory
.

I'm using a sanguinololu 1.3a. and I'm sure that my software setup is O.K. As I can choose the Tools/Board “sanguino W/ATmega644P” option

Any ideas?
Re: Recent problem compiling with Arduino
May 18, 2012 06:35PM
To work with Arduino 1.0 you want to install the Gen7 Arduino IDE Support 2.0 package instead of sanguino extensions. Consider it to be a RepRap Arduino IDE Support package. And likely I sound like a broken record ;-)


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Recent problem compiling with Arduino
May 20, 2012 03:03PM
I took up the gen7 suggestion, see attachment for overview setup and errors.

Although Arduino-1.0 still has errors, I'm happy to say that I'm able to compile with both Sprinter and Marlin using the Arduino-23 version. See attachment.

Can't upload at the moment because I'm waiting for a replacement for my Atema644P which I managed to blow. Don't ask how, It's too embarrassing.

Thanks for the suggestions. I'd still like to work with Arduino 1.0, but it's no longer a necessity.

Thanks again.
Attachments:
open | download - Screenshot Arduino 1.0 with sprinter.doc (245.5 KB)
open | download - Marlin.doc (211 KB)
Re: Recent problem compiling with Arduino
May 21, 2012 05:21AM
Next time, please try to copy error messages as text into here, like you did in your first post. There's even a button to mark text as formatted code in this row above the text input field. Or attach at least PNGs.

If there is no Arduino.h file, installing the Gen7 Arduino IDE Support package didn't complete. Do you see these six additional entries in Menu -> Tools -> Board? Did you select one of these? Likely you want to choose "Gen7 with ATmega644P and 16 MHz".


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Recent problem compiling with Arduino
May 23, 2012 02:43PM
Thanks for the advice. The RepRap forum is my first forum.
I though I was being helpful. Nether the less, I’m a reasonably fast learner.

My directory setup is Arduino-1.0/Hardware/Gen7. I used the Sprinter 18ad4ff firmware and the Gen7 was derived from the Gen7+Arduino+IDE+Support.

In Arduino Tools I can choose Atmega644P at 16 Mhz and 20 MHz.

However I get the same results:

Cursor jumps to SD2Card.ccp tap and highlights digitalWrite(chipSelectPin_, HIGH);

The main error is “HIGH was not declared in the scope.

The follow-up errors are
Sd2card.ccp: 20:22 error: WProgram.h: No such file or directory
Sd2card.ccp: In member function ‘void Sd2card: : chipsetSelectHigh () ‘: 20:22 error:
Sd2card.ccp: 145: error: ‘HIGH was not declared in this scope
And many more errors starting with Sd2card.ccp:

I hope this information is enough to point you in the right direction

Bye the way I’m really grateful for the help in this forum.
I’m having lots of fun printing my own designs made in Solid Works.
This is part of a project I'm working on to build an insect friendly catcher/releaser.
Re: Recent problem compiling with Arduino
May 24, 2012 06:16AM
I think this one answers your question: [github.com]

Sprinter isn't ready for Arduino 1.0, yet.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Sorry, only registered users may post in this forum.

Click here to login