Welcome! Log In Create A New Profile

Advanced

error in the program

Posted by Tinkusharma 
error in the program
July 05, 2016 11:29AM
i am trying to modify the program with instructions but its showing me some errors. please let me about the same for any suggestions.

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\Marlin.h:22:0,

from sketch\thermistortables.h:4,

from sketch\Configuration.h:787,

from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.ino:33:

Configuration.h:1: error: unterminated #ifndef

#ifndef CONFIGURATION_H

^

In file included from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.ino:33:0:

Configuration.h:789: error: invalid preprocessing directive #endif__CONFIGURATION_H

#endif__CONFIGURATION_H

^

In file included from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.ino:33:0:

Configuration.h:1: error: unterminated #ifndef

#ifndef CONFIGURATION_H

^

In file included from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.pde:33:0:

Configuration.h:1: error: unterminated #ifndef

#ifndef CONFIGURATION_H

^

exit status 1
unterminated #ifndef

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: error in the program
July 05, 2016 12:30PM
Last line in configuration.h should be:

#endif //__CONFIGURATION_H

You must have removed the //
//__CONFIGURATION_H is a comment to remind you what #if the #endif is for
Re: error in the program
July 05, 2016 04:28PM
I did the same thin but it gives some more errors now.

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\Marlin.h:22:0,

from sketch\thermistortables.h:4,

from sketch\Configuration.h:787,

from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.ino:33:

Configuration.h:789: error: #endif without #if

#endif //__CONFIGURATION_H

^

In file included from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.ino:33:0:

Configuration.h:789: error: #endif without #if

#endif //__CONFIGURATION_H

^

In file included from C:\Users\Rinku\Desktop\Marlin-Stable\Marlin\Marlin.pde:33:0:

Configuration.h:789: error: #endif without #if

#endif //__CONFIGURATION_H

^

exit status 1
#endif without #if

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: error in the program
July 05, 2016 05:10PM
If you attach your configuration.h file we can find the error.

Every #if (#ifdef, #ifndef etc) needs a #endif but there also could be a #else statement between them.
Re: error in the program
July 06, 2016 07:34AM
I attached the requested file, its shows me some thing like this when I connect the printer by using the pronterface .
Connecting...
start
Printer is now online.
echo:Marlin 1.1.0-RC6
echo: Last Updated: 2016-04-24 12:00 | Author: (none, default config)
Compiled: Jul 6 2016
echo: Free Memory: 5202 PlannerBufferBytes: 1232
echo:Hardcoded Default Settings Loaded
echoconfused smileyteps per unit:
echo: M92 X80.00 Y80.00 Z4000.00 E500.00
echo:Maximum feedrates (mm/s):
echo: M203 X300.00 Y300.00 Z5.00 E25.00
echo:Maximum Acceleration (mm/s2):
echo: M201 X3000 Y3000 Z100 E10000
echo:Accelerations: P=printing, R=retract and T=travel
echo: M204 P3000.00 R3000.00 T3000.00
echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s), E=maximum E jerk (mm/s)
echo: M205 S0.00 T0.00 B20000 X20.00 Z0.40 E5.00
echo:Home offset (mm):
echo: M206 X0.00 Y0.00 Z0.00
echotongue sticking out smileyID settings:
echo: M301 P22.20 I1.08 D114.00 C100.00 L20
echo:Filament settings: Disabled
echo: M200 D3.00
echo: M200 D0
Error:MAXTEMP triggered, system stopped! Heater_ID: bed
[ERROR] Error:MAXTEMP triggered, system stopped! Heater_ID: bed

Errortongue sticking out smileyrinter halted. kill() called!
[ERROR] Errortongue sticking out smileyrinter halted. kill() called!
Attachments:
open | download - arduino.exe (393 KB)
Re: error in the program
July 06, 2016 10:10AM
I try to use the sprinter firmware and the pronterface to connect the 3d printer its show me something like this even the graph is working.
Connecting...
Sprinter
1.3.22T / 20.08.2012
start
Printer is now online.
SD Start
SD init fail
Soft PWM Init
Planner Init
Stepper Timer init
Free Ram: 4649
Plan Buffer Size:1152 / 16
X:0.00Y:0.00Z:1.00E:0.00
X:0.00Y:0.00Z:2.00E:0.00
X:0.00Y:0.00Z:3.00E:0.00
X:0.00Y:0.00Z:4.00E:0.00
X:0.00Y:0.00Z:5.00E:0.00
X:0.00Y:0.00Z:5.10E:0.00
X:0.00Y:0.00Z:5.20E:0.00
X:0.00Y:0.00Z:5.30E:0.00
X:0.00Y:0.00Z:5.40E:0.00
X:0.00Y:0.00Z:5.50E:0.00
X:0.00Y:0.00Z:5.60E:0.00
X:0.00Y:0.00Z:5.70E:0.00
X:0.00Y:0.00Z:5.80E:0.00
X:0.00Y:0.00Z:6.80E:0.00
X:0.00Y:0.00Z:7.80E:0.00
X:0.00Y:0.00Z:8.80E:0.00
X:0.00Y:0.00Z:9.80E:0.00
X:0.00Y:0.00Z:10.80E:0.00
X:0.00Y:0.00Z:11.80E:0.00
X:0.00Y:0.00Z:12.80E:0.00
X:0.00Y:0.00Z:13.80E:0.00
X:0.00Y:0.00Z:14.80E:0.00
X:0.00Y:0.00Z:15.80E:0.00
X:0.00Y:0.00Z:25.80E:0.00
X:0.00Y:0.00Z:35.80E:0.00
o

::.:
k



::.:
::.:


X:0.00Y:0.00Z:45.80E:0.00
Re: error in the program
July 06, 2016 12:06PM
Ok I saw your response in wrong thread. "Marlin won't compile on my PC"
It is better to attach a file than paste the file.
The pasted file has the first line missing which should be
#ifndef CONFIGURATION_H
the second line is
#define CONFIGURATION_H
the last line is
#endif //__CONFIGURATION_H
These three lines prevent the complier from trying to load the file twice.

Did you delete this fist line or did you just miss it when you did the copy of file?
With this line in I show a balance in the #if / #end if directives.
Re: error in the program
July 07, 2016 01:18PM
Hello,
Actually the previous file used was sprinter firmware with the pronterface. Its verify, compiled and iploaded to arduino. I connected the 3d printer using the pronterface. Its shows connected but the motors is off the graph is working but its not heating the bed and nozzle . Help me to come out of this problem.
Thanks
Attachments:
open | download - image.jpeg (106.4 KB)
Sorry, only registered users may post in this forum.

Click here to login