Browse Source

Robin E3D Flash-based EEPROM (#18219)

vanilla_fb_2.0.x
DocYester 5 years ago
committed by GitHub
parent
commit
19024306fc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3.h
  2. 11
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D.h
  3. 2
      buildroot/share/PlatformIO/ldscripts/mks_robin_e3.ld

11
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3.h

@ -40,6 +40,17 @@
#define DISABLE_JTAG
#define ENABLE_SPI2
//
// EEPROM
//
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
#define FLASH_EEPROM_EMULATION
#define EEPROM_PAGE_SIZE (0x800U) // 2KB
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
#undef E2END
#define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
#endif
//
// Servos
//

11
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D.h

@ -40,6 +40,17 @@
#define DISABLE_JTAG
#define ENABLE_SPI2
//
// EEPROM
//
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
#define FLASH_EEPROM_EMULATION
#define EEPROM_PAGE_SIZE (0x800U) // 2KB
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
#undef E2END
#define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
#endif
//
// Servos
//

2
buildroot/share/PlatformIO/ldscripts/mks_robin_e3.ld

@ -1,7 +1,7 @@
MEMORY
{
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K - 40
rom (rx) : ORIGIN = 0x08005000, LENGTH = 256K - 20K
rom (rx) : ORIGIN = 0x08005000, LENGTH = 256K - 20K - 4K
}
/* Provide memory region aliases for common.inc */

Loading…
Cancel
Save