diff options
| author | Dave Hylands | 2014-08-16 07:45:34 -0700 |
|---|---|---|
| committer | Dave Hylands | 2014-08-16 08:00:12 -0700 |
| commit | 3688414d9d53e6a1d42d3b60e45d808cd90f04f2 (patch) | |
| tree | ccce35b6f93c450e501475afc940922743664ff7 /stmhal/Makefile | |
| parent | 8f81b5cb4bebf6aeaecf3f19a92be288f633c542 (diff) | |
Put some code into the first 16K of flash
This basically shrinks the remaining size of flash in the portion
that goes after the internal flash drive.
Diffstat (limited to 'stmhal/Makefile')
| -rw-r--r-- | stmhal/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile index 116aeb114..85f4ce2e3 100644 --- a/stmhal/Makefile +++ b/stmhal/Makefile @@ -200,6 +200,13 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_FATFS:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_CC3K:.c=.o)) OBJ += $(BUILD)/pins_$(BOARD).o +# We put ff.o and stm32f4xx_hal_sd.o 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. +$(BUILD)/$(FATFS_DIR)/src/ff.o: COPT += -Os +$(BUILD)/$(HAL_DIR)/src/stm32f4xx_hal_sd.o: COPT += -Os + all: $(BUILD)/firmware.dfu $(BUILD)/firmware.hex .PHONY: deploy |
