diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-06-10 10:58:33 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-15 20:44:55 +0000 |
commit | 903e1ea5462810df0449cd17729ef44ba3425d88 (patch) | |
tree | a7cb52fab20403ff8b4988634d5810af83ab623b | |
parent | a0be010122974a3d05a5db3a77171f2118df3c7b (diff) | |
download | chrome-ec-903e1ea5462810df0449cd17729ef44ba3425d88.tar.gz |
chip/stm32: Set -mcpu to cortex-m7 for STM32H7
Enabling this slightly increases the amount of flash used in
dartmonkey's RW:
Before the change:
RO: 740252 bytes in flash and 509440 bytes in RAM still available
RW: 802380 bytes in flash and 506112 bytes in RAM still available
After the change:
RO: 740252 bytes in flash and 509440 bytes in RAM still available
RW: 802324 bytes in flash and 506112 bytes in RAM still available
BRANCH=none
BUG=b:145677491
TEST=./test/run_device_tests.py --board dartmonkey
Test "aes": PASSED
Test "cec": PASSED
Test "cortexm_fpu": PASSED
Test "crc": PASSED
Test "flash_physical": PASSED
Test "flash_write_protect": PASSED
Test "fpsensor_hw": PASSED
Test "fpsensor_spi_ro": PASSED
Test "fpsensor_spi_rw": PASSED
Test "fpsensor_uart_ro": PASSED
Test "fpsensor_uart_rw": PASSED
Test "mpu_ro": PASSED
Test "mpu_rw": PASSED
Test "mutex": PASSED
Test "pingpong": PASSED
Test "printf": PASSED
Test "queue": PASSED
Test "rollback_region0": PASSED
Test "rollback_region1": PASSED
Test "rollback_entropy": PASSED
Test "rtc": PASSED
Test "sha256": PASSED
Test "sha256_unrolled": PASSED
Test "static_if": PASSED
Test "system_is_locked_wp_on": PASSED
Test "system_is_locked_wp_off": PASSED
Test "timer_dos": PASSED
Test "utils": PASSED
Test "utils_str": PASSED
Test "panic_data_dartmonkey_v2.0.2887": PASSED
Test "panic_data_nocturne_fp_v2.2.64": PASSED
Test "panic_data_nami_fp_v2.2.144": PASSED
TEST=./util/compare_build.sh -b all -j 120
=> All boards match, except the following Cortex M7 boards:
dartmonkey
nami_fp
nocturne_fp
nucleo-dartmonkey
nucleo-h743zi
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I0b611ccccfaaf2f930c5b00a9eaa51cd1806c276
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3699794
Reviewed-by: Andrea Grandi <agrandi@google.com>
-rw-r--r-- | chip/stm32/build.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/build.mk b/chip/stm32/build.mk index 5b2d7d9994..0d47a0131a 100644 --- a/chip/stm32/build.mk +++ b/chip/stm32/build.mk @@ -19,8 +19,8 @@ CFLAGS_CPU+=-mcpu=cortex-m4 else ifeq ($(CHIP_FAMILY),$(filter $(CHIP_FAMILY),stm32h7)) # STM32FH7xx family has a Cortex-M7 ARM core CORE:=cortex-m -# Allow the full Cortex-M4 instruction set (identical to M7) -CFLAGS_CPU+=-mcpu=cortex-m4 +# Allow the full Cortex-M7 instruction set. +CFLAGS_CPU+=-mcpu=cortex-m7 else ifeq ($(CHIP_FAMILY),$(filter $(CHIP_FAMILY),stm32l5)) # STM32FL5xx family has a Cortex-M33 ARM core CORE:=cortex-m |