Welcome! Log In Create A New Profile

Advanced

smiling bouncing smiley i want to help me

Posted by ayoublaser 
smiling bouncing smiley i want to help me
March 23, 2017 07:41PM
hi
i want to build printer 3d with lcd2004 kit and ramps 1.4
but when i install the frameware 10 it can't compile or sende to arduino it give me a lot of probleme like this

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Arduino : 1.8.2 (Windows 7), Carte : "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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

from sketch\thermistortables.h:4,

from sketch\Configuration.h:724,

from C:\Users\mohamed\Pictures\printer\Prusa-Firmware-3.0.10-RC1\Prusa-Firmware-3.0.10-RC1\Firmware\Firmware.ino:33:

sketch\pins.h:44:0: warning: "X_MS1_PIN" redefined

#define X_MS1_PIN 40

^

sketch\pins.h:7:0: note: this is the location of the previous definition

#define X_MS1_PIN -1

^

sketch\pins.h:45:0: warning: "X_MS2_PIN" redefined

#define X_MS2_PIN 41

^

sketch\pins.h:8:0: note: this is the location of the previous definition

#define X_MS2_PIN -1

^

sketch\pins.h:51:0: warning: "Y_MS1_PIN" redefined

#define Y_MS1_PIN 69

^

sketch\pins.h:9:0: note: this is the location of the previous definition

#define Y_MS1_PIN -1

^

sketch\pins.h:52:0: warning: "Y_MS2_PIN" redefined

#define Y_MS2_PIN 39

^

sketch\pins.h:10:0: note: this is the location of the previous definition

#define Y_MS2_PIN -1

^

sketch\pins.h:58:0: warning: "Z_MS1_PIN" redefined

#define Z_MS1_PIN 68

^

sketch\pins.h:11:0: note: this is the location of the previous definition

#define Z_MS1_PIN -1

^

sketch\pins.h:59:0: warning: "Z_MS2_PIN" redefined

#define Z_MS2_PIN 67

^

sketch\pins.h:12:0: note: this is the location of the previous definition

#define Z_MS2_PIN -1

^

sketch\pins.h:104:0: warning: "E0_MS1_PIN" redefined

#define E0_MS1_PIN 65

^

sketch\pins.h:13:0: note: this is the location of the previous definition

#define E0_MS1_PIN -1

^

sketch\pins.h:105:0: warning: "E0_MS2_PIN" redefined

#define E0_MS2_PIN 66

^

sketch\pins.h:14:0: note: this is the location of the previous definition

#define E0_MS2_PIN -1

^

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

from sketch\Marlin_main.cpp:38:

sketch\pins.h:44:0: warning: "X_MS1_PIN" redefined

#define X_MS1_PIN 40

^

sketch\pins.h:7:0: note: this is the location of the previous definition

#define X_MS1_PIN -1

^

sketch\pins.h:45:0: warning: "X_MS2_PIN" redefined

#define X_MS2_PIN 41

^

sketch\pins.h:8:0: note: this is the location of the previous definition

#define X_MS2_PIN -1

^

sketch\pins.h:51:0: warning: "Y_MS1_PIN" redefined

#define Y_MS1_PIN 69

^

sketch\pins.h:9:0: note: this is the location of the previous definition

#define Y_MS1_PIN -1

^

sketch\pins.h:52:0: warning: "Y_MS2_PIN" redefined

#define Y_MS2_PIN 39

^

sketch\pins.h:10:0: note: this is the location of the previous definition

#define Y_MS2_PIN -1

^

sketch\pins.h:58:0: warning: "Z_MS1_PIN" redefined

#define Z_MS1_PIN 68

^

sketch\pins.h:11:0: note: this is the location of the previous definition

#define Z_MS1_PIN -1

^

sketch\pins.h:59:0: warning: "Z_MS2_PIN" redefined

#define Z_MS2_PIN 67

^

sketch\pins.h:12:0: note: this is the location of the previous definition

#define Z_MS2_PIN -1

^

sketch\pins.h:104:0: warning: "E0_MS1_PIN" redefined

