Robin E3D Flash-based EEPROM (#18219)

This commit is contained in:
DocYester 2020-06-08 02:48:18 +02:00 committed by GitHub
parent 941d72fd8d
commit 19024306fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View file

@ -40,6 +40,17 @@
#define DISABLE_JTAG #define DISABLE_JTAG
#define ENABLE_SPI2 #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 // Servos
// //

View file

@ -40,6 +40,17 @@
#define DISABLE_JTAG #define DISABLE_JTAG
#define ENABLE_SPI2 #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 // Servos
// //

View file

@ -1,7 +1,7 @@
MEMORY MEMORY
{ {
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K - 40 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 */ /* Provide memory region aliases for common.inc */