Skip to content

Commit 2dee190

Browse files
committed
-Os for some stm boards
1 parent d85a4fc commit 2dee190

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ EXTERNAL_FLASH_DEVICES = GD25Q16C,W25Q16JVxQ,W25Q64FV,W25Q32JVxQ,W25Q64JVxQ
99
LONGINT_IMPL = MPZ
1010

1111
INTERNAL_FLASH_FILESYSTEM = 0
12+
OPTIMIZATION_FLAGS = -Os
1213

1314
MCU_SERIES = F4
1415
MCU_VARIANT = STM32F411xE

ports/stm/mpconfigport.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ ifeq ($(MCU_VARIANT),$(filter $(MCU_VARIANT),STM32F405xx STM32F407xx))
1010
USB_NUM_ENDPOINT_PAIRS = 4
1111
endif
1212

13+
ifeq ($(INTERNAL_FLASH_FILESYSTEM),1)
14+
OPTIMIZATION_FLAGS ?= -Os
15+
endif
16+
1317
ifeq ($(MCU_VARIANT),STM32F407xx)
1418
UF2_FAMILY_ID ?= 0x6d0922fa
1519
endif

0 commit comments

Comments
 (0)