aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
diff options
context:
space:
mode:
authorDave Hylands2016-10-03 22:28:48 -0700
committerDamien George2016-10-05 11:42:50 +1100
commit7a9c183c20f01eec204b7bb89180aebe9723e576 (patch)
tree1ca3dc7e37f29dde93691d1ba05492caa4e5781b /stmhal/Makefile
parentcecf6bee97aa55e9376cb7e7fb492fce9afef2fe (diff)
stmhal: Fix ESPRUINO_PICO by adding ld scripts with correct flash size.
Diffstat (limited to 'stmhal/Makefile')
-rw-r--r--stmhal/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 477cb2631..7be0f28fe 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -261,12 +261,15 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_USBDEV:.c=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o))
OBJ += $(BUILD)/pins_$(BOARD).o
-# We put ff.o and stm32f4xx_hal_sd.o into the first 16K section with the ISRs.
+# We put several files into the first 16K section with the ISRs.
# If we compile these using -O0 then it won't fit. So if you really want these
-# to be compiled with -O0, then edit stm32f405.ld (in the .isr_vector section)
-# and comment out the following 2 lines.
+# to be compiled with -O0, then edit boards/common.ld (in the .isr_vector section)
+# and comment out the following lines.
$(BUILD)/$(FATFS_DIR)/ff.o: COPT += -Os
-$(BUILD)/$(HAL_DIR)/src/stm32$(MCU_SERIES)xx_hal_sd.o: COPT += -Os
+$(filter $(PY_BUILD)/../extmod/vfs_fat_%.o, $(PY_O)): COPT += -Os
+$(PY_BUILD)/formatfloat.o: COPT += -Os
+$(PY_BUILD)/parsenum.o: COPT += -Os
+$(PY_BUILD)/mpprint.o: COPT += -Os
all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex