Robin E3D Flash-based EEPROM (#18219)
This commit is contained in:
parent
941d72fd8d
commit
19024306fc
@ -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
|
||||||
//
|
//
|
||||||
|
@ -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
|
||||||
//
|
//
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user