🐛 Some EEPROM size fixes (#24113)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Keith Bennett
2022-05-05 00:38:48 -07:00
committed by Scott Lahteine
parent eeda8b451a
commit 81f403025c
12 changed files with 17 additions and 17 deletions

View File

@ -37,7 +37,7 @@
// Onboard I2C EEPROM
#define I2C_EEPROM
#define MARLIN_EEPROM_SIZE 0x2000 // 8K (24C64 ... 64Kb = 8K)
#define MARLIN_EEPROM_SIZE 0x2000 // 8K (24C64)
//
// Servos

View File

@ -28,7 +28,7 @@
// Onboard I2C EEPROM
#define I2C_EEPROM
#define MARLIN_EEPROM_SIZE 0x8000 // 32K (24C32A)
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB (AT24C32)
#define I2C_SCL_PIN PB8
#define I2C_SDA_PIN PB9

View File

@ -187,12 +187,12 @@
#define EEPROM_MISO_PIN PB14 // datasheet: DO pin, found with multimeter, not tested
#define EEPROM_MOSI_PIN PB15 // datasheet: DI pin, found with multimeter, not tested
#define EEPROM_PAGE_SIZE 0x1000U // 4K (from datasheet)
#define MARLIN_EEPROM_SIZE 16UL * (EEPROM_PAGE_SIZE) // Limit to 64K for now...
#define MARLIN_EEPROM_SIZE 16UL * (EEPROM_PAGE_SIZE) // Limit to 64K for now...
#elif ENABLED(I2C_EEPROM) // FM24CL64BG (CYP1813) 64Kbit F-RAM
#define SOFT_I2C_EEPROM // Force the use of Software I2C
#define I2C_SDA_PIN PG13
#define I2C_SCL_PIN PG14 // To be confirmed on the Lerdge S, but probably same as the K
#define MARLIN_EEPROM_SIZE 0x10000
#define MARLIN_EEPROM_SIZE 0x2000U // 8K
#else
#define MARLIN_EEPROM_SIZE 0x800U // On SD, Limit to 2K, require this amount of RAM
#endif