diff --git a/src/arch/msp430fr5994lp/Makefile.inc b/src/arch/msp430fr5994lp/Makefile.inc index 8c78d1bd819776f51059805517c6dc1e00496a7f..4d1009fb897535e80a8523b201e9d400df669a9c 100644 --- a/src/arch/msp430fr5994lp/Makefile.inc +++ b/src/arch/msp430fr5994lp/Makefile.inc @@ -9,6 +9,10 @@ INCLUDES += -I/opt/msp430/ti/msp430-gcc-full-linux-5.0.0.36/include COMMON_FLAGS += -mcpu=${CPU} -mmcu=${MCU} -DMULTIPASS_ARCH_msp430fr5994lp COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C +ifneq (${msp430_large}, ) + COMMON_FLAGS += -mcode-region=either -mlarge +endif + # LTO seems to be broken. CC = /opt/msp430/ti/msp430-gcc-full-linux-5.0.0.36/bin/msp430-elf-gcc