Welcome! Log In Create A New Profile

Advanced

Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true

Posted by forgoden 
Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true
October 23, 2014 02:35AM
Hello,

I am trying to upload the repetier-host firmware on ATMega2560 + Ramps 1.4 for my Delta Printer
But it wont. It will always stop uploading at 39% with Arduino IDE 1.5.2
Arduino IDE 1.0.6 results the same problem.

This happens when I change
Quote
configuration.h - 0.91 Rev 8
#define MAX_HARDWARE_ENDSTOP_Z false
to true

See here at the last line:
Quote
configuration.h - 0.91 Rev 8
#define ENDSTOP_PULLUP_X_MIN true
#define ENDSTOP_PULLUP_Y_MIN true
#define ENDSTOP_PULLUP_Z_MIN true

#define ENDSTOP_PULLUP_X_MAX true
#define ENDSTOP_PULLUP_Y_MAX true
#define ENDSTOP_PULLUP_Z_MAX true

#define ENDSTOP_X_MIN_INVERTING false
#define ENDSTOP_Y_MIN_INVERTING false
#define ENDSTOP_Z_MIN_INVERTING false

#define MIN_HARDWARE_ENDSTOP_X false
#define MIN_HARDWARE_ENDSTOP_Y false
#define MIN_HARDWARE_ENDSTOP_Z false

#define ENDSTOP_X_MAX_INVERTING false
#define ENDSTOP_Y_MAX_INVERTING false
#define ENDSTOP_Z_MAX_INVERTING false

#define MAX_HARDWARE_ENDSTOP_X true
#define MAX_HARDWARE_ENDSTOP_Y true
#define MAX_HARDWARE_ENDSTOP_Z true // <-- problem!!

Edited 1 time(s). Last edit at 10/23/2014 02:35AM by forgoden.
Re: Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true
October 23, 2014 01:36PM
You should remove the comment if you want that enabled if I am not mistaken.

So the code would look like
define MAX_HARDWARE_ENDSTOP_Z true (NO # sign in front of it)


My Personal Blog. Build blog.
[engineerd3d.ddns.net]

Modicum V1 sold on e-bay user jaguarking11
Re: Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true
October 23, 2014 04:35PM
it still doesnt work, this wouldnt recognize as c++ syntax??
Re: Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true
October 23, 2014 05:49PM
That is a strange problem...

If I understand correct, you can compile the firmware without errors with both true and false,
but when you try to upload the binary it always fails with true and always succeeds with false?!

As far as I know, there is no connection between that setting and the upload mechanism...
The upload process is not interested in the meaning of the file, it only transfers 1's and 0's.

I *think* that you can even upload a binary that only contains zeroes, without errors.
But I have been wrong lots of times before, I would love to be corrected on this problem grinning smiley

Do you have a second USB cable that you can try?
Do you have a second PC / laptop that you can try it on?

Edited 1 time(s). Last edit at 10/23/2014 05:50PM by 3D-ES.


RS-Online Ormerod #263, Kossel mini with Minitronics, Prusa i3 MK2
Re: Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true
October 27, 2014 03:51AM
Quote
3D-ES
That is a strange problem...

If I understand correct, you can compile the firmware without errors with both true and false,
but when you try to upload the binary it always fails with true and always succeeds with false?!

As far as I know, there is no connection between that setting and the upload mechanism...
The upload process is not interested in the meaning of the file, it only transfers 1's and 0's.

I *think* that you can even upload a binary that only contains zeroes, without errors.
But I have been wrong lots of times before, I would love to be corrected on this problem grinning smiley

Do you have a second USB cable that you can try?
Do you have a second PC / laptop that you can try it on?

Thank you for reply. Yes, you understood correctly. Its very strange for me too. There is no compiler errors. When I upload with the "false", the led on Arduino Mega Board is blinking fast for long time (around 20 seconds) and it succeeds . When I change the MAX_HARDWARE_ENDSTOP_Z to "true", then its blinking fast about 2 seconds and then it stops. When I restart arduino, the display shows nothing.
I've testet it on other Arduino Mega 2560 (and also without ramps 1.4)-> same problem

Okay, your idea is good. I'll try on other computers and other arduino mega 2560 boards and inform here.

Edited 1 time(s). Last edit at 10/27/2014 03:55AM by forgoden.
Re: Can't upload the Firmware when MAX_HARDWARE_ENDSTOP_Z is changed to true
October 27, 2014 07:10PM
On Notebook there were same problem.

But I've changed the Z_HOME_DIR 1 to -1 and now it works!
I don't know why it was 1, it was generated by firmware configuration tool. The Printer Type was always selected to Delta Printer
Sorry, only registered users may post in this forum.

Click here to login