From c6be989fca0e261ff61caefbb4436776408ea5b6 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Tue, 13 Aug 2019 02:48:46 +0200 Subject: [PATCH] Store EEPROM config in flash (#14923) Avoid confusion between the 2 possible SDs... --- Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h b/Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h index cabfc254fbd6..2913451b5c80 100644 --- a/Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h +++ b/Marlin/src/pins/stm32/pins_BIGTREE_SKR_MINI_V1_1.h @@ -191,3 +191,8 @@ #ifndef ST7920_DELAY_3 #define ST7920_DELAY_3 DELAY_NS(125) #endif + +#define FLASH_EEPROM_EMULATION +#define EEPROM_PAGE_SIZE (0x800) // 2KB +#define EEPROM_START_ADDRESS (0x8000000 + (256 * 1024) - 2 * EEPROM_PAGE_SIZE) +#define E2END (EEPROM_PAGE_SIZE - 1)