diff --git a/firmware/config/boards/microrusefi/compile_mre_f4_recovery.sh b/firmware/config/boards/microrusefi/compile_mre_f4_recovery.sh index 5144be586a..cb8469dc59 100644 --- a/firmware/config/boards/microrusefi/compile_mre_f4_recovery.sh +++ b/firmware/config/boards/microrusefi/compile_mre_f4_recovery.sh @@ -2,7 +2,7 @@ export PROJECT_BOARD=microrusefi export PROJECT_CPU=ARCH_STM32F4 -export EXTRA_PARAMS="-DSHORT_BOARD_NAME=mre_f4" +export EXTRA_PARAMS="-DSHORT_BOARD_NAME=mre_f4 -DIGNORE_FLASH_CONFIGURATION=TRUE" # export DEBUG_LEVEL_OPT="-O0 -ggdb -g3" diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 9d7de41af4..ec49b22b46 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -183,11 +183,15 @@ void runRusEfi(void) { initPinRepository(); #if EFI_INTERNAL_FLASH + #if IGNORE_FLASH_CONFIGURATION + resetConfigurationExt(logger, DEFAULT_ENGINE_TYPE PASS_ENGINE_PARAMETER_SUFFIX); + #else /** * First thing is reading configuration from flash memory. * In order to have complete flexibility configuration has to go before anything else. */ readConfiguration(&sharedLogger); + #endif // IGNORE_FLASH_CONFIGURATION #endif /* EFI_INTERNAL_FLASH */ #if HW_CHECK_ALWAYS_STIMULATE