-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
MKS SGEN L + MKS Mini 12864, pin P0.17 for [display] cs_pin #2387
Comments
have you tried
sometimes.. often.. the display connectors are rotated.. https://reprap.org/wiki/MKS_MINI_12864#Physical_Interface |
With "cs_pin: EXP1_6" (alias EXP1_6=P0.17) , I receive "error: pin EXP1_6 is reserved for ssp0". Display connection is not rotated. I have try Marlin and Smoothieware, both with display cs pin P0.17 (and other settings as in makerbase GitHub), and display works. |
If the board is really wired up such that P0.17 is used for cs_pin, then you'll need to use software spi and explicitly list the pins used for miso, mosi, and sclk. (See the comments in config/sample-lcd.cfg for further details.) -Kevin |
With those lines in config:
I receive "error: MCU 'mcu' error during config: oids already allocated". Attached log software-spi-klippy.log Display runs with hardware SPI ssp1. Code in PR #2393 Log in spi1-klippy.log |
The software spi error looks like something odd happened during configuration - you should be able to clear that error with a FIRMWARE_RESTART command. (If not, could you post a log that includes the FIRMWARE_RESTART.) Clearly using hardware ssp1 is the preferred solution, however. Thanks, |
Something odd happened. I rebuild everything and now it works with software SPI. Thank you. |
Separately, it would be good if we could add a config/generic-mks-sgen-l.cfg example config file. -Kevin |
I'm going to close this as it looks like the original issue was resolved. -Kevin |
@akatik Hello! I too MKS SGen L user. I’ve got difficult to flash Klipper, could u mind share me the procedure how you can flash Klipper firmware to this board? |
Hi @akatik , I have a trouble to start the Mini LCD 12864 with a MKS SGENL V1.0, could you share with me your firmware to enable the lCD? |
Hello @Zener28 Not sure my config is good for your reference. My BTT Mini LCD 12864 is actually connected to no brand SKR1.3 which working along with MKS SGENL V1.0 as [mcu z] for handling 4 Z-stepper motors in Voron 2.4. Below is display section of my printer configuration for your reference. ##################################################################### Displaysby BTT/Fysetc Mini 12864Panel v2.1 (with neopixel backlight leds)###################################################################### [display] Some micro-controller boards may require an spi bus to be specified:#spi_bus: spi Alternatively, some micro-controller boards may work with software spi:#spi_software_miso_pin: EXP2_1 #[output_pin beeper] [neopixel fysetc_mini12864] ######################################## EXP1 / EXP2 (display) pins######################################## [board_pins] |
Board MKS SGEN L, pins: https://github.com/makerbase-mks/SGEN_L/blob/master/Hardware/MKS%20SGEN_L%20V1.0_001/MKS%20SGEN_L%20V1.0_001%20PIN.pdf
EXP1_6 is P0.17
Display MKS Mini 12864, pins: makerbase-mks/MKS-SBASE#101 (comment)
EXP1_6 is DOGLCD_CS
Seems display cs pin is P0.17.
Also, in Marlin config for MKS SGEN_L: https://github.com/makerbase-mks/SGEN_L/blob/master/Firmware/Marlin-bugfix-2.0.x/Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
Also, in Smoothieware config for MKS SGEN_L: https://github.com/makerbase-mks/SGEN_L/blob/master/Firmware/Smoothieware/MKS%20MINI12864%20and%20MKS%20LCD12864A/config.txt
I write to printer.cfg:
And receive "error: pin P0.17 is reserved for ssp0"
How to run this display on this board with klipper?
klippy.log
The text was updated successfully, but these errors were encountered: