Page 1 of 1

1.1.8 Firmware not compiling !

Posted: Thu Aug 02, 2018 9:45 pm
by RLF93
Hi,

I'm trying to upload an 1.1.8 firmware (custom with french language) from a french forum. This firmware is reported to work with no issues on other Pro B.

I have an error message at compiling related to probe position (i'm using a 3D touch, wich is functionnal with standard Geeetech firmware).

Here is the Error message :

Code: Select all

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

In file included from sketch\MarlinConfig.h:40:0,

                 from sketch\G26_Mesh_Validation_Tool.cpp:27:

SanityCheck.h:296: error: static assertion failed: Movement bounds ([XY]_MIN_POS, [XY]_MAX_POS) are too narrow to contain [XY]_BED_SIZE.

 static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,

 ^

SanityCheck.h:828: error: static assertion failed: RIGHT_PROBE_BED_POSITION can't be reached by the Z probe.

       static_assert(RIGHT_PROBE_BED_POSITION <= MAX_PROBE_X, "RIGHT_PROBE_BED_POSITION can't be reached by the Z probe.");

       ^

exit status 1
static assertion failed: Movement bounds ([XY]_MIN_POS, [XY]_MAX_POS) are too narrow to contain [XY]_BED_SIZE. 
I checked that alle the values are the same than those on my old firmware.
I Tried to change X_BED_SIZE and Y_BED_SIZE, increased a lot, but it wo'nt compile either.

I'd like to try this firmware, i feel that Geeetech Rev A+ with probe is full of bugs and outdated.

Any clue with this issue ?

Thanks by advance.

Regards,

RLF

Re: 1.1.8 Firmware not compiling !

Posted: Fri Aug 03, 2018 5:36 pm
by Gingko
1, Please check the definition of bed size and minimum position of X or Y-axis in your Configuration.h file.

Code: Select all

// The size of the print bed
#define X_BED_SIZE 200
#define Y_BED_SIZE 200

// Travel limits (mm) after homing, corresponding to endstop positions.
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS X_BED_SIZE
#define Y_MAX_POS Y_BED_SIZE
#define Z_MAX_POS 200
If the value of "X_MAX_POS-X_MIN_POS" is smaller than the X_BED_SIZE, it might come up the error of "static assertion failed: Movement bounds ([XY]_MIN_POS, [XY]_MAX_POS) are too narrow to contain [XY]_BED_SIZE.".

2, For error: "static assertion failed: RIGHT_PROBE_BED_POSITION can't be reached by the Z probe."

The value for RIGHT_PROBE_BED_POSITION should be smaller than the value of "X_MAX_POS".

Re: 1.1.8 Firmware not compiling !

Posted: Fri Aug 03, 2018 8:12 pm
by RLF93
Hi!

Thank you very much for your answer.

I did change the values and it now compiles.

The issue is that my X axis can't go further than 195 mm, the Stepper is hitting Right pulley screw. That's why i entered a lowest value for X_MAX_POS

the fact is that i now have the risk that the printer goes over 195 mm

In that cas, is it better tu reduce both X_BED_SIZE and X_MAX_POS to 195 ?

Thanks by advance !

RLF

Re: 1.1.8 Firmware not compiling !

Posted: Thu Aug 16, 2018 3:48 pm
by Gingko
I prefer to reduce them both to 195, match to your actual situation. ;)

And be careful about the size of the print job.

Re: 1.1.8 Firmware not compiling !

Posted: Thu Aug 16, 2018 3:56 pm
by _kaktus_
Hi
:mrgreen:

Gingko, is it possible for the printer not to start printing when the size of the model exceeds the capabilities of the printer when printing from the card :?:
In my opinion, firmware should take care of such a situation and counteract its effects.

Just like working with slicer. I think that is his job.

Re: 1.1.8 Firmware not compiling !

Posted: Thu Aug 16, 2018 6:38 pm
by Gingko
I try to change the print area to a smaller one in the firmware, like 100*100 for Pro B, and then print a 160*160 object.

The result comes out that the printer starts working but it won't go beyond the area that set in the firmware.
The printer doesn't know how big the object will be.

Maybe there can be a function that compares the bed area setting with Gcode, but it might need lots of modification of the mainboard.
And that is out of my knowledge range. :oops:

Re: 1.1.8 Firmware not compiling !

Posted: Fri Aug 17, 2018 4:43 am
by _kaktus_
;)
Thank you for trying to answer. It's interesting what you're saying.
And these messages will be informative for many users.
:D