diff --git a/make/source.mk b/make/source.mk index 815d2e7a14..9f3f8f9590 100644 --- a/make/source.mk +++ b/make/source.mk @@ -191,7 +191,7 @@ TARGET_FLAGS := -DUSE_EXST $(TARGET_FLAGS) endif ifeq ($(RAM_BASED),yes) -TARGET_FLAGS := -DUSE_EXST -DCONFIG_IN_RAM $(TARGET_FLAGS) +TARGET_FLAGS := -DUSE_EXST -DCONFIG_IN_RAM -DRAMBASED $(TARGET_FLAGS) endif ifeq ($(SIMULATOR_BUILD),yes) diff --git a/src/main/target/common_post.h b/src/main/target/common_post.h index 1ec11d5658..a783edec39 100644 --- a/src/main/target/common_post.h +++ b/src/main/target/common_post.h @@ -361,7 +361,7 @@ extern uint8_t __config_start; // configured via linker script when building b extern uint8_t __config_end; #endif -#if defined(USE_EXST) +#if defined(USE_EXST) && !defined(RAMBASED) #define USE_FLASH_BOOT_LOADER #endif