Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] (Display not working correctly, on MKS Gen 1.4 Board) #16331

Closed
aurion55 opened this issue Dec 26, 2019 · 6 comments
Closed

[BUG] (Display not working correctly, on MKS Gen 1.4 Board) #16331

aurion55 opened this issue Dec 26, 2019 · 6 comments

Comments

@aurion55
Copy link

aurion55 commented Dec 26, 2019

Bug Description

20191226_113245 1
20191226_113259 1

My Configurations

Required: Please include a ZIP file containing your Configuration.h and Configuration_adv.h files.
Configuration.zip
Configuration_adv.zip

@aurion55
Copy link
Author

aurion55 commented Dec 26, 2019

This the lastest Marlin 2.0 I've compile with No error so got me, I'm using
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

@aurion55
Copy link
Author

aurion55 commented Dec 26, 2019

If I go back to a prevous version of my Marlin I get all these error's below.
Arduino: 1.8.10 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\src\module\endstops.cpp:36:0:

c:\users\gp73\appdata\local\temp\arduino_build_577121\sketch\src\hal\hal_avr\endstop_interrupts.h: In function 'void setup_endstop_interrupts()':

c:\users\gp73\appdata\local\temp\arduino_build_577121\sketch\src\hal\hal_avr\endstop_interrupts.h:142:7: error: non-constant condition for static assertion

   static_assert(digitalPinToPCICR(Y_MIN_PIN), "Y_MIN_PIN is not interrupt-capable");

   ^~~~~~~~~~~~~

In file included from sketch\src\module\endstops.cpp:36:0:

c:\users\gp73\appdata\local\temp\arduino_build_577121\sketch\src\hal\hal_avr\endstop_interrupts.h:57:57: error: reinterpret_cast from integer to pointer

                                 WITHIN(p, 62, 69) ? &PCICR : nullptr )

                                                     ^

c:\users\gp73\appdata\local\temp\arduino_build_577121\sketch\src\hal\hal_avr\endstop_interrupts.h:142:21: note: in expansion of macro 'digitalPinToPCICR'

   static_assert(digitalPinToPCICR(Y_MIN_PIN), "Y_MIN_PIN is not interrupt-capable");

                 ^~~~~~~~~~~~~~~~~

Multiple libraries were found for "U8glib.h"
Used: C:\Users\gp73\OneDrive\Documents\Arduino\libraries\U8glib
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

So how can I get back to running version of my Marlin now?
Marlin-bugfix-2.0.x.zip

@ellensp
Copy link
Contributor

ellensp commented Dec 26, 2019

The error is very clear. "Y_MIN_PIN is not interrupt-capable" so you need to disable endstop interrupts. In Configuration.h comment out #define ENDSTOP_INTERRUPTS_FEATURE

@ellensp
Copy link
Contributor

ellensp commented Dec 26, 2019

As for the display this is an issue with really slow LCD's You need to add in some delays. See #16278

@aurion55
Copy link
Author

aurion55 commented Dec 26, 2019

Thanks I give it a go.
Yes if fixed my problems, Thank ellensp

@github-actions
Copy link

github-actions bot commented Jul 3, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants