makerbase-mks / MKS-Robin

MKS Robin is a powerful 32-bit 3D printer control board with STM32F103ZET6 . Support Marlin2.0. Support MKS Robin TFT24/28/32... Screens. The motherboard integrates 5 AXIS interface, hot bed, 2 heating heads, 3 NTC100K, 2 MAX31855.Support MKS Robin WIFI for cloud printing.Supports firmware update by SD card…
https://es.aliexpress.com/item/32757129463.html?spm=a219c.12010612.8148356.9.5fc165f4oDUfFM
129 stars 129 forks source link

Robin Nano EEPROM #143

Closed inib closed 4 years ago

inib commented 4 years ago

The Robin Nano has a 16kbit EEPROM (I2C1) and a 64MBit Flash (on SPI2) built in. Has anyone tried to access those with Marlin?

I tried to just activate I2C_EEPROM but this EEPROM won't work with the current Marlin Code and every attempt to access SPI2 kills the FSMC display for me...

makerbase-mks commented 4 years ago

Currently, the MKS Robin Nano onboard program, the EEPROM is use externally mounted, and does not use the internal EEPROM, the external EEPROM is connected using I2C; If Marlin firmware is used, this may require the internal EEPROM of the chip. The SPI2 you operate is a touch that is connected to the SPI FLASH and the touch screen. They need to use the CS pin for chip selection. MKS Robin Nano hardware reference: https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin%20Nano/hardware.

inib commented 4 years ago

Thank you for your answer. Unfortunately I don't have enough spare time to do this all by myself. For the external EEPROM a whole new library implementation would be necessary and hardware SPI isn't yet available for Marlin 2 to get a reasonable solution for both flash and touch at the same time.

Would have been great, if this was already implemented, as the default SD-card EEPROM is not very handy.

inib commented 4 years ago

We have now a working solution for Marlin 2.0.x via SPI2 on the flash. https://github.com/inib/Marlin/commit/d7077669860182b96a9bfd31403621f71d5cdc78