GeorgeFu If I add "#define FLASH_EEPROM_EMULATION"
I have this error message while compiling:
Compiling .pioenvs\fysetc_STM32F1\src\src\HAL\HAL_STM32F1\u8g_com_stm32duino_fsmc.cpp.o
Marlin\src\HAL\HAL_STM32F1\persistent_store_flash.cpp: In static member function 'static size_t PersistentStore::capacity()':
Marlin\src\HAL\HAL_STM32F1\persistent_store_flash.cpp:105:45: error: 'E2END' was not declared in this scope
size_t PersistentStore::capacity() { return E2END + 1; }
^~~~~
*** [.pioenvs\fysetc_STM32F1\src\src\HAL\HAL_STM32F1\persistent_store_flash.cpp.o] Error 1
Without "#define FLASH_EEPROM_EMULATION", the compilation is OK.