-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
Fix MKS LCD12864A/B and MKS MINI 12864 display on MKS Robin E3/E3D and MKS SGEN_L motherboard #19269
Conversation
Bugfix 2.0.x
Keep -std=gnu++11 in stm32 build_unflags
Bugfix 2.0.x
MKS has test it and display is OK! |
Why do these displays require this change, when no others LCDs to this? |
If I understood it right, the fix is to force mount the card before the first load even if MKS SGEN_L is LPC. SD is on SPI 2 and LCD is on SPI 1. The only things that comes to my head to explain that needed card pre-init is: wrong/missing the right calls to spiInit/spiBegin... or wrong/missing CS pin logic... For example: Could be missing a simple "write(SS_PIN, HIGH)" in the initialisation, to force deactivate the SD CS and LCD CS... when doing the lcd communication, if the CS pin of the SD is LOW, so it send the commands o SD and not to LCD... or generate unexpected behaviour if both are selected... Then mounting the SD before, it put the pins to the right state after run, and the LCD could run fine... Or a missing spi setup somewhere the lcd code... that is fixed when sd mount, as its does a spi full setup... Something like this... |
Great! I can confirm that both the LCD12864B and MKS Mini 12864 display work correctly on the Robin E3 & SGEN-L motherboards (though, I think you meant Gen-L and the MKS LCD12864A which I can't test).
That would explain why the LCD no longer worked after changing the default EEPROM emulation to |
I didn't have to do this for them to work on an SKR Pro or GTR when I was working with them the other day. I wonder why these would be different. |
Closing in favor of #19271 since @rhapsodyv identified (and fixed) the real issue. |
Requirements
Fix MKS LCD12864 display on MKS Robin E3/E3D and MKS SGEN_L motherboard
Description