#define E0_MS1_PIN 65

^

sketch\pins.h:13:0: note: this is the location of the previous definition

#define E0_MS1_PIN -1

^

sketch\pins.h:105:0: warning: "E0_MS2_PIN" redefined

#define E0_MS2_PIN 66

^

sketch\pins.h:14:0: note: this is the location of the previous definition

#define E0_MS2_PIN -1

^

In file included from sketch\SdFile.h:27:0,

from sketch\cardreader.h:8,

from sketch\Marlin_main.cpp:58:

SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

^

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

from sketch\Marlin_main.cpp:38:

c:\program files\arduino\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

__extension__ typedef long long fpos_t;

^

exit status 1
using typedef-name 'fpos_t' after 'struct'

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
please i want to solve this problem
i want this version from prusa because it have a lot of setting and option
thank you
Re: smiling bouncing smiley i want to help me
March 23, 2017 09:18PM
That particular version of firmware needs an older version of arduino ide to compile as is.

or edit the code

This issue is that the keyword "fpos_t" was not used in the older versions but became a reserved word in the new versions of arduino ide

so either use a older version of the arduino ide, or find a the references to "fpos_t" and change it to "filepos_t"

Also if your compiling for a Rambo board you need to install the rambo plug in. and use the rambo board, not the mega2560 board.
see [reprap.org]
the atmel2560 chip has more usable pins than are broken out on a mega board. But they are used on a Rambo board. So you really need to use the rambo plugin to use those pins. (lcd is the main thing on these pins)
Re: smiling bouncing smiley i want to help me
March 24, 2017 05:40AM
it have a lot of error after fpos
i have arduino 1.8.2 and board are mega 2560
are you have other why or frameware can be work good
thank you

+++++++++++++++++++++++++++++
Arduino : 1.8.2 (Windows 7), Carte : "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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

from sketch\thermistortables.h:4,

from sketch\Configuration.h:724,

from C:\Users\mohamed\Pictures\printer\Prusa-Firmware-3.0.10-RC1\Prusa-Firmware-3.0.10-RC1\Firmware\Firmware.ino:33:

sketch\pins.h:44:0: warning: "X_MS1_PIN" redefined

#define X_MS1_PIN 40

^

sketch\pins.h:7:0: note: this is the location of the previous definition

#define X_MS1_PIN -1

^

sketch\pins.h:45:0: warning: "X_MS2_PIN" redefined

#define X_MS2_PIN 41

^

sketch\pins.h:8:0: note: this is the location of the previous definition

#define X_MS2_PIN -1

^

sketch\pins.h:51:0: warning: "Y_MS1_PIN" redefined

#define Y_MS1_PIN 69

^

sketch\pins.h:9:0: note: this is the location of the previous definition

#define Y_MS1_PIN -1

^

sketch\pins.h:52:0: warning: "Y_MS2_PIN" redefined

#define Y_MS2_PIN 39

^

sketch\pins.h:10:0: note: this is the location of the previous definition

#define Y_MS2_PIN -1

^

sketch\pins.h:58:0: warning: "Z_MS1_PIN" redefined

#define Z_MS1_PIN 68

^

sketch\pins.h:11:0: note: this is the location of the previous definition

#define Z_MS1_PIN -1

^

sketch\pins.h:59:0: warning: "Z_MS2_PIN" redefined

#define Z_MS2_PIN 67

^

sketch\pins.h:12:0: note: this is the location of the previous definition

#define Z_MS2_PIN -1

^

sketch\pins.h:104:0: warning: "E0_MS1_PIN" redefined

#define E0_MS1_PIN 65

^

sketch\pins.h:13:0: note: this is the location of the previous definition

#define E0_MS1_PIN -1

^

sketch\pins.h:105:0: warning: "E0_MS2_PIN" redefined

#define E0_MS2_PIN 66

^

sketch\pins.h:14:0: note: this is the location of the previous definition

#define E0_MS2_PIN -1

^

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

from sketch\SdBaseFile.cpp:21:

sketch\pins.h:44:0: warning: "X_MS1_PIN" redefined

