mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
fix: STM32H5 makefile oop debug (#14212)
This commit is contained in:
parent
9ab3aa1048
commit
c12a57e2ad
1 changed files with 3 additions and 7 deletions
|
@ -112,22 +112,18 @@ DEFAULT_LD_SCRIPT = $(LINKER_DIR)/stm32_flash_h563_2m.ld
|
||||||
STARTUP_SRC = STM32/startup/startup_stm32h563xx.s
|
STARTUP_SRC = STM32/startup/startup_stm32h563xx.s
|
||||||
MCU_FLASH_SIZE := 2048
|
MCU_FLASH_SIZE := 2048
|
||||||
DEVICE_FLAGS += -DMAX_MPU_REGIONS=16
|
DEVICE_FLAGS += -DMAX_MPU_REGIONS=16
|
||||||
|
|
||||||
# end H563xx
|
# end H563xx
|
||||||
|
else
|
||||||
|
$(error Unknown MCU for STM32H5 target)
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(DEBUG),GDB)
|
ifneq ($(DEBUG),GDB)
|
||||||
OPTIMISE_DEFAULT := -Os
|
OPTIMISE_DEFAULT := -Os
|
||||||
OPTIMISE_SPEED := -Os
|
OPTIMISE_SPEED := -Os
|
||||||
OPTIMISE_SIZE := -Os
|
OPTIMISE_SIZE := -Os
|
||||||
|
|
||||||
LTO_FLAGS := $(OPTIMISATION_BASE) $(OPTIMISE_DEFAULT)
|
LTO_FLAGS := $(OPTIMISATION_BASE) $(OPTIMISE_DEFAULT)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else
|
|
||||||
$(error Unknown MCU for STM32H5 target)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(LD_SCRIPT),)
|
ifeq ($(LD_SCRIPT),)
|
||||||
LD_SCRIPT = $(DEFAULT_LD_SCRIPT)
|
LD_SCRIPT = $(DEFAULT_LD_SCRIPT)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue