|
|
@ -194,19 +194,19 @@ |
|
|
|
#define EEPROM_SCK_PIN BOARD_SPI1_SCK_PIN // PA5 pin 30
|
|
|
|
#define EEPROM_MISO_PIN BOARD_SPI1_MISO_PIN // PA6 pin 31
|
|
|
|
#define EEPROM_MOSI_PIN BOARD_SPI1_MOSI_PIN // PA7 pin 32
|
|
|
|
#define EEPROM_PAGE_SIZE 0x1000U // 4KB (from datasheet)
|
|
|
|
#define MARLIN_EEPROM_SIZE 16UL * (EEPROM_PAGE_SIZE) // Limit to 64KB for now...
|
|
|
|
#define EEPROM_PAGE_SIZE 0x1000U // 4K (from datasheet)
|
|
|
|
#define MARLIN_EEPROM_SIZE 16UL * (EEPROM_PAGE_SIZE) // Limit to 64K for now...
|
|
|
|
#elif HAS_SPI_FLASH |
|
|
|
#define SPI_FLASH_SIZE 0x40000U // limit to 256KB (M993 will reboot with 512)
|
|
|
|
#define SPI_FLASH_SIZE 0x40000U // limit to 256K (M993 will reboot with 512)
|
|
|
|
#define SPI_FLASH_CS_PIN PC5 |
|
|
|
#define SPI_FLASH_MOSI_PIN PA7 |
|
|
|
#define SPI_FLASH_MISO_PIN PA6 |
|
|
|
#define SPI_FLASH_SCK_PIN PA5 |
|
|
|
#elif ENABLED(FLASH_EEPROM_EMULATION) |
|
|
|
// SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
|
|
|
|
#define EEPROM_PAGE_SIZE (0x800U) // 2KB
|
|
|
|
#define EEPROM_PAGE_SIZE (0x800U) // 2K
|
|
|
|
#define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL) |
|
|
|
#define MARLIN_EEPROM_SIZE (EEPROM_PAGE_SIZE) |
|
|
|
#else |
|
|
|
#define MARLIN_EEPROM_SIZE 0x800U // On SD, Limit to 2KB, require this amount of RAM
|
|
|
|
#define MARLIN_EEPROM_SIZE 0x800U // On SD, Limit to 2K, require this amount of RAM
|
|
|
|
#endif |
|
|
|