Browse Source

MKS Robin Nano flash-based EEPROM (#18466)

Keith Bennett 4 years ago
parent
commit
69b5b91c91
No account linked to committer's email address

+ 7
- 4
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h View File

31
   #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
31
   #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
32
 #endif
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
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
37
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
41
 //
41
 //
42
 // EEPROM
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
 #endif
49
 #endif
50
+
48
 #define ENABLE_SPI2
51
 #define ENABLE_SPI2
49
 
52
 
50
 //
53
 //

+ 1
- 1
buildroot/share/PlatformIO/ldscripts/mks_robin_nano.ld View File

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

Loading…
Cancel
Save