Welcome! Log In Create A New Profile

Advanced

Arduino 12 issues?

Posted by Rick 
Arduino 12 issues?
December 08, 2008 07:53AM
Copied the libraries for RepRap to the Arduino folder. When I start up the Arduino host I get these error messages:

In file included from hardware\libraries\ThermoplastExtruder_SNAP_v1/ThermoplastExtruder_SNAP_v1.h:37,
from ThermoplastExtruder_SNAP_v1.cpp:1:
c:/documents and settings/erickabaugh/desktop/rick's stuff/reprap/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before 'double'
c:/documents and settings/erickabaugh/desktop/rick's stuff/reprap/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'
c:/documents and settings/erickabaugh/desktop/rick's stuff/reprap/arduino-0012/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'

It appears to be an error in math.h of the Arduino package libraries called by ThermoplastExtruder_SNAP_v1.cpp. Additionally, when I try to compile Single_Arduino_Snap.pde it throws this error:

In file included from C:\Documents and Settings\erickabaugh\Desktop\Rick's Stuff\RepRap\arduino-0012\hardware\cores\arduino/WProgram.h:4,

and highlights line 53: "#include " I've no idea what's goin' on here...

Anybody else having this problem with Arduino 12? Should I try an earlier version?
Re: Arduino 12 issues?
December 08, 2008 09:26AM
Hmm...reverted to Arduino 11. Got a handful of warnings (references to an obsolete #include) at the initial startup, no errors and the warnings do not appear in subsequent loads of the Arduino Host. Interesting point of note...Single_Arduino_SNAP.pde succesfully compiles in Arduino 11 for me. Not sure if anyone else has tried 12 or has had a similar problem. For now, I guess I'll stick to 11 unless somebody has a reason for me to go to 12.
Re: Arduino 12 issues?
January 15, 2009 03:53PM
I am getting the same error, :

Error building library"ThermoplastExtruder_SNAP_v1"

In file included from ThermoplastExtruder_SNAP_v1.h:37,
from ThermoplastExtruder_SNAP_v1.cpp:1:
/usr/lib/gcc/avr/4.3.0/../../../../avr/include/math.h:439: error: expected unqualified-id before
Re: Arduino 12 issues?
January 21, 2009 04:45AM
This may be useful:
[www.arduino.cc]

It suggests that there are problems with Arduino 00012. I did delete the #define for round() in wiring.h but then encountered further errors in stlib.h

Vik :v)
Re: Arduino 12 issues?
February 01, 2009 04:19PM
I just updated the Single_Arduino_SNAP libraries in subversion.
They _should_ now build on Arduino-0012 and the reported problems of the firmware being too large to fit are also resolved.

[reprap.svn.sourceforge.net]

I don't have a setup which works with SNAP, so if anyone cares to give this a spin it would be great.


~/= Marius

--
We are Elektropeople for a better living.
[reprap.soup.io]
[www.metalab.at]
Re: Arduino 12 issues?
September 30, 2009 06:09AM
Hi

Using gen2 electronics. auduino-0017 and reprap firmware 1.3

got this error

/usr/lib/gcc/avr/4.3.2/../../../avr/include/math.h:439: error: expected `)' before ‘double’

found this quote

[www.arduino.cc]

Re: What version of avr-libc goes with 011?
Reply #5 - 01.10.2008 at 16:24:34
Arduino's wiring.h module #defines an alternative to round(), so this may be causing the problem. If you are manually #include'ing math.h, you might try

#undef round

beforehand.

Alternatively, it might be a problem with line 438 of math.h.
Mikal

and off I go to see if it works

Stephen
Re: Arduino 17 issues?
September 30, 2009 07:29AM
Still no joy. Just get a new and interesting error.

Tried downloading arduino 11 and get this error message when I tried to run it.
(bear in mind arduino 17 works fine)

Exception in thread "main" java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:443)
at java.lang.Integer.parseInt(Integer.java:514)
at processing.app.Preferences.getInteger(Preferences.java:750)
at processing.app.Editor.restorePreferences(Editor.java:420)
at processing.app.Base.(Base.java:155)
at processing.app.Base.main(Base.java:104)

Joy is me. I love java.

So I have installed version 11 of Arduino on another system (EEE pc would you believe) and the code compiles and uploads fine.

So it would appear that the latest version of the firmware of SNAP does not work
with the arduino software.

Of course when I plugged the newly loaded arduino into the lovingly built reprap it promptly goes into an epileptic fit and tries to destroy itself.

Such is life.

Stephen

P.s. ARRR£^%^^$^$%$£%$£%
Re: Arduino 12 issues?
September 30, 2009 07:59AM
And I just have to come back for more ....

kintel() points to a special version (previous messages)

[reprap.svn.sourceforge.net]


/*
Single_Arduino_SNAP_v2.pde - 2nd Generation RepRap Protocol

History:
* (0.1) Created initial version by Zach Smith.

License: GPL v2.0
*/

But I get the error

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected unqualified-id before ‘int’

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected `)' before ‘int’

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected `)' before ‘int’

In function ‘void setup()’:
In function ‘void loop()’:
In function ‘int extruder_get_temperature()’:
In function ‘int extruder_read_thermocouple()’:
In function ‘void init_steppers()’:
In function ‘void dda_move(long int)’:
In function ‘void set_target(float, float, float)’:
In function ‘void set_position(float, float, float)’:
In function ‘void calculate_deltas()’:
Bad error line: -9


So I tried the other version on the file

/*
Single_Arduino_SNAP.pde - Combined cartesian bot + extruder firmware.

History:
* (0.1) Created initial version by Zach Smith.
* (0.2) Updated to work with the various optimizations and extruder emulation by Zach Smith
* (0.3) Updated with new library changes by Zach Smith.

License: GPL v2.0
*/

//our config file
#include "init.h"

sort out the init.h file needing to be renamed from init_dist.h

and get


/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected unqualified-id before ‘int’

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected `)' before ‘int’

/usr/lib/gcc/avr/4.3.2/../../../avr/include/stdlib.h:111: error: expected `)' before ‘int’
Re: Arduino 12 issues?
September 30, 2009 08:22AM
Googled the last error and found this

[www.arduino.cc]

/Users/tylerlavite/Desktop/arduino-0015/hardware/tools/avr/bin/../lib/gcc/avr/4.
3.2/../../../../avr/include/stdlib.h:111: error: expected unqualified-id before 'int'

and a solution......

The following changes to FrequencyTimer2 should get it to compile in 0015:

In FrequencyTimer2.h, replace the line
#include
with
#include
And put the line
#include
into to FrequencyTimer2.cpp (just after the #include

taken from here: [www.arduino.cc]

Stuff has changed in the Arduino libraries since FrequencyTimer2 was written. Also I don't know if this will be sufficient to make it work as the Mega has a different processor than the ATMega168 that was current when the lib came out.

Andrew
Re: Arduino 12 issues?
September 30, 2009 08:26AM
I have to ask am I doing something fundamentally wrong?

Surly other people have compiled the SNAP code for the Arduino.

Or has everyone abandoned Gen 2 electronics in favor of Gen 3 ?

Stephen
emt
Re: Arduino 12 issues?
September 30, 2009 09:33AM
Hi

I think most have switched to G code firmware.

I am sure you can get this for G2 electronics. My understanding is up until very recently most people were using G2 either on a single Arduino or Sanguino.

The host now can produce Gcode files.


Regards

Ian
Re: Arduino 12 issues?
October 01, 2009 02:29AM
Thanks Ian

I will give G codes a go since SNAP seems to no longer work.

regards

Stephen
Sorry, only registered users may post in this forum.

Click here to login