Pārlūkot izejas kodu

MKS Robin Nano flash-based EEPROM (#18466)

Keith Bennett 4 gadus atpakaļ
vecāks
revīzija
69b5b91c91
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 7
- 4
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h Parādīt failu

@@ -31,7 +31,7 @@
31 31
   #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
32 32
 #endif
33 33
 
34
-#define BOARD_INFO_NAME "MKS Robin nano"
34
+#define BOARD_INFO_NAME "MKS Robin Nano"
35 35
 
36 36
 //
37 37
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
@@ -41,10 +41,13 @@
41 41
 //
42 42
 // EEPROM
43 43
 //
44
-#if NO_EEPROM_SELECTED
45
-  //#define FLASH_EEPROM_EMULATION
46
-  #define SDCARD_EEPROM_EMULATION
44
+#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
45
+  #define FLASH_EEPROM_EMULATION
46
+  #define EEPROM_PAGE_SIZE     (0x800U) // 2KB
47
+  #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
48
+  #define MARLIN_EEPROM_SIZE   EEPROM_PAGE_SIZE  // 2KB
47 49
 #endif
50
+
48 51
 #define ENABLE_SPI2
49 52
 
50 53
 //

+ 1
- 1
buildroot/share/PlatformIO/ldscripts/mks_robin_nano.ld Parādīt failu

@@ -1,7 +1,7 @@
1 1
 MEMORY
2 2
 {
3 3
   ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K - 40
4
-  rom (rx)  : ORIGIN = 0x08007000, LENGTH = 512K - 28K
4
+  rom (rx)  : ORIGIN = 0x08007000, LENGTH = 512K - 28K - 4K
5 5
 }
6 6
 
7 7
 /* Provide memory region aliases for common.inc */

Notiek ielāde…
Atcelt
Saglabāt