#define X_MS1_PIN 40

^

sketch\pins.h:7:0: note: this is the location of the previous definition

#define X_MS1_PIN -1

^

sketch\pins.h:45:0: warning: "X_MS2_PIN" redefined

#define X_MS2_PIN 41

^

sketch\pins.h:8:0: note: this is the location of the previous definition

#define X_MS2_PIN -1

^

sketch\pins.h:51:0: warning: "Y_MS1_PIN" redefined

#define Y_MS1_PIN 69

^

sketch\pins.h:9:0: note: this is the location of the previous definition

#define Y_MS1_PIN -1

^

sketch\pins.h:52:0: warning: "Y_MS2_PIN" redefined

#define Y_MS2_PIN 39

^

sketch\pins.h:10:0: note: this is the location of the previous definition

#define Y_MS2_PIN -1

^

sketch\pins.h:58:0: warning: "Z_MS1_PIN" redefined

#define Z_MS1_PIN 68

^

sketch\pins.h:11:0: note: this is the location of the previous definition

#define Z_MS1_PIN -1

^

sketch\pins.h:59:0: warning: "Z_MS2_PIN" redefined

#define Z_MS2_PIN 67

^

sketch\pins.h:12:0: note: this is the location of the previous definition

#define Z_MS2_PIN -1

^

sketch\pins.h:104:0: warning: "E0_MS1_PIN" redefined

#define E0_MS1_PIN 65

^

sketch\pins.h:13:0: note: this is the location of the previous definition

#define E0_MS1_PIN -1

^

sketch\pins.h:105:0: warning: "E0_MS2_PIN" redefined

#define E0_MS2_PIN 66

^

sketch\pins.h:14:0: note: this is the location of the previous definition

#define E0_MS2_PIN -1

^

SdBaseFile.cpp:297: error: prototype for 'void SdBaseFile::getpos(filepos_t*)' does not match any in class 'SdBaseFile'

void SdBaseFile::getpos(filepos_t* pos) {

^

In file included from sketch\SdBaseFile.cpp:24:0:

SdBaseFile.h:199: error: candidate is: void SdBaseFile::getpos(fpos_t*)

void getpos(fpos_t* pos);

^

SdBaseFile.cpp:1495: error: prototype for 'void SdBaseFile::setpos(filepos_t*)' does not match any in class 'SdBaseFile'

void SdBaseFile::setpos(filepos_t* pos) {

^

In file included from sketch\SdBaseFile.cpp:24:0:

SdBaseFile.h:203: error: candidate is: void SdBaseFile::setpos(fpos_t*)

void setpos(fpos_t* pos);

^

exit status 1
prototype for 'void SdBaseFile::getpos(filepos_t*)' does not match any in class 'SdBaseFile'

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Re: smiling bouncing smiley i want to help me
March 24, 2017 06:53AM
you didn’t update all occurrences of fpos_t to filepos_t

ie

in file SdBaseFile.h line 199 still says void SdBaseFile::getpos(fpos_t*)

and

SdBaseFile.h line 203 still says void SdBaseFile::setpos(fpos_t*)

Change those also.
Re: smiling bouncing smiley i want to help me
March 24, 2017 10:53AM
now i change all it can compile but it not work on arduino it give me just two black line it not work
i thing the variable when i compile it give me *#define X_MS1_PIN -1* a lot of there are defined
so what should i do
Re: smiling bouncing smiley i want to help me
March 24, 2017 10:17PM
That firmware is only for rambo boards not for ramps boards on mega

You would need to write a new pins.h to match your board

Also note if your after the advanced features like software current limits for stepper drivers (quiet mode) are not possible on ramps (or any board with pololu type stepper modules)

Also the X Y Z auto calibration stuff in this firmware requires a mk42 bed that has extra fiducials in the board so the sensor can see it and correct for the alignment.
Re: smiling bouncing smiley i want to help me
March 25, 2017 12:55PM
when i install the frameware reprap prusa pt
it work but when i do any thing it give an crazy lcd it write outher symbol or place the text change






Sorry, only registered users may post in this forum.

Click here